I am trying to build my Sencha app at windows OS but getting this error.
I am trying to use sencha command - sencha app build package, but build is failed.
I already installed ant and compass
C:\xampp\htdocs\WhatsUnderMe>sencha app build package
Sencha Cmd v3.1.0.256
[INF]
[INF] init-plugin:
[INF]
[INF] init-plugin:
[INF] Invoking plugin (C:\xampp\htdocs\WhatsUnderMe\.sencha\app\plugin.xml) - supported targets: -before-app-build
[INF]
[INF] -before-app-build:
[INF] Invoking plugin (C:\xampp\htdocs\WhatsUnderMe\.sencha\app\plugin.xml) - supported targets: app-build
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] -before-app-build:
[INF]
[INF] app-build-impl:
[INF]
[INF] package:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd:
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[INF]
[INF] -after-init:
[INF]
[INF] init:
[INF]
[INF] -before-build:
[INF]
[INF] sass:
[INF]
[INF] -before-sass:
[INF]
[INF] -sass:
[INF] executing compass using system installed ruby runtime
NoMethodError on line ["23"] of C: undefined method `empty?' for nil:NilClass
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:293:in `_render'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/engine.rb:240:in `render'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:140:in `block (2 leve
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:139:in `block in comp
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/logger.rb:45:in `red'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:138:in `compile'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:118:in `compile_if_re
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:103:in `block (2 leve
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `each'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:101:in `block in run'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:126:in `timed'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/compiler.rb:100:in `run'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/update_project.rb:45:in
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/base.rb:18:in `execute'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/commands/project_base.rb:19:in `e
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:43:in `per
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/lib/compass/exec/sub_command_ui.rb:15:in `run
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:30:in `block in <top (required)>'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `call'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/gems/compass-0.12.2/bin/compass:44:in `<top (required)>'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `load'
C:/Users/Ido Tsuk/bin/Sencha/Cmd/3.1.0.256/extensions/sencha-compass/gems/bin/compass:23:in `<main>'
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
[ERR]
[ERR] Total time: 0 seconds
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] C:\xampp\htdocs\WhatsUnderMe\.sencha\app\build-impl.xml:223: com.sencha.exceptions.ExProcess: compass process exited with non-zero code
[ERR]
[ERR] Total time: 1 second
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
C:\xampp\htdocs\WhatsUnderMe\.sencha\app\build-impl.xml:223: com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
What can i do to solve it?
I had the same error with Sencha Touch 2.2,Sencha Cmd 3.1.1.270 and Ruby 2.x.
To fix this I uninstalled Ruby 2.x and installed Ruby 1.9.3
http://rubyforge.org/frs/download.php/76798/rubyinstaller-1.9.3-p392.exe
Hope this is helpful for you. Otherwise you should provide more details about the versions you're using. Or you can start using the latest versions like me.
Installing 1.9.3 ruby works for most people. For me it didnt work.
What i did to fix it was creating a new project and copying the touch folder and resources to my current project. After that i could build normally.
In my project I use both version of Ruby simultaneously due to many annoying reasons. Therefore, I hope, that next advise will be helpful for all guys (and girls) who can't remove newer version of Ruby:
You need to install ruby-switch: sudo apt-get install ruby-switch.
Then check current version: ruby -v.
Show list of available versions: ruby-switch --list.
Set older (newer) version as default for now: sudo ruby-switch --set ruby2.2.
Check current version: ruby -v
Related
I installed Sencha CMD tool in order to build production app. I went through sencha guidelines: http://docs.sencha.com/cmd/5.x/touch/cmd_app.html and upgraded to new version 2.4.
I'm running Sencha Touch 2.4.0.487, Sencha Cmd 5.0.2.270 with Ruby 1.9.3, Compass 1.0.1, Sass 3.4.5 on Windows 8.
Basically I'm trying to build production, but it fails. You can see errors below.
If anyone has any pointers it would be really appreciated.
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException
..\www\app>sencha app build testing
Sencha Cmd v5.0.2.270
[INF] Processing Build Descriptor : default
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: java.lang.NullPointerException
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
..\www\app\.sencha\app\build-impl.xml:376: The following error occurr
ed while executing this line:
..\www\app\.sencha\app\init-impl.xml:292: com.sencha.exceptions.Basic
Exception: java.lang.NullPointerException}
I am fairly new to sencha development. I have installed JDK, Ant, Compass, Sencha Cmd, Sencha SDK, XCode, ios-simulator and Cordova. and I believe that I have all the paths properly set.
I generated an app (Sample01) using sencha cmd. I initialized cordova using "sencha cordova init com.snehca.Sample01 Sample01". If I build using "sencha app build native" (without run option), the app compiles successfully.
However, if I execute "sencha app build -run native", it throws error as follows:
Sencha Cmd v5.0.0.160
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/sencha-compiler/cmd-packages.js
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__core.files
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__manifest
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__override.files
[INF] Appending content to /Sencha/Projects/Sample01/bootstrap.json
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file /Sencha/Projects/Sample01/cordova/www/app.js
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www
[INF] executing compass using system installed ruby runtime
[INF] Copying page resources to /Sencha/Projects/Sample01/cordova/www
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/app.json
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Appending content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Building output markup to /Sencha/Projects/Sample01/cordova/www/index.html
[ERR] The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/build-impl.xml:427: The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/cordova-impl.xml:108: The following error occurred while executing this line:
jar:file:/Users/jpulakhandam/bin/Sencha/Cmd/5.0.0.160/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1
In my env the problem was fixed updating the Android SDK Build Tools, before update I was getting the same error posted and my Android SDK Build Tools rev. was 19.0.3 then I updated to Android SDK Build Tools rev 20 and the problem was fixed.
I have an error with SenchaCMD 4.0.2.67. When I try to run sencha app refresh or sencha app build or sencha ant phonegap-sencha-build on the terminal, I get the following error:
...
[INF] -detect-app-build-properties:
[INF] Loading app json manifest...
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/touch/src
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app.js
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/app
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/Ux
[INF] Loading classpath entry /path/to/project/senchatouch/projects/inpunkto/build/temp/production/Inpunkto/sencha-compiler/app
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisitor.processObjectAutoDependencies(Refe
[ERR] renceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.ReferenceVisi
[ERR] tor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at org.mozilla.javascript.ast.FunctionNode.visit(Func
[ERR] tionNode.java:421)
[ERR] at com.sencha.tools.comp
[ERR] iler.sources.ReferenceVisitor.processObjectAutoDependencies(ReferenceVisitor.java:303)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcess
[ERR] or.java:128)
[ERR] at org.mozilla.javascript.ast.Block.visit(Block
[ERR] .java:61)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfig(Inst
[ERR] anceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferen
[ERR] ceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:128)
[ERR] at org.mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStat
[ERR] ement.java:120)
[ERR] at com.sencha.tools.compiler.sou
[ERR] rces.InstanceConfigReferenceProcessor.processInstanceConfig(InstanceConfigReferenceProcessor.java:131)
[ERR] at com.sencha.tools.compiler.sources.InstanceConfigReferenceProcessor.processInstanceConfigForClass(InstanceConfigReferenceProcessor.java:
[ERR] 179)
[ERR] at org
[ERR] .mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStatement.java:120)
[ERR]
[ERR] Total time: 2 seconds
[ERR] The following error occurred while executing this line:
/Users/matthias/Sencha/Cmd/4.0.2.67/plugins/touch/2.3/plugin.xml:326: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/build-impl.xml:367: The following error occurred while executing this line:
/path/to/project/senchatouch/projects/inpunkto/.sencha/app/js-impl.xml:11: com.sencha.exceptions.BasicException
I have a SenchaTouch 2.3.1 app and integrated the newest release of phonegap into it by using the command: sencha phonegap init [AppID].
Can anybody tell my what this error is all about?
it seems like you are building a code created with sencha architect. Please create a separate project using sencha generate app.. command and then copy the contents from this project to newly created project. Make necessary changes whereever needed, such as project name in each file, etc. I think it will work fine after that...
I am using sencha touch 2.3.1 and cmd 3.1.2. But while creating buid by using command "sencha app build native", it gives error : [ERR] The following error occurred while executing this line:
/path_to_app/.sencha/app/init-impl.xml:62: does not support the nested element
$sencha app build testing
Sencha Cmd v3.1.2.342
[INF]
[INF] init-plugin:
[INF]
[INF] cmd-root-plugin.init-properties:
[INF]
[INF] init-properties:
[INF]
[INF] init-sencha-command:
[INF]
[INF] init:
[INF]
[INF] app-build-impl:
[INF]
[INF] -before-init-local:
[INF]
[INF] -init-local:
[INF]
[INF] -after-init-local:
[INF]
[INF] init-local:
[INF]
[INF] find-cmd-in-path:
[INF]
[INF] find-cmd-in-environment:
[INF]
[INF] find-cmd-in-shell:
[INF]
[INF] init-cmd:
[INF] [echo] Using Sencha Cmd from /home/bin/Sencha/Cmd/3.1.2.342 for /path_to_app/build.xml
[INF]
[INF] -before-init:
[INF]
[INF] -init:
[INF] Initializing Sencha Cmd ant environment
[INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
[ERR] The following error occurred while executing this line:
/path_to_app/.sencha/app/init-impl.xml:62: <x-load-properties> does not support the <file> nested element
For this version of sencha, for creating build, "st-res" directory is required.which contains AndroidManifest.xml , nimblekit.jar. And also have to make following changes in packager.json file.
"androidAPILevel":"14",
"sdkPath":"/home/.android-sdk-linux" /* path to android-sdk-linux */
I had the same issue so I simply upgraded Sencha on my machine:
$ sudo sencha upgrade
If you'll go for that remember to close and re-open your terminal window. Then when you use the above
command again and you should see something like:
Sencha Cmd v4.0.2.67
[INF] Determining the latest version of Sencha Cmd
[INF] The latest version of Sencha Cmd is 4.0.2.67
[INF] Sencha Cmd 4.0.2.67 is this version.
I hope this will help
On Windows 7 machine, using cygwin ruby 1.92, rails 3.1.3.
I run the heroku create and get the following error message:
heroku create
Creating growing-journey-1774... done, stack is bamboo-mri-1.9.2
http://growing-journey-1774.heroku.com/ | git#heroku.com:growing-journey-1774.git
1 [main] ruby 4292 C:\cygwin\usr\local\bin\ruby.exe: *** fatal error - unable to remap \\?\C:\cygwin\usr\local\lib\ruby\1.9.1\i386-cygwin\etc.so to same address as parent: 0x3E0000 != 0x3F0000
Stack trace:
Frame Function Args
0028A778 6102796B (0028A778, 00000000, 00000000, 00000000)
0028AA68 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028BA98 61004F1B (611A7FAC, 61248A3C, 003E0000, 003F0000)
End of stack trace
1 [main] ruby 2856 fork: child 4292 - died waiting for dll loading, errno 11
1086458 [main] ruby 2944 C:\cygwin\usr\local\bin\ruby.exe: *** fatal error - unable to remap \\?\C:\cygwin\usr\local\lib\ruby\1.9.1\i386-cygwin\etc.so to same address as parent: 0x3E0000 != 0x410000
Stack trace:
Frame Function Args
0028A778 6102796B (0028A778, 00000000, 00000000, 00000000)
0028AA68 6102796B (6117EC60, 00008000, 00000000, 61180977)
0028BA98 61004F1B (611A7FAC, 61248A3C, 003E0000, 00410000)
End of stack trace
1098573 [main] ruby 2856 fork: child 2944 - died waiting for dll loading, errno 11
I was able to upload the SSH keys to heroku just fine in the previous step.
Any ideas? My research hasn't led me anywhere. Appreciate anybody's help!
My Gem env shows:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.12
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-cygwin]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/bin/ruby.exe
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-cygwin
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.9.1
- /home/Philip/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
Your problem looks like more with Ruby or Cygwin setup and less with Heroku, try following link solution
http://redmine.jamoma.org/projects/jamoma/wiki/Setting_up_development_environment_in_Windows