Re: compc compiler error
Hi Alex, I am getting empty page (or component) for some components, even though it compiled without any issue. Here are some of many confusions I have: 1) mx:Panel shows on screen but mx:Module doesn't 2) Mix-n-match of mx or spark or basic or html namespace components does not show at lot on page. 3) mx:ComboBox shows empty drop down box (even though dataProvider with good data {label:, data:} is bound and spark:ComboBox does not show any box at all. 4) Is there any pattern to follow for using Application or View or Panel or container or Module components? 5) Is there any document available to look into when designing UI screens ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I could not find example for localized string management. Where can I find 'manualtests/LocaleTest' ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi, I am trying to find a better way to merge my changes with latest build and will test it with latest build. What are the alternatives for bindingutils , changewatcher and resource manager classes? Does royale api has something to replace with? -- Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I have integrated with gradle and it executed compc without any error. But I didn't see get generated swc file. After some debugging I found that there were many errors [Problems] like these. It got failed silently but returned 0 exit code. 'Generated byte code contains an operand stack underflow.' Any advise. Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, throwError.js and assertType.js does exist in output folder. I tested it with latest nightly build (#85) and didn't see that error any more. I could see the page through generated index.html which includes converted application component. However I have to do some modification to get it through: 1) I have to comment all '[ResourceBundle...' , '[Embed(Source=' . Is there any alternative for that? 2) Inclusion of css files through
Re: compc compiler error
Hi Alex, CoreJS.swc has throwError. I commented throwError dependency in generated XMLList.js file. Now it is throwing same error with next dependency (org.apache.royale.debugging.assertType) of XMLList class. Which is also there in CoreJS.swc. GoogDepsWriter creates depMap mapping object in buildDB() method. But these dependencies are not in the map. When visited map object is populated later it assumes these classes should exist in depMap, hence throwing null pointer exception. --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi, I tried with both library-path and js-library-path. Here are the logs for each case: With library-path it gives following error: "C:\Program Files\Java\jdk1.8.0_131\bin\java" -Xmx2048m -Dsun.io.useCanonCaches=false -Droyalelib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.2\lib\idea_rt.jar=51184:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_131\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_131\jre\lib\rt.jar;D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-compiler\compiler-jx\target\classes;D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-compiler\compiler-common\target\classes;C:\Users\bhau\.m2\repository\org\apache\flex\flex-tool-api\1.0.0\flex-tool-api-1.0.0.jar;C:\Users\bhau\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\bhau\.m2\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;C:\Users\bhau\.m2\repository\org\antlr\antlr\3.3\antlr-3.3.jar;C:\Users\bhau\.m2\repository\org\antlr\antlr-runtime\3.3\antlr-runtime-3.3.jar;C:\Users\bhau\.m2\repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;C:\Users\bhau\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\bhau\.m2\repository\com\google\guava\guava\20.0\guava-20.0.jar;D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-compiler\compiler-externc\target\classes;D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-compiler\compiler\target\classes;C:\Users\bhau\.m2\repository\org\apache\royale\compiler\compiler-jburg-types\1.0.0\compiler-jburg-types-1.0.0.jar;C:\Users\bhau\.m2\repository\net\sourceforge\jburg\jburg\1.10.3\jburg-1.10.3.jar;C:\Users\bhau\.m2\repository\de\jflex\jflex\1.6.0\jflex-1.6.0.jar;C:\Users\bhau\.m2\repository\org\b1\pack\lzma-sdk-4j\9.22.0\lzma-sdk-4j-9.22.0.jar;C:\Users\bhau\.m2\repository\org\apache\commons\commons-compress\1.11\commons-compress-1.11.jar;C:\Users\bhau\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\bhau\.m2\repository\args4j\args4j\2.0.28\args4j-2.0.28.jar;C:\Users\bhau\.m2\repository\com\google\javascript\closure-compiler\v20170626\closure-compiler-v20170626.jar;C:\Users\bhau\.m2\repository\com\google\javascript\closure-compiler-externs\v20170626\closure-compiler-externs-v20170626.jar;C:\Users\bhau\.m2\repository\com\google\errorprone\error_prone_annotations\2.0.18\error_prone_annotations-2.0.18.jar;C:\Users\bhau\.m2\repository\com\google\protobuf\protobuf-java\3.0.2\protobuf-java-3.0.2.jar;C:\Users\bhau\.m2\repository\com\google\code\gson\gson\2.7\gson-2.7.jar;C:\Users\bhau\.m2\repository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;C:\Users\bhau\.m2\repository\com\google\jsinterop\jsinterop-annotations\1.0.0\jsinterop-annotations-1.0.0.jar;C:\Users\bhau\.m2\repository\org\clojure\google-closure-library\0.0-20170809-b9c14c6b\google-closure-library-0.0-20170809-b9c14c6b.jar;C:\Users\bhau\.m2\repository\org\clojure\google-closure-library-third-party\0.0-20170809-b9c14c6b\google-closure-library-third-party-0.0-20170809-b9c14c6b.jar" org.apache.royale.compiler.clients.MXMLJSC -library-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\flexuiplatform-deflex-2.swc D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\app\app.mxml MXMLJSC -library-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\flexuiplatform-deflex-2.swc D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\app\app.mxml D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\app\app.mxml(14): col: 13 Error: This tag is unexpected. It will be ignored. ^ 6.605479717 seconds P
Re: compc compiler error
pendencies calculated for 'app' 5.145650348 seconds Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:280)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:359)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:254)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:98)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:392)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:386)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:242)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:198)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:299)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:258)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:240) Process finished with exit code 3 --- Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I tried with removing that option. But no difference. Still no output file. Here is the log: --- Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs args: -compiler.locale=en_US -diagnostics=14335 -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -compiler.targets=SWF,JSRoyale -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc target:SWF target:JSRoyale COMPC Loading configuration: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\royale-config.xml COMPCJSCRoyale ConfigManager waiting for lock for loadConfigData NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ConfigManager done with lock for loadConfigData 15.510287765 seconds -- Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, Here is another log with both targets: -- Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\js\Royale\generated-sources -compiler.locale=en_US -diagnostics=14335 -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -compiler.targets=SWF,JSRoyale -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc target:SWF target:JSRoyale COMPC Loading configuration: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\royale-config.xml COMPCJSCRoyale ConfigManager waiting for lock for loadConfigData NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ASCompilationUnit waiting for lock in parseRequiredFunctionBodies ASCompilationUnit done with lock in parseRequiredFunctionBodies NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ASScopeCache waiting for lock in getNamespacesForNameMap ASScopeCache done with lock in getNamespacesForNameMap ASScopeCache waiting for lock in getQualifiedScopeChainMap ASScopeCache done with lock in getQualifiedScopeChainMap ... ... ASScopeCache waiting for lock in getNamespacesForNameMap ASScopeCache done with lock in getNamespacesForNameMap ASScopeCache waiting for lock in getQualifiedScopeChainMap ASScopeCache done with lock in getQualifiedScopeChainMap NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ConfigManager done with lock for loadConfigData 14.708198123 seconds -- Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I added -diagnostic option and it shows many 'waiting for lock' and 'done with lock' messages. Here are first few and last few lines of log file: -- Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\js\Royale\generated-sources -compiler.locale=en_US -diagnostics=14335 -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc target:JSRoyale COMPCJSCRoyale ConfigManager waiting for lock for loadConfigData NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ASScopeCache waiting for lock in getNamespacesForNameMap ASScopeCache done with lock in getNamespacesForNameMap ASScopeCache waiting for lock in getQualifiedScopeChainMap ASScopeCache done with lock in getQualifiedScopeChainMap NodeBase waiting for lock in getFileSpecification NodeBase done with lock in getFileSpecification ConfigManager done with lock for loadConfigData 9.219228347 seconds --- --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, After emulating tons of classes, replacing flex api usage with corresponding royale api, I finally see no error in compilation. But output swc file is still missing. Am i doing something? Here is the console output: Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\js\Royale\generated-sources -compiler.locale=en_US -warnings -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -compiler.source-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -library-path+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset.swc -library-path+=D:\Learn\MyFirstRoyaleApp\lib\flexuiplatform-asset.swc -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc target:JSRoyale COMPCJSCRoyale 7.4628305 seconds Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I think I found the issue with my configuration. I am working with version 0.9.3 which does not have some of emulated components my application is using. However some of these missing emulated components exist in another branch (MXRoyale). So I checked out this branch code and linked my compiler with this. Newly added emulated components (like MenuBar etc.) were picked up by compiler but it could not find event class. When I revert back to 0.9.3 , it found event class but could not find newly added component (which make sense). Where can I find nightly build which includes latest emulated components? --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I replaced all flash.events.Event with org.apache.royale.events.Event and tried to run compc. But now it says 'Definition org.apache.royale.events.Event could not be found.' Am I missing something? --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I refactored and changed image source path for embed source and compiler passed through embed related errors. Now I have to fix tons of other (mostly Definition could not be found) errors. How would I emulate flex system classes (like 'flash.system.ApplicationDomain' , 'flash.system.Capabilities' etc.) for which I don't have flex source code ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: SecureAMFStreaming channel BlazeDS support in Appache Royale
Hi Alex, I have uploaded an image which shows param object detail on right side. I just replaced param.body to param in highlighted line and in mxml I used _timestamp value for display of server data. It is just a temporary workaround. <http://apache-royale-development.20373.n8.nabble.com/file/t69/ServerError_2.png> --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: SecureAMFStreaming channel BlazeDS support in Appache Royale
Hi carlos, I wrote simple mxml client using remote object to connect existing back end java server. It is not returning proper data back. I did some debugging and noticed that it actually called back end server api but data returned in AcknowledgeMessage object was not bound to _body property, instead it was bound to _timestamp property. So resultHandler method call in RemoteObject.js dispatches event with param.body(which is not correct data). After modifying this in RemoteObject.js my client works fine. But I think it is a bug. Data should be populated in _body property instead of _timestamp. If it is not a bug then I am doing something wrong. Please advise. Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, I am not trying to generate api-report any more. I am trying to generate js files from flex app module1 using Apache Royale compc command and test these generated js files in my sample app. If it works then I will follow this process in remaining 10 modules and will migrate full application (currently in adobe flex). Here is the command (and output): "D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform>compc -compiler.locale=en_US -load-config=D:\devenv\ivp\deflex\tools\flex\flex4.1-adobe\frameworks\flex-config.xml -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\flexlib.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\automation.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\Cairngorm.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\diagrammer.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\FlexSpy.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\granite.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\multicolumnform.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\svg-1.6.2.swc -library-path+=D:\Learn\MyFirstRoyaleApp\lib\flexuiplatform-asset.swc -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\frameworks\js\Royale\generated-sources -compiler.locale=en_US -load-config=D:\devenv\ivp\deflex\tools\flex\flex4.1-adobe\frameworks\flex-config.xml -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-gen\flexui -include-sources+=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\flexuiplatform-asset -compiler.source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\res-flexui\locale/{locale} -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\flexlib.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\automation.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\Cairngorm.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\CairngormEnterprise.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\diagrammer.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\drumbeatinsight.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\FlexSpy.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\granite.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\kap-layouts-1.6.2.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\kap-licence-1.6.1-commercial.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\MaskedTextInput.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\multicolumnform.swc -library-path+=D:\devenv\ivp\deflex\components\FlexUIPlatform\lib-flexui\svg-1.6.2.swc -library-path+=D:\Learn\MyFirstRoyaleApp\lib\flexuiplatform-asset.swc -output=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\build\FlexUIPlatformRoyale.swc target:JSRoyale COMPCJSCRoyale 44.711134348 seconds" Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Hi Alex, After fixing earlier errors (data bindings, deprecated, read-only etc.) command executed successfully without any error. But there is no '.swc' file created. I tried following output options 1) -output=somefile.swc 2) -js-output-type=royale 3) -js-output-type=JSRoyale 4) -directory=true What option would create javascript files (either in swc or in some other folder)? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
After adding log messages I find out actions scripts causing problem. I tried compc command after removing this code. Compiler got through that error and moved much ahead. Eventually I failed with tons of following kind of error (even though I don't see issue with read-only or binding in the code). Am i missing something? " Data binding will not be able to detect assignments to 'detailsAction'. InputScreenContainerViewStack.as(220): col: 9 Property dataProvider is read-only. dataProvider = dp; ^ TableEditorColumn.as(186): col: 33 'InputScreenVBox' has been deprecated. Please use 'InputScreenNavigatorContent or InputScreenVGroup'. var inputScreenVBox:InputScreenVBox = InputScreenVBox(UiHelper.findComponent(event.currentTarget, InputScreenVBox)); UiContext.as(217): col: 17 Property error is read-only. error = true; " Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I have already generated API report using mxmlc compiler with some warnings. I am not sure whether my process to generate swc file is correct or not. I think I have to remove all adobe flex references from my code base before running Royale compc command. Please advise: 1) To generate swc file on module1 , do I have to modify all '.as' and '.mxml' files to de-reference with adobe flex classes and reference with corresponding mx/spark classes from Royale package, before running Royale compc command ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
It is hanging in Target class (workSet.size never gets to count 0) to find dependencies. May be I am missing something here. Do I have to remove all adobe class dependencies in my module source classes before running compc command ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I am able to generate api-report. But compc is hanging forever. After digging more, it seems cyclic dependencies might cause this problem. Is there any option to ignore cyclic dependencies ? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
Other that hanging compilation with compc command, I am trying to generate api-report and could not find right command for that. Is there any documentation to generate api-report? Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I was running 'ant all' from royale-asjs folder after modifying 'COMPJSCRoyale' class (added log messages) to find out actual file name at which compc command was hanging. As your earlier suggestion I am able to run 'ant all' . But it is not picking up my changes. Is there any other task I need to run for that? --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I tried to build to get latest code and got following error : Am i missing something? [echo] Generating CmcEmitter [mkdir] Created dir: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\generated-sources\jburg\org\apache\royale\compiler\internal\as\codegen [java] Using Language Adaptor : jburg.burg.emitlangs.EmitJava [java] Using i-node adapter org.apache.royale.compiler.internal.as.codegen.IASNodeAdapter [java] Adding @SuppressWarnings({"rawtypes", "unchecked", "unused"}) to class: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\generated-sources\jburg\org\apache\royale\compiler\internal\as\codegen\CmcEmitter.java set.css.emitter.uptodate: css.emitter: [echo] Generating CSSEmitter [mkdir] Created dir: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\generated-sources\jburg\org\apache\royale\compiler\internal\css\codegen [java] Using Language Adaptor : jburg.burg.emitlangs.EmitJava [java] Using i-node adapter jburg.burg.inode.DefaultAdapter [java] Adding @SuppressWarnings({"rawtypes", "unchecked", "unused"}) to class: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\generated-sources\jburg\org\apache\royale\compiler\internal\css\codegen\CSSEmitter.java jburg: eclipse: src.depend: compile: [javac] Compiling 13 source files to D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. [javac] D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\target\generated-sources\jburg\org\apache\royale\compiler\internal\as\codegen\CmcEmitter.java:39132: error: cannot access JBurgAnnotation [javac] new UnknownTreeHandler(reducer.getProblems()).analyze(p); [javac] ^ [javac] class file for CmcEmitter.JBurgAnnotation not found [javac] 1 error [javac] 4 warnings BUILD FAILED D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs\build.xml:1938: The following error occurred while executing this line: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs\build.xml:2009: The following error occurred while executing this line: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\build.xml:68: The following error occurred while executing this line: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details. -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
Re: compc compiler error
I tried with '-' also. But it hangs forever. "D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs>compc -source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -output=flexuiplatform.swc -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.show-actionscript-warnings Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-src\royale-asjs\frameworks\js\Royale\generated-sources -source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -output=flexuiplatform.swc -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.show-actionscript-warnings target:JSRoyale COMPCJSCRoyale " 1) I wish there is log file or some verbose flag to seen what is going on. 2) Is there any detail document for these command arguments (other that -help switch) ? Does it accept regex patterns like '*' to include multiple sources to compile? Can we include multiple source folders by comma separation? 3) For modular application can we compile migrated sources of module2 by linking with existing (flex 4.1 based) module1.swc file as external-lib ? -- Sent from: http://apache-royale-development.20373.n8.nabble.com/
compc compiler error
Hi, I am getting following error when compiling with compc command. Any help is appreciated. D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\js\bin>.\compc source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -output=flexuiplatform.swc -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.show-actionscript-warnings Using Royale Compiler codebase: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\js\bin\..\.. Using Royale SDK: D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\js\bin\..\.. args: -sdk-js-lib=D:\Software\ApacheRoyale\apache-royale-0.9.3-bin-js\royale-asjs\js\bin\..\..\frameworks\js\Royale\generated-sources source-path=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -output=flexuiplatform.swc -include-sources=D:\Learn\MyFirstRoyaleApp\src\FlexUIPlatform\src-flexui -compiler.show-actionscript-warnings target:JSRoyale COMPCJSCRoyale java.util.NoSuchElementException java.util.NoSuchElementException java.util.ArrayList$Itr.next(Unknown Source)com.google.common.collect.Iterators.getOnlyElement(Iterators.java:308)com.google.common.collect.Iterables.getOnlyElement(Iterables.java:294)org.apache.royale.compiler.internal.targets.JSTarget.getRootClassCompilationUnit(JSTarget.java:219)org.apache.royale.compiler.internal.targets.JSTarget.buildAndCollectProblems(JSTarget.java:190)org.apache.royale.compiler.internal.targets.JSTarget.build(JSTarget.java:114)org.apache.royale.compiler.internal.targets.JSTarget.build(JSTarget.java:226)org.apache.royale.compiler.clients.COMPJSCRoyale.buildApplication(COMPJSCRoyale.java:408)org.apache.royale.compiler.clients.COMPJSCRoyale.buildJSTarget(COMPJSCRoyale.java:373)org.apache.royale.compiler.clients.COMPJSCRoyale.buildArtifact(COMPJSCRoyale.java:365)org.apache.royale.compiler.clients.COMPJSCRoyale.compile(COMPJSCRoyale.java:163)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:240)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:197)org.apache.royale.compiler.clients.COMPJSC._mainNoExit(COMPJSC.java:210)org.apache.royale.compiler.clients.COMPJSC.mainNoExit(COMPJSC.java:140)org.apache.royale.compiler.clients.COMPJSC.staticMainNoExit(COMPJSC.java:125)org.apache.royale.compiler.clients.COMPJSC.main(COMPJSC.java:108) 27.453418911 seconds Thanks, --Bhau -- Sent from: http://apache-royale-development.20373.n8.nabble.com/