PDA

View Full Version : 'ext-gen' does not work with multi-app workspaces



aanders
9 Jul 2018, 1:12 PM
How can I make the new "Open Tooling" work with multi-app workspaces?

Assume that I run the following commands to create a new workspace and one application in it:

sencha generate workspace TestWorkspace
cd TestWorkspace
sencha -sdk /path/to/ext-6.6.0 generate app SenchaCmdApp SenchaCmdApp

If I then run "ext-gen upgrade" in the workspace folder, I get the error
no such file or directory, open 'app.json'
If I instead run "ext-gen upgrade" in the SenchaCmdApp application folder, I get the error
no such file or directory, lstat 'workspace.json'

From these error codes and from looking at the code for "ext-gen upgrade", it appears that "ext-gen upgrade" is not designed to handle multi-app workspaces.

I also tried to manually do the steps "ext-gen upgrade" was not able to perform and then run
npm install
npm start

Which results in
Error: ENOENT: no such file or directory, scandir './packages'

Have I missed some documentation for using "Open Tooling" with multi-app workspaces? And when/how can I replace the use of "Sencha Cmd Packages" with npm packages?

Maurice.Rossi
6 Aug 2018, 1:58 AM
Same problem here. Did you solve this?

Best regards
Maurice

aanders
7 Aug 2018, 12:51 AM
Same problem here. Did you solve this?

Best regards
Maurice

Hi Maurice,

Nope, I'm not able to get the "Open Tooling" to work with my setup (Sencha workspace containing ExtJS app folder and package folder). After looking at the ext-gen and ext-build node modules, I don't believe that Sencha expected that to work either. But I did expect Sencha to acknowledge that this is a limitation/bug in the current version (as they did with the other ext-gen issue I reported).

Even if Sencha has not labeled it as such now, I think you should consider the current "Open Tooling" support as "early access" (as it was originally labeled in this roadmap: https://www.sencha.com/blog/sencha-product-roadmap-update/).

wemerson.januario
10 Nov 2018, 3:10 AM
any update Sencha?

mgusmano
14 Nov 2018, 6:13 AM
We did not implement multi-app workspaces in the first version of ext-gen, but we are looking on what is needed to implement it now

wemerson.januario
14 Nov 2018, 8:31 AM
We did not implement multi-app workspaces in the first version of ext-gen, but we are looking on what is needed to implement it now

Thank you Marc.

mgusmano
14 Nov 2018, 9:38 AM
you are welcome