Sencha Architect "Unable to open your app.json file" - extjs

I've been trying to follow Sencha's basic tutorial on Sencha Architect with the Sencha Architect trial version, but I've been stuck on the step of the tutorial titled, "Save Your Project". I've been encountering this error in the Sencha Architect Logs every time I save my new projects:
As the error suggests, there was no "app.json" generated by Sencha Architect:
The "CMD Output Tab" also produces this output upon saving the Sencha Architect project:
[INF] Initializing empty workspace at C:\Users\marco\source\sencha-sandbox\Test2
[INF] Copying framework to C:\Users\marco\source\sencha-sandbox\Test2\ext
[INF] Added framework ext to workspace.json
[ERR] The specified string cannot be converted into a valid namespace identifier
Exception in thread "Thread-13"
com.sencha.exceptions.BasicException: com.sencha.exceptions.ExState: Invalid namespace : Test2
at com.sencha.tools.server.service.tasks.DispatchTask.execute(DispatchTask.java:55)
....
If it makes any difference, I am using the latest versions of Java JDK (17.0.1) and Ruby (3.0.2p107).
Here is a selection of some of the things I've tried to resolve the issue, none of which have worked:
Restart windows ❌
Recreate project ❌
Create new project with Ext JS 6.0.x, instead of the latest version ❌
Reinstall everything and try following the tutorial again on a
completely new instance of Windows 10 ❌
What I have been able to do successfully is create and run a project through the Sencha CMD following the Sencha CMD tutorial, so I find it interesting that the Sencha CMD-generated project works perfectly fine, yet my Sencha Architect Trial version cannot create a functioning project.

I got into contact with one of Sencha's engineers today, who helped me to resolve this:
When Sencha Architect (v4.2.9) installed with CMD, the CMD version (v7.3.0.19) that was automatically installed alongside Sencha Architect was causing this error.
To fix this version issue, within Sencha Architect, I had to go to menu at Edit > Preferences > Dependencies, and change the default "Custom Cmd Base Path" from
C:\Users\marco\bin\Sencha\Architect\Cmd
to the install location of the standalone Sencha CMD
C:\Users\marco\bin\Sencha\Cmd
After doing that, you re-launch Sencha Architect, and Sencha Architect will ask you to update Sencha CMD, which you proceed with. From there, it seems that all your future projects should be good to go without issue.

Related

Upgrading ExtjJS6 project to ExtJS7 - How can I make the new "Open Tooling" work with multi-app workspaces?

I have ExtJS 6.2 project with multi application workspace.
Trying to figure it out how to upgrade it to ExtJS7.
According to documentation I should use ext-gen migrate, but when running it I'm getting the following error:
'Upgrade multi-application workspace is not yet supported'
How can I make the new "Open Tooling" work with multi-app workspaces?
Open tooling or not does not matter if you follow the following:
download ExtJS7 (here ExtJS 7.4)
create a new workspace
copy content of folder ext to ext-7.4.0 in your current project
workspace.json (add to frameworks)
"ext74": {
"path":"ext-7.4.0",
"version":"7.4.0.42"
}
app.json (inside your apps)
"framework": "ext74",
go over the release notes of each version between your current version and the version you want to upgrade to. Example:
https://docs.sencha.com/extjs/7.3.1/guides/whats_new/release_notes.html

Sencha Cmd ERR Invalid Path (Trial Version)

When I try to generate an ExtJS app with my trial installation it fails. It worked in the beginning. Here is what I get:
sencha generate app -ext sampleName F:\vs13\sampleName
Sencha Cmd v5.1.0.26
[INF] Loading framework from F:/../../../../../ext
[ERR] Invalid Path : F:\..\..\..\..\..\ext
Since it is a trial version it should automatically download the framework.
This will automatically download the Ext JS Commercial Trial package and use it to generate your application.
According to the documentation this is the syntax:
sencha generate app -ext MyApp /path/to/MyApp
Also I checked the path variable which includes the path to the Sencha Cmd installation:
PATH=F:\ExtJs\bin\Sencha\Cmd\5.1.0.26;
I tried to restart the development machine. It did not help.
Any suggestion to solve the error "Invalid Path"?
Did you move Sencha Cmd installation? That could be the reason because Ext library is downloaded only for the first application you create and it is cached in the Cmd installation tree. Next applications you create use this cached Ext. If you moved Cmd then it cannot find path to the cached Ext.
You can also try to uninstall Sencha Cmd and install it again.

Sencha Cmd won't build on another workstation

So I am trying to set up another ExtJS (4.2.1) dev workstation I've got Ruby 1.9.3, Sencha Cmd 4.0.4.84 installed and latest Java VM too.
The build won't work on this one though, I'm getting:
[INF] executing compass using system installed ruby runtime
Errno::ENOENT on line ["38"] of C: No such file or directory - C:/devtfs/CustomerPortal/CustomerPortal.UI/Content/Customer_Portal_UI/build/temp/production/Customer_Portal_UI/slicer-temp/.sass-cache/82daaa66b7a4761963814fd25131bf0f81370ec9/Customer_Portal_UI-example.scssc
82daaa66b7a4761963814fd25131bf0f81370ec9 folder does exist, but it's empty.
I've tried
sencha ant clean
sencha app refresh
sencha app build --clean
No go. Ever seen this issue ?
Thanks!
EDIT: Hmm, even after this error, the application seems to be running fine on the Sencha web server, but the index.html file is the last thing that's not created in build/production.

Installing Sencha Touch 2 framework

I've a problem with getting Sencha Touch to work. I'm using a MacBook Pro and it's really been a hell installing this framework. Sencha don't seem to have any documentation that fits the latest version of their product and there is no way for me to download an older version from their website. Therefore I need your help!
I've downloaded Sencha SDK, SDKTools and their Cmd-software. The version of the SDK is 2.1.1, the SDKTools is 2.0.0 and I dont know the version of the cmd-software. All three softwares is however the latest from Senchas webpage.
I've placed the SDK under the root of the web server, and I've also installed the SDKTools in the root.
This is the structure I'm currently using:
Root of webbserver:
- SDK
- SDKTools
The SDK works in the way that I can surf into it, by using my browser into the "SDK"-folder. On that page I can view examples of Sencha applications.
When I go the SDK folder via the Terminal, and type "Sencha" - I get the error:
[WARN] The current working directory (/Applications/MAMP/htdocs/SDK) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
I've googled this and tried the following actions:
1. Placed the SDKTools in the same folder as the SDK.
2. Created a systemfile named .senchasdk with the content "sdk".
3. Created a systemfile named .senchasdk with the content ".".
The first option, naturally doesn't work (didn't differ anything from the previous setup). The 2nd and 3rd action resulted in compilationerrors when typing Sencha in the SDK-folder. Example down below:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/Applications/MAMP/htdocs/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)
I've also tried typing "Sencha" from the SDKTools folder, but that doesn't work either. I don't know what this problem comes from and can't find any other solutions to solve this. Does anyone know? Or have any suggestions on solution or part of solution?
Sencha Touch 2.1 doesn't work with SDK Tools anymore. The documentation bundled with Sencha Touch 2.1 is not up-to-date. Here is the good documentation :
http://docs.sencha.com/touch/2-1/#!/guide/command
On their website, you can download the 2.0 version of the Sencha CMD tool which is used instead of SDKTools nowadays. However, if you use the 2.0 version you will meet nothing but trouble since that is outdated. The latest version as of right now is 3.1 and can only be downloadable from your account at support.sencha.com, and not from the download page when not logged in.

Sencha Touch The current working directory (/Developer/SDKs/MacOSX10.6.sdk/sencha-touch-2.1.0) is not a recognized Sencha SDK or application folder

I already installed sencha-touch-2.1.0-gpl and sencha SDK Tool , both under /Developer/SDKs/MacOSX10.6.sdk. , browse in Temrinal to the folder sencha-touch-2.1.0-gpl and give the command sencha causes the Warning
[WARN] The current working directory (/Developer/SDKs/MacOSX10.6.sdk/sencha-touch-2.1.0) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode.
Any suggestions !!?? Thanks
You need to use Sencha Command and not Sencha SDK Tools with Sencha Touch 2.1
Take a look at my answer here :
Generate a sencha touch app
Hop this helps

Resources