I have to create a project in ExtJS5. Right now I am using ExtJs4.2.1 and the Sencha cmd version is 3.1.2.342 I wanted to upgrade it to the latest version. For this, I created a folder and copied ext folder(the ExtJS SDK) into this folder. From my application's ext folder I ran 'sencha upgrade' command. When I check the version it is still showing 3.1.2.342
What steps am I missing? When I try to build the app the error message displays "No compatible version detected". This shows that the cmd version I have can not be used with ExtJS5. How to solve this issue?
1st, select the path of your application:
cd /xampp/htdocs/yourapp //if you are using xampp
sencha app upgrade [ path-to-new-framework/verison-of-your-sdk ]
Related
I've been using sencha Cmd since its release and after every update I face some new issues.
Last one, using sencha Cmd Sencha Cmd v5.0.2.270 and sencha touch 2.4, I cant even produce a valid package build.
actual build using cmd 5 and sencha touch 2.4 (not even good build folder):
https://dl.dropboxusercontent.com/u/35041662/build2.4/bad.PNG
previous build (the one I need):
https://dl.dropboxusercontent.com/u/35041662/build2.4/good.PNG
After the "sencha app build package", I deploy it into a "local server" (something phonegap alike) and when I try to run the project, it keeps me asking to reload the app due to an change in one of the app's javascript and never achieve to run.
alert Message:
"Requested: '[...]/js/appverse.js seems to have been changed. Attempt to refresh the application?"
Btw the production an package build generate a cache.appcache file and the app keeps me asking for reload, in previous version of cmd those files didn't exist.
Thank you in advance
It's no longer supported as from 5.0.2.270.
I had the same problem and the only way to solve was, to install the npm cordova within Sencha Touch (sencha cordova init).
After that I can now use the app.cordova.www folder.
I generated my Sencha App using Sencha CMD version 4.0.1.45. Then I downloaded Sencha CMD version 4.0.2.67. Now when inside my application folder I am running command to deploy it on Android, then it is showing the following error:
The application was last modified by an older version of Sencha Cmd (4.0.1.45)
the current is 4.0.2.67.
Please run "sencha app upgrade" to update to 4.0.2.67.
I went to the application folder and then ran this command
sencha app upgrade path/to/senchacmd.
In my case senchacmd is installed in home/bin/Sench/CMD/4.0.2.67. But when I run this command, it shows the following error
Command must be run from a framework folder
Any help is appreciated.
I had exactly the same problem when updating to Ext JS 5.1.0.47. I have white spaces in my path to, but even enquoting the path wouldn't help.
Well, turns out that
sencha app upgrade -ext
Upgrades the SDK from the online repo, so all's good.
sencha app upgrade path/to/senchacmd
The path variable you are using in this command in wrong.
Try asking for help on this command using sencha help app upgrade, it clearly shows the usage is
sencha app upgrade /path/to/sdk.
ie its the path to sdk (like touch-2.3.0), not the path to sencha CMD .
Hope it will be helpful....
I need to install sencha touch 2.1 on my mac but I can't…
i follow this guide
http://www.sencha.com/learn/getting-started-with-sencha-touch-2
so i installed sencha cmd and i copy the sencha-sdk folder in the www/ directory of apache.. if i do:
localhost/sencha-skd
on my browser i see the docs of sencha, so the server works fine..
but from the terminal if I write the command
sencha
i get
-bash: sencha: command not found
and this happend in every folder…
somebody can help me?
thanks a lot
Download and install Sencha Cmd : http://www.sencha.com/products/sencha-cmd/download
Then ensure that the path for Sencha Cmd is in your .bash_profile:
export PATH=/path/to/Sencha/cmd/3.0.0.250:$PATH(it will be located in you your 'bin' directory)
Save your .bash_profile and restart Terminal.
Edit:
You can also try adding the path to your .bashrc as well. Then restart your terminal and try running sencha again.
Lastly to verify that Sencha Cmd is in your path do echo $PATH.
The Sencha Touch Sdk contains only the classes which contains the framework, plus examples and docs.
If you want to generate an app, compile it, etc. using the Sencha command from a terminal, you need to install the Sencha Cmd then.
That's a different product.
You can read more at the following guide:
http://docs.sencha.com/touch/2-1/#!/guide/command
And download the latest version from here:
http://www.sencha.com/products/sencha-cmd/download
I'm having a problem with sencha command. I've cd'd into the path containing the SDK and then pointed to the path of my app but I get the above error. Is this a beta bug or am I missing something? Not sure what else to try....
My command prompt:
C:\Program Files (x86)\SenchaSDKTools-2.0.0-beta3>sencha app create MyApp C:\Development\MyNewApp
You need to go to the SDK folder not the SDK Tools folder to execute sencha command
If you're using the newest version of Sencha Touch, then you shouldn't use the Sencha SDK Tools. Instead, download and use Sencha Cmd (it's a different program with the same name; confusing, yes).
Otherwise, here's a thread which discusses this problem. There are a number of solutions presented, one of which is downloading Sencha Touch and creating a .senchasdk file within it.
I recently downloaded the Sencha SDK and the SDK tools. I installed the SDK tools, and unzipped the contents of the file sencha-touch-2.1.0-commercial.zip to my web server. I cd'd into the directory and ran the command given to generate a getting started app, but I received this message:
abe#Dubai:/var/www/sencha-touch-sdk$ sencha
[WARN] The current working directory (/var/www/sencha-touch-sdk) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
Sencha Command v2.0.0 Beta 3
Copyright (c) 2012 Sencha Inc.
....followed by all the info on how to structure commands using sencha
I Googled it, and found out that one of the ways sencha knows that it's the sencha sdk folder is that it contains a hidden file called .sencha, which my sdk directory was missing. After creating a blank .senchasdk file, I ran the command again, but this time I got:
abe#Dubai:/var/www/sencha-touch-sdk$ sencha
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/var/www/sencha-touch-sdk/command/sencha.js'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
The interesting thing to me is that it's looking for a "command" directory which doesn't exist in my SDK folder. Did I download/extract the wrong thing? I followed the download link for the sdk that I got in my email from Sencha.
I'm using Ubuntu linux by the way. I hope this isn't as silly of a question as I think it is, I did my best to research the issue
EDIT: I just thought I'd add that I AM able to visit the sencha-touch-sdk directory in my browser and I do see the documentation. This leads me to believe that I have the right package after all...so once again I'm stumped.
Try using the Sencha CMD instead of Sencha SDK Tools for that Sencha SDK version.
Download the Sencha Command latest version then Install Sencha Command into the Bin folder of Sencha SDK tools.
Thereafter you just try by typing 'Sencha' in the command prompt.
**C:\Users\srinivasan.kk>sencha
Sencha Cmd v3.0.2.288**
Hope it helps you.