Build Failure While trying to build App using Sencha Cmd - extjs

I am new to sencha cmd as per the documentation I am able to generate the application structure but when i start to build the app using sencha app build, Iam facing the following excpetion.
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
[ERR] onDevelopments\ExtJsProjects\Test\build\temp\production\Test\sass"): Creat
eProcess error=2, The system cannot find the file specified
[ERR]
[ERR] Total time: 19 seconds
[ERR] The following error occurred while executing this line:
E:\Softwares & Frameworks\MyApplicationDevelopments\ExtJsProjects\Test\.sencha\a
pp\build-impl.xml:284: The following error occurred while executing this line:
E:\Softwares & Frameworks\MyApplicationDevelopments\ExtJsProjects\Test\.sencha\a
pp\sass-impl.xml:155: The following error occurred while executing this line:
E:\Softwares & Frameworks\MyApplicationDevelopments\ExtJsProjects\Test\.sencha\a
pp\sass-impl.xml:176: com.sencha.exceptions.ExProcess: Failed creating backgroun
d process
I am able to find the file in specified loacation. Kindly help me ..

This is probably because Ruby and Compass are not installed on the system. I used steps described in the following link to fix this issue on my Linux RHEL:
https://www.rosehosting.com/blog/install-ruby-sass-and-compass/
Hope it helps.

Related

Why does Sencha CMD build fail with PhantomJS error code 2?

Problem: "Error capturing theme" while building Sencha CMD workspace application for sub-project A (has source files), but sub-project B (no source files) builds fine.
Scenario:
Created new Sencha workspace (CMD 5.1.0.26) and added a new project A.
Project A builds fine (sencha app build -c production)
I add a main view and reference a module contained in a common folder (/project/common/js/).
sencha app watch works fine however sencha app build -c production now fails on Project A.
To sanity check, I generate a new application inside my framework folder, referencing the same ExtJS version (5.1.0.107), let's call it project B, and it builds just fine.
Project A is still failing with this error:
[INF] Writing content to /MyWorkspace/ProjectA/sass/example/bootstrap.json
[INF] Writing content to /MyWorkspace/ProjectA/sass/example/bootstrap.js
[INF] Capturing theme image
[ERR] loading page /MyWorkspace/ProjectA/sass/example/theme.html
== Unhandled Error ==
TypeError: '''undefined''' is not a function (evaluating '''Ext.require([
'''Ext.layout.Context'''
])''')
file:///MyWorkspace/ext/packages/ext-theme-base/sass/example/render.js:7
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
[ERR]
[ERR] Total time: 46 seconds
[ERR] The following error occurred while executing this line:
/MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:306: The following error occurred while executing this line:
/MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:307: The following error occurred while executing this line:
/MyWorkspace/ProjectA/.sencha/app/slice-impl.xml:163: com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
Workaround:
I've prevented the error for now by editing sencha.cfg and adding the line:
skip.slice=1
However files in /MyWorkspace/ProjectA/sass/ are the same between the failing Project A and Project B with the exception that the content differs slightly in files that reference the application names, but that is all.
The ExtJS files are few enough that I've done a manual walk through of the differences, with the exception of bootstrap.json which didn't lend itself to anymore than a visual skim.
I'd be most interested if anyone has pointers as to what is likely missing or different between these projects that appears to be causing part of my framework to be missing when it's needed in evaluating line 7 of render.js.
Let me know if you need more supporting information. Thanks!
While building extjs application we have got this error
com.sencha.exceptions.ExProcess: phantomjs process exited with code 1
Solution:
We downloaded the latest version of phantomjs from here and replaced the phantomjs.exe file with cmd
phantomjs.exe "cmd/bin.windows/phantomjs/phantomjs.exe"
It worked for us.

Generate Sencha Touch App Failed

I'm having problem generating new Sencha Touch application. I already downloaded the Sencha SDK, Ruby and Sencha CMD. When I use sencha the sencha version and help are printed.
When I use the ff command to generate Sencha Touch application I encountered Build Failed:
sencha -sdk [sencha sdk location] generate app -name MyApp -path [project location]
Issue:
Sencha Cmd v5.0.1.231
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[ERR] Failed to resolve dependency Ext.app.Application for file MyApp.app.$Application
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR] at org.apache.tools.ant.Project.e
[ERR] xecuteSortedTargets(Project.java:1399)
[ERR]
[ERR] Total time: 1 second
[ERR]
[ERR] BUILD FAILED
[ERR] (installation dir)\bin\Sencha\Cmd\5.0.1.231\plugin.xml:303: The following error occurred while executing this line:
[ERR] (installation dir)\bin\Sencha\Cmd\5.0.1.231\plugins\touch\2.3\plugin.xml:334: The following error occurred while executing this line:
[ERR] (installation dir)\workspace-sencha\.sencha\app\build-impl.xml:373: The following error occurred while executing this line:
[ERR] (installation dir)\workspace-sencha\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR] at sun.reflect.GeneratedMethodAccesso
[ERR] r23.invoke(Unknown Source)
[ERR]
[ERR] Total time: 5 seconds
[ERR] The following error occurred while executing this line:
(installation dir)\bin\Sencha\Cmd\5.0.1.231\plugins\touch\2.3\plugin.xml:334: The following error occurred while executing this line:
(installation dir)\workspace-sencha\.sencha\app\build-impl.xml:373: The following error occurred while executing this line:
(installation dir)\workspace-sencha\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
I'm already 3 days on this, not sure if I miss something.
Thanks in advance!
try use -d option to see more detail first
sencha -d -sdk [sencha sdk location] generate app -name MyApp -path [project location]

How can I configure the sencha app build command to use a custom named app folder?

I need to use a custom named 'app' folder for my Ext JS 4.1.3 application. Sencha documentation is clear that this folder name is a configurable value called 'appFolder'.
Environment:
Ext JS 4.1.3
Sencha Cmd 3.1.2.342
Ruby 1.9
Steps that I took:
sencha generate workspace C:\temp\workspace
sencha -sdk C:\tools\extjs4.1.3 generate app common C:\temp\workspace\common
cd C:\temp\workspace\common
sencha app build
SUCCESSFUL
edited the app.js and set appFolder: 'custom':
Ext.application({
appFolder: 'custom' ...
Also renamed the 'C:\temp\workspace\common\app' folder to 'C:\temp\workspace\common\custom'
sencha app build.
[ERR] def was null
[ERR] failed to find meta class definition for name common.controller.Main
[ERR] def was null
[ERR] failed to find meta class definition for name common.view.Viewport
[ERR] C2008: Requirement had no matching files (common.view.Viewport) -- unknown
-file:-1
[ERR] Error executing page compilation Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport
[ERR]
[ERR] Total time: 6 seconds
[ERR] The following error occurred while executing this line:
C:\TEMP\workspace\common\.sencha\app\build-impl.xml:408: The following error occurred while executing this line:
C:\TEMP\workspace\common\.sencha\app\build-impl.xml:381: com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport
Edit file yourAppFolder/.sencha/app/sencha.cfg
Change classpath=${app.dir}/app to classpath=${app.dir}/custom

Sencha Cmd Error: Build Failed

After running sencha generated app Practise '../www/Practise' it showed some errors. Here the error message:
[ERR] BUILD FAILED
[ERR] java.lang.NullPointerException
[ERR]
[ERR] Total time :4 seconds
[ERR] com.sencha.exceptions.BasicException
I dont know if this is the same issue you were having but this is why I got that error:
I tried to generate the app unsuccessfully
This created a directory for my app and put some files in it but the app was incomplete
I fixed the original issue and ran the
command again.
I got the error you were receiving.
This was because the folder in www/yourproject already existed. I deleted this folder and ran the command successfully.
Hope this helps!!

Sencha Touch 2.x - command sencha app build native

Os Ubuntu 12, Problem with command sencha app build native
Error
sencha app build native
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
[ERR] /var/www/m7/sencha/blog/.sencha/app/build-impl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.WrappedException: Wrapped java.lang.UnsupportedOperationException: stbuild is not yet supported on linux (#664) in at line number 664

Resources