PDA

View Full Version : Sencha Cmd Compile Error..Need Help!!



hsingh11
17 Oct 2012, 9:39 AM
Hi
We are trying to use to Sencha Cmd for production deployment.
I created a one model, controller and view application (manually) and ran the Sencha Cmd v3.0.0.190 to compile my test project but getting the error: Failed to find file for @foundationand

Here is the output

C:\wam\wam_app>sencha compile -classpath=app/app.js,app,extjs-4.1.1/src page -in=index.html -out=build/index.html
Sencha Cmd v3.0.0.190
Compiling page null
[INFO ] Processing classPath entry : C:\wam\wam_app\sencha-compile-temp-dir
[INFO ] Processing classPath entry : app\app.js
[INFO ] Processing classPath entry : app
[INFO ] Processing classPath entry : extjs-4.1.1\src
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[INFO ] Processing source dependencies
[ERROR] Failed to find file for @foundation
required by C:\wam\wam_app\extjs-4.1.1\src\app\Controller.js
[ERROR] Error executing page compilation com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Fa[I]iled to find any files for @foundation
[ERROR] com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for @foundation

The other thing i am confused about is the classpath , should i have to specify underneath folders/files also like
classpath=app,app/app.js etc.

here is my index.html


<html>
<head>
<!-- chrome frame for IE -->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all-gray.css">

<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<script type="text/javascript" src="extjs-4.1.1/ext-all.js" />
<!-- <x-bootstrap> -->
<script type="text/javascript" src="app/app.js"></script>

<!-- <x-compile> -->


</head>
</html>


and here is my app.js


Ext.application({
name: 'Car',
appFolder: 'app',
autoCreateViewport: true,

controllers: [
'Users'
]
});

thetoaster
18 Oct 2012, 4:37 AM
i get the same error with sencha cmd 3.0.0.190 on linux as well:



[DEBUG] Processing dependencies for file: Evented.js
[ERROR] Failed to find file for @foundation
required by /home/.../Software/sencha-touch-2.0.1.1/src/Evented.js
[DEBUG] removing tempdir /home/../workspace/.../sencha-compile-temp-dir
[ERROR] com.sencha.exceptions.ExBuild: Failed to find any files for @foundation

com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for @foundation
at com.sencha.tools.compiler.CompilerContext.processFileDependencies(CompilerContext.java:483)
at com.sencha.tools.compiler.CompilerContext.doProcessDependencies(CompilerContext.java:339)
at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:330)
at com.sencha.tools.compiler.CompilerContext.processDependencies(CompilerContext.java:302)
at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:169)
at com.sencha.command.compile.CompileCommands.getCache(CompileCommands.java:129)
at com.sencha.command.compile.CompileCommands$ConcatenateCommand.execute(CompileCommands.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.cli.Command.dispatch(Command.java:78)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
at com.sencha.command.Sencha.main(Sencha.java:58)
Caused by: com.sencha.exceptions.ExBuild: Failed to find any files for @foundation
at com.sencha.tools.compiler.CompilerContext.processFileDependencies(CompilerContext.java:432)
at com.sencha.tools.compiler.CompilerContext.processFileDependencies(CompilerContext.java:480)
... 15 more

devnullable
18 Oct 2012, 6:26 AM
You will need either Ext JS 4.1.1a or Ext JS 4.1.2a. For Touch I think it should be at least Sencha Touch 2.1 Beta 3.

thetoaster
18 Oct 2012, 7:14 AM
I somehow found sencha touch 2.1.0-rc2 is there already a beta 3?
I also found a Sencha cmd 3.0.0.201 both through a forum announcement, but no beta 3?

devnullable
18 Oct 2012, 7:17 AM
I somehow found sencha touch 2.1.0-rc2 is there already a beta 3?
I also found a Sencha cmd 3.0.0.201 both through a forum announcement, but no beta 3?
I don't use Sencha Touch but it was mentioned in blog post http://www.sencha.com/blog/all-new-sencha-cmd/

thetoaster
18 Oct 2012, 7:52 AM
ok, thanks anyway. the compile worked with the newest versions of everything.