I'm trying to extend a third party class. The code is something like this. Note I'm specifying where to load openGL.view.
Ext.Loader.setPath({
'openGL.view': 'C:/Users/«username»/Documents/third-party/openGL/view/'
});
Ext.define('myOpenGL.view.Qxga',{
extend: 'openGL.view.Uxga',
alias: 'widget.qxga',
itemId: 'qxga',
requires: [
'openGL.view.Uxga',
'myOpenGL.view.QxgaController'
],
controller: 'QxgaController'
});
When I build it, I get errors like this:
[ERR] Failed to resolve dependency openGL.view.Uxga for file myOpenGL.view.Qxga
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : openGL.view.Uxga
[ERR]
[ERR] Total time: 6 seconds
[ERR] The following error occurred while executing this line:
C:\Users\«username»\Applications\Sencha\Cmd\5.1.0.26\plugins\ext\current\plugin.xml:403: The following error occurred while executing this line:
C:\Users\«username»\Documents\workspace\openGL\.sencha\app\build-impl.xml:378: The following error occurred while executing this line:
C:\Users\«username»\Documents\workspace\openGL\.sencha\app\init-impl.xml:303: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : openGL.view.Uxga
Some questions:
Why isn't it finding openGL.view.Uxga?
I've read about modifying build-impl.xml, but with various degrees of success. What would I have to do, and is there a way to do the same without having to modify the file? Say some kind of override or command line parameter?
If there is a way to do this using setPath, the third-party directory may not be in the same place. Is there a way to include a Windows environment variable or something similar?
Sencha Cmd doesn't know about the Ext.Loader.setPath call, Cmd doesn't execute the JavaScript. Instead, in your app.json you can add C:/Users/«username»/Documents/third-party to the classpath config. classpath is a comma-delimited (I think it may even be able to be an array these days) list of paths Cmd will use to inspect the files within it to search for Ext JS classes (or via certain comment tags like #require and #class).
"classpath": "app,C:/Users/«username»/Documents/third-party"
Related
I recently made a new branch in my angular project and am working on in for a bit. Now I wanted to build it for testing on smartphones. When using ng build --prod, I get the following error (ng build works tho!)
An unhandled exception occurred:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null See
"/private/var/folders/c5/y_n4tj316sq9x1nqx20qdlh40000gp/T/ng-FBFvv4/angular-errors.log"
for further details.
The angular-errors.log is not helpfull at all:
[error] TypeError:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null
at validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:160:13)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:229:7)
at validateField (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:24:9)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:17:3)
at NodePath._replaceWith (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/replacement.js:172:7)
at NodePath._remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:57:10)
at NodePath.remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:36:8)
at PluginPass.ForOfStatement (/Users/r/Documents/.../project/node_modules/#babel/plugin-transform-for-of/lib/index.js:206:16)
at newFn (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/visitors.js:175:21)
at NodePath._call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:55:20)
at NodePath.call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:42:17)
at NodePath.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:92:31)
at TraversalContext.visitQueue (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:116:16)
at TraversalContext.visitSingle (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:88:19)
at TraversalContext.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:144:19)
at Function.traverse.node (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/index.js:82:17)
Production Environment.prod.ts looks like this:
export const environment = {
production: true,
VERSION: require('../../package.json').version
};
I tried using the --source-map=true flag, but it is canceling building before its able to write the sourcemap.
I didnt put hands on my package.json since two month, but also tried deleting the node_modules and reinstall them.
I also tried changing rxjs and typescript versions, but no success
Im using angular -v 10.1.6, typescript -v 4.0.3, rxjs -v 6.4.5
What can I do??
Any help appreaciated!
I found a solution here https://github.com/angular/angular-cli/issues/16998.
My problem was using Labels. It appears that babel is having a bug with that.
I am getting error while trying to build a java project in TeamCity. The same project builds and excecutes well on my local. I recently pushed changes to this project on GitLab. This is my first time working with GitLab and TeamCity together. Other projects have no issues during build. I am unable to understand what is causing this error:
[15:58:54][Step 1/1] compile.earCommons (4s)
[15:58:54][compile.earCommons] echo
[15:58:54][compile.earCommons] echo
[15:58:54][compile.earCommons] wlcompile (4s)
[15:58:59][wlcompile]
com.bea.util.jam.internal.javadoc.JavadocClassloadingException: An error
has occurred while invoking javadoc to inspect your source
files. This may be due to the fact that $JAVA_HOME/lib/tools.jar does
not seem to be in your system classloader. One common case in which
this happens is when using the 'ant' tool, which uses a special
context classloader to load classes from tools.jar.
This situation elicits what is believed to a javadoc bug in the initial
release of JDK 1.6. Javadoc attempts to use its own context classloader
tools.jar but ignores one that may have already been set, which leads
to some classes being loaded into two different classloaders. The
telltale sign of this problem is a javadoc error message saying that
'languageVersion() must return LanguageVersion - you might see this
message in your process' output.
This will hopefully be fixed in a later release of JDK 1.6; if a new
version of 1.6 has become available, you might be able to solve this
by simply upgrading to the latest JDK.
Alternatively, you can work around it by simply including
$JAVA_HOME/lib/tools.jar in the java -classpath
parameter. If you are running ant, you will need to modify the standard
ant script to include tools.jar in the -classpath.
[15:58:59][Step 1/1] Process exited with code 1
[15:58:59][Step 1/1] Ant output
[15:59:10][Step 1/1] Process exited with code 1 (Step: Ant)
[15:58:59][Step 1/1] Step Ant failed
****Update****
Build Step: Ant
Step 1:
Runner type: Ant (Runner for Ant build.xml files)
Execute: If all previous steps finished successfully
build.xml file: \ant\build.xml
Working directory: same as checkout directory
Targets: none specified
Ant home path: C:\apache-ant-1.7.0
Additional Ant command line parameters: -lib c:\WebLogic\12.1.2\wlserver\server\lib\javaee.jar;c:\WebLogic\12.1.2\wlserver\server\lib\weblogic.jar;c:\WebLogic\12.1.2\wlserver\server\lib\webservices.jar
JDK home path: c:\Program Files\Java\jdk1.7.0_80
JVM command line parameters: not specified
Reduce test failure feedback time: OFF
Java code coverage: disabled
Docker Settings
Docker Image: unset
I'll appreciate any help in this regard.
I found there was character encoding issue with one of the files that prevented compiler from loading the java classes. Once that was fixed, the build worked fine.
I have a Sencha Touch App and also a Sencha Touch Package with the following basic structure:
MyApp
/app
/packages/MyPackage
When I try to build the package by executing:
sencha package build
(inside packages/MyPackage)
I get the following error:
[ERR] Failed to resolve dependency Ext.data.writer.Writer for file Ext.ux.MyClass [ERR] [ERR] BUILD FAILED [ERR]
com.sencha.exceptions.ExNotFound: Unknown definition for dependency :
Ext.data.writer.Writer [ERR] [ERR] Total time: 1 second [ERR] The
following error occurred while executing this line:
/MyApp/packages/MyPackage/.sencha/package/build-impl.xml:137: The
following error occurred while executing this line:
/MyApp/packages/MyPackage/.sencha/package/js-impl.xml:32:
com.sencha.exceptions.ExNotFound: Unknown definition for dependency :
Ext.data.writer.Writer
MyClass extends Ext.data.writer.Writer, in the following way:
Ext.define('Ext.ux.MyClass', {
extend: 'Ext.data.writer.Writer',
alias: 'writer.myclass',
I understand that during the compiling process the source of the class Ext.data.writer.Writer cannot be determined. How can I solve this?
Thank you!
In your sencha.cfg you should set:
package.framework=touch
It will add the framework to the classpath
OK Guys, I was able to build my package by editing the following config file:
/MyApp/packages/MyPackage/.sencha/package/sencha.cfg
I added the touch framework to the package classpath.
Before:
package.classpath=${package.dir}/src
After
package.classpath=${package.dir}/src,${touch.dir}
I'm trying to minify an additional file that is not included in the whole build process after the build finished.
I think this could be done from within the build.xml file by calling the sencha cmd from the "-after-build" section and tried the following way:
<target name="-after-build">
<x-sencha-command dir="${build.dir}">
fs
minify
-f additional-file.js
-t additional-file.min.js
-yui
</x-sencha-command>
</target>
Unfortunately this results in an pretty generic error:
[INF] -after-build:
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException
[ERR]
[ERR] Total time: 18 seconds
[ERR] The following error occurred while executing this line:
...\build.xml:31: com.sencha.exceptions.BasicException
Line 31 of build.xml is:
<x-sencha-command dir="${build.dir}">
How can this be done?
Thanks & best regards
ps.: I've already posted this question on the sencha forum but didn't get no repsonse so far: http://www.sencha.com/forum/showthread.php?272190-Executing-sencha-minify-command-from-build.xml
The above task-call was only missing "=" between the parameternames (-t & -f) and their values. So this is working:
<x-sencha-command>
fs
minify
-f=${build.dir}/bootstrap-app.js
-t=${build.dir}/bootstrap-app.js
${build.compression}
</x-sencha-command>
I am using command "sencha app build testing" to deploy testing package.
I am getting following errors during creating testing build:
[WRN] C1000: Yui Compressor Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- C:\localdevelopment\apps\pressflow\ne w\pulse\app\app\view\DDEditor.js:2663
[INF] Processing class inheritance graph
[INF] Processing instantiation refereces to classes and aliases
[WRN] C1000: Yui Compressor Warning (Trailing comma is not legal in an
ECMA-262 object initializer => },) -- C:\localdevelopment\apps\pressflow\ne w\pulse\app\app\view\DDEditor.js:2663
[INF] Processing source dependencies
[ERR] Circular requires reference :
...\touch\src\AbstractComponent.js
...\touch\src\Evented.js ->
...\touch\src\core\src\util\TaskMan
ager.js ->
...\touch\src\util\TaskRunner.js ->
...\touch\src\util\Format.js ->
...\touch\src\core\src\util\TaskMan
ager.js
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurr
ed while executing this line:
[ERR] ...\.sencha\app\bui
ld-impl.xml:137: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.B
asicException: com.sencha.exceptions.ExCircularReference: Circular requires refe
rence for file ...\touch\src\core\s
rc\util\TaskManager.js (x-app-build#273) runAppBuild (x-app-build:273) [anon
ymous] (x-app-build:545) x_app_build (x-app-build:543) <script> (anonymous:1
)
Please help to resolve these errors ...
You have some typos in your code. That's what the
[WRN] C1000: Yui Compressor Warning (Trailing comma is not
legal in an ECMA-262 object initializer => },) --
C:\localdevelopment\apps\pressflow\ne
w\pulse\app\app\view\DDEditor.js:2663
is complaining. You have some extra commas somewhere in DDEditor.js.
The
[ERR] Circular requires reference :
says that you requiring extra classes in your project before you can use it. Take a look at this post
http://bugsdaily.com/sencha-extjs-4/extjs-circular-requires-reference.html