PDA

View Full Version : What happened to sencha create jsb?



dr-dan
23 Jan 2013, 2:29 AM
sencha create jsb


Doesn't exists in Sencha Cmd 3.0.

For Ext JS 4.1.x what are we supposed to use?

Using the SDK 2.0 command does not seem to work. (i tried the same simple example app, with both 4.0.7 & 4.1.1 with different results).

I'm trying a sample app with 4.0.7 and running into these probs: http://stackoverflow.com/questions/14481292/ext-js-jsb-creation-with-sdk

I (http://stackoverflow.com/questions/14481292/ext-js-jsb-creation-with-sdk) have tried to follow the "Microsoft Windows Custom EXTJS build guide".in this post but my files[] property is always empty. If I try as a drive path with verbose mode i get complaints about Ext being missing.http://www.sencha.com/forum/showthread.php?235941-sencha-create-jsb-is-giving-error

scottmartin
24 Jan 2013, 9:11 AM
If you want to use Sencha Cmd, you will need to use ExtJS 4.1.1a+
It will not work with 4.07. It is highly recommended that you move away from 4.07 anyway.

Scott.

dr-dan
24 Jan 2013, 9:56 AM
I did mention I'd tried both...and im on 4.1.* - tried 4.0.7 in exasperation, because the docs are cryptic to say the least with regards to tools and versions.

Whats really required is some decent examples on how to use the packager WITH 4.1.1 - since none exist and its cost me half a day before i've given up.

just another nail in ext js' coffin for me.

scottmartin
24 Jan 2013, 10:17 AM
Did you try 4.1.1, or 4.1.1a?

Please try the following to see if this works:

get latest: http://www.sencha.com/forum/showthread.php?252466
You will need to install compass for theme updating

from console:



#create all
sencha -sdk /var/www/extjs4 generate app MyApp /var/www/myapp
cd /var/www/myapp

# good practice to update sencha meta before build
sencha app refresh
# create build for release; see build DIR
sencha app build production


When you get working, it will be very simple to maintain.

Scott

dr-dan
24 Jan 2013, 12:01 PM
Its 4.1.1a - whats the diff?

seems I have a prob writing to "targetDir='{'0'}'"

...



C:\>sencha -sdk c:\inetpub\wwwroot\ext-4.1.1a generate app MyApp c:\inetpub\wwwroot\myapp

Sencha Cmd v3.0.2.288
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] -before-generate-workspace:
[INF]
[INF] generate-workspace-impl:
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExTemplate: Cannot write to targetDir='{'0
'}'
[ERR] at com.sencha.tools.generator.Generator.prepareDir(Gener
ator.java:286)
[ERR] at com.sencha.tools.generator.Generator.generateDirToDir
(Generator.java:244)
[ERR] at com.sencha.tools.generator.Generator.generateDirToDir
(Generator.java:252)
[ERR] at com.sencha.tools.generator.Generator.generate(Generat
or.java:124)
[ERR] at com.sencha.ant.GeneratorTask.doExecute(GeneratorTask.
java:63)
[ERR] at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
2)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownEl
ement.java:291)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
ispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:
413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Pro
ject.java:1399)
[ERR] at org.apache.tools.ant.Project.executeTarget(Project.ja
va:1368)
[ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTa
rgets(DefaultExecutor.java:41)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.j
ava:1251)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:72)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginComma
nd.run(BasePluginCommands.java:94)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginComma
nd.run(BasePluginCommands.java:98)
[ERR] at com.sencha.command.generator.GeneratorCommands$Worksp
aceCommand.execute(GeneratorCommands.java:80)
[ERR] at com.sencha.command.generator.GeneratorCommands$AppCom
mand.execute(GeneratorCommands.java:175)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.command.Sencha.main(Sencha.java:71)
[ERR]
[ERR] Total time: 0 seconds
[ERR] com.sencha.exceptions.ExTemplate: Cannot write to targetDir={0}

scottmartin
24 Jan 2013, 12:07 PM
4.1.1a supports Sencha Cmd, whereas 4.1.1 did not .. special build after 4.1.1 release.

All later builds support as well.

Make sure you have the proper rights in wwwroot to create .. perhaps try as admin and see if you get same error.

Scott.

dr-dan
24 Jan 2013, 12:08 PM
ok so its perms on wwwroot... placing the app elsewhere has at least generated it

btw any reason for not recommending 4.1.3?

dr-dan
24 Jan 2013, 12:30 PM
Once i worked out the installation of ruby & compass was mandatory (for windows see: http://www.ladysign-apps.com/developer/sass/installing-sass-compass-for-windows-os-x/), this has worked for me.

Thanks. I should be fine now getting this integrated into my own app now I have a template to work from.

scottmartin
24 Jan 2013, 12:45 PM
If you have a subscription, then 4.1.3 would be fine.

Scott.