I can't work either. With no Maven, Ant combination, always error: "Error <fx: Array> This tag could not be resolved to an ActionScript class ..."
Do you know what happens? I am not able to understand or fix this. Hiedra. -----Mensaje original----- De: Piotr Zarzycki <[email protected]> Enviado el: lunes, 22 de febrero de 2021 11:03 Para: Apache Royale Development <[email protected]> Asunto: Re: Align Maven IDE distribution with Ant IDE distribution Hi Guys, I just tried new distribution and I'm able to build simple example. However our Royale project is not building - I'm getting following exception: : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/StringEscapeUtils : at org.apache.royale.compiler.internal.codegen.js.jx.LiteralEmitter.emit(LiteralEmitter.java:225) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitLiteral(JSRoyaleEmitter.java:1040) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitLiteral(ASBlockWalker.java:479) : at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:373) : at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) : at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) : at org.apache.royale.compiler.internal.codegen.js.goog.JSGoogEmitter.emitAssignedValue(JSGoogEmitter.java:965) : at org.apache.royale.compiler.internal.codegen.js.JSEmitter.emitAssignmentCoercion(JSEmitter.java:917) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitAssignmentCoercion(JSRoyaleEmitter.java:1558) : at org.apache.royale.compiler.internal.codegen.js.jx.FunctionCallArgumentsEmitter.emitContents(FunctionCallArgumentsEmitter.java:103) : at org.apache.royale.compiler.internal.codegen.js.jx.FunctionCallArgumentsEmitter.emit(FunctionCallArgumentsEmitter.java:50) : at org.apache.royale.compiler.internal.codegen.js.jx.FunctionCallArgumentsEmitter.emit(FunctionCallArgumentsEmitter.java:35) : at org.apache.royale.compiler.internal.codegen.js.JSEmitter.emitArguments(JSEmitter.java:259) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitArguments(JSRoyaleEmitter.java:986) : at org.apache.royale.compiler.internal.codegen.js.jx.FunctionCallEmitter.emit(FunctionCallEmitter.java:693) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitFunctionCall(JSRoyaleEmitter.java:906) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitFunctionCall(ASBlockWalker.java:330) : at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:207) : at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) : at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) : at org.apache.royale.compiler.internal.codegen.js.goog.JSGoogEmitter.emitAssignedValue(JSGoogEmitter.java:965) : at org.apache.royale.compiler.internal.codegen.js.JSEmitter.emitAssignmentCoercion(JSEmitter.java:917) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitAssignmentCoercion(JSRoyaleEmitter.java:1558) : at org.apache.royale.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.super_emitBinaryOperator(BinaryOperatorEmitter.java:598) : at org.apache.royale.compiler.internal.codegen.js.jx.BinaryOperatorEmitter.emit(BinaryOperatorEmitter.java:500) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitBinaryOperator(JSRoyaleEmitter.java:1028) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitBinaryOperator(ASBlockWalker.java:538) : at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:348) : at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) : at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) : at org.apache.royale.compiler.internal.codegen.js.jx.StatementEmitter.emit(StatementEmitter.java:40) : at org.apache.royale.compiler.internal.codegen.js.jx.StatementEmitter.emit(StatementEmitter.java:29) : at org.apache.royale.compiler.internal.codegen.js.JSEmitter.emitStatement(JSEmitter.java:349) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitStatement(JSRoyaleEmitter.java:1204) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitBlock(ASBlockWalker.java:349) : at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:278) : at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) : at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) : at org.apache.royale.compiler.internal.codegen.as.ASEmitter.emitMethodScope(ASEmitter.java:830) : at org.apache.royale.compiler.internal.codegen.js.jx.MethodEmitter.emit(MethodEmitter.java:160) : at org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitMethod(JSRoyaleEmitter.java:891) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitFunction(ASBlockWalker.java:290) : at org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:152) : at org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85) : at org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110) : at org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:159) : at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitScripts(MXMLRoyaleEmitter.java:2179) : at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.emitDocument(MXMLRoyaleEmitter.java:899) : at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitDocument(MXMLRoyaleBlockWalker.java:69) : at org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:89) : at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:156) : at org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleBlockWalker.visitFile(MXMLRoyaleBlockWalker.java:61) : at org.apache.royale.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:95) : at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:156) : at org.apache.royale.compiler.internal.codegen.mxml.MXMLBlockWalker.visitCompilationUnit(MXMLBlockWalker.java:187) : at org.apache.royale.compiler.internal.codegen.mxml.MXMLWriter.writeTo(MXMLWriter.java:69) : at org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:411) : at org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:259) : at org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:216) : at org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:363) : at org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:298) : at org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:256) : at org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:238) : Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringEscapeUtils : at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) : at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) : at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) : ... 67 more niedz., 21 lut 2021 o 18:57 Carlos Rovira <[email protected]> napisał(a): > Hi, > > I worked today on this and finally could solve the problem. A part > from Chris changes we need a bit more changes since all was set up > from the compiler to use the old names. So class paths need to be changed too > there. > Also Google Closure compiler need to be in jar mode instead of unpacked. > > Now I can use CMD (or CTRL) + SHIFT + B and select Debug or Release > option with Actionscript extension and all goes ok. > When using CMD+ENTER I think VsCode use the experimental build in Josh > extension and take the SDK in ROYALE_HOME, and since that's the one > build in the repository with ANT all seems fine, but is not using the > selected SDK, so the build is not using what you expect. > > This is my output now using the Maven Distribution SDK: > > > > > > > > > > > > > > > > > > > > *> Executing task in folder TourDeJewel: > /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin > /java > -jar > > /Users/carlosrovira/.vscode/extensions/bowlerhatllc.vscode-nextgenas-1 > .6.0/bin/asconfigc.jar --sdk > /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven --debug=true > --project > > /Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/jewel/TourD > eJewel/asconfig.json > > <MXMLJSC+royalelib=/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-m > aven/frameworks--debug=true+configname=royale--targets=JSRoyale--sourc > e-path+=src/main/resources--source-map=true--html-template=src/main/re > sources/jewel-example-index-template.html--theme=${royalelib}/themes/J > ewelTheme/src/main/resources/defaults.css-js-dynamic-access-unknown-me > mbers=true--src/main/royale/App.mxmlThe > project 'App' has been successfully compiled.12.80962843 > secondsTerminal will be reused by tasks, press any key to close it.* > > > > > > > El sáb, 20 feb 2021 a las 18:16, Christofer Dutz (< > [email protected]>) > escribió: > > > So I just did a video and posted it to the Royale slack channel ... > > > > I can't seem to reproduce the error ... perhaps if you check what > > I'm doing you can tell me if I'm doing something wrong. > > I did try to rule out that I might have not configured VSCode to use > > my distribution by intentionally changing the settings to a wrong location. > It > > didn't work then, and when I changed it back to the correct version, > > I could build again. > > > > Chris > > > > > > -----Ursprüngliche Nachricht----- > > Von: Carlos Rovira <[email protected]> > > Gesendet: Samstag, 20. Februar 2021 15:17 > > An: Apache Royale Development <[email protected]> > > Betreff: Re: Align Maven IDE distribution with Ant IDE distribution > > > > Hi, > > > > sorry, yesterday was mostly offline for some personal things. Many > > things happen in this thread. > > I rebuild all today and check. This is what I can report trying to > > build TDJ with Maven SDK with Chris's changes. > > Setting my VSCode with AS3&MXML to the Maven SDK just generated: > > > > 1.- I can't build with CMD+SHIFT+ENTER, then "Build Debug with AS3 > > Extension Tour de Jewel" (as josh said). I get : > > > > Executing task in folder TourDeJewel: > > > /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin > /java > > -jar > > > > > /Users/carlosrovira/.vscode/extensions/bowlerhatllc.vscode-nextgenas-1 > .6.0/bin/asconfigc.jar > > --sdk /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven > --debug=true > > --project > > > /Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/jewel/TourD > eJewel/asconfig.json > > < > > > > Error: no se ha encontrado o cargado la clase principal > > org.apache.royale.compiler.clients.MXMLJSC > > The terminal process > > > > > "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bi > n/java > > '-jar', > > > > > '/Users/carlosrovira/.vscode/extensions/bowlerhatllc.vscode-nextgenas- > 1.6.0/bin/asconfigc.jar', > > '--sdk', '/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven', > > '--debug=true', '--project', > > > > > '/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/jewel/TourDeJewel/asconfig.json'" > > terminated with exit code: 1. > > > > Terminal will be reused by tasks, press any key to close it. > > > > > > 2.- I can build with CMD+ENTER. I get: > > > > Royale Compiler Shell > > (fcsh) mxmlc --debug=false +configname=royale --targets=JSRoyale > > --source-path+=src/main/resources --source-map=true > > --html-template=src/main/resources/jewel-example-index-template.html > > --theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.c > > ss -js-dynamic-access-unknown-members=true -- > > src/main/royale/App.mxml > > fcsh: Assigned 1 as the compile target id The project 'App' has been > > successfully compiled and optimized. > > Compile status: 0 > > Elapsed time: 26.925719521 seconds > > Feb 20, 2021 3:10:42 PM > > com.google.javascript.jscomp.LoggerErrorManager > > printSummary > > INFO: 0 error(s), 0 warning(s), 97.8% typed > > (fcsh) > > > > I don't understand fully the differences between one method and the > > other and why I get different results. I guess know what's happening > > is needed > so > > Chris can do the proper changes. probably there are paths and > > locations mixed. > > > > @Chris, one thing I did in the past was to compare maven > > distribution > with > > ant distribution so both has most of the things in the same place. I > think > > some files where left in more than one place (like mxmlc). > > > > If you could take a look at it, that will for sure fix the issue. > > You > have > > TDJ and the other project to test if that works and now we know that > > is better to try with CMD+SHIFT+ENTER, then "Build Debug with AS3 > > Extension Tour de Jewel" > > > > > > > > > > El vie, 19 feb 2021 a las 18:45, Piotr Zarzycki (< > > [email protected]>) > > escribió: > > > > > It looks like something bad has happened with my environment. I > > > changed lately Java settings a bit. You can see what is setup in > > > my > > stacktrace. > > > > > > I will get back to that over the weekend or on Monday. > > > > > > On Fri, 19 Feb 2021 at 18:24, Maria Jose Esteve > > > <[email protected]> > > wrote: > > > > > > > Hi, > > > > Piotr, I just tested your distribution with my project and the > > > compilation > > > > was successful, no errors. > > > > Running the application seems to be working fine too. > > > > (I compile the application with mvn) > > > > > > > > What do they need me to try now? > > > > > > > > Hiedra. > > > > -----Mensaje original----- > > > > De: Piotr Zarzycki <[email protected]> Enviado el: > > > > viernes, > > > > 19 de febrero de 2021 18:11 > > > > Para: Apache Royale Development <[email protected]> > > > > Asunto: Re: Align Maven IDE distribution with Ant IDE > > > > distribution > > > > > > > > Did you test my distribution ? > > > > > > > > pt., 19 lut 2021 o 18:00 Christofer Dutz > > > > <[email protected]> > > > > napisał(a): > > > > > > > > > So I did a bit more of testing. > > > > > > > > > > So after I had no issues building Carlos' example, I tried the > > > > > TourDeJewl example. > > > > > So I opened VSCode in the directory of TDJ example ... created > > > > > a settings.json with the folowing content: > > > > > > > > > > { > > > > > "as3mxml.sdk.framework": "C:\\Temp\\RoyaleSDK", > > > > > "as3mxml.sdk.editor": "C:\\Temp\\RoyaleSDK" > > > > > } > > > > > > > > > > Hit STRG+Enter and waited a bit ... > > > > > > > > > > Then I opened the output in Chrome and have a fully > > > > > functioning TDJ application. > > > > > > > > > > So I wouldn't consider the build broken. > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Maria Jose Esteve <[email protected]> > > > > > Gesendet: Freitag, 19. Februar 2021 17:51 > > > > > An: [email protected] > > > > > Betreff: RE: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Sure, that would be "expected", but like I told you: if I > > > > > change it to MXRoyaleJS.swc, the app "does nonsense". > > > > > Maybe something has gotten my way. > > > > > > > > > > I will read your messages and see if I can help with something. > > > > > > > > > > Hiedra. > > > > > -----Mensaje original----- > > > > > De: Christofer Dutz <[email protected]> Enviado el: > > > > > viernes, > > > > > 19 de febrero de 2021 14:12 > > > > > Para: [email protected] > > > > > Asunto: AW: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Hi Hiedra, > > > > > > > > > > well I changed the distribution to make the names like in the > > > > > ANT distribution yesterday. > > > > > But you are passing in an argument telling the compiler to use > > > > > the old format and now it should be the new ... > > > > > > > > > > Try: > > > > > -compiler.exclude-defaults-css-files = MXRoyaleJS.swc: > > > > > defaults.css; For -compiler.exclude-defaults-css-files = > > MXRoyaleJS.swc: > > > > > defaults.css; > > > > > > > > > > Instead of your variant. > > > > > > > > > > Chris > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Maria Jose Esteve <[email protected]> > > > > > Gesendet: Freitag, 19. Februar 2021 14:08 > > > > > An: [email protected] > > > > > Betreff: RE: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Yes, until recently I also compiled only with Maven. Due to > > > > > the problem with the spark.css I started to do the double > > > > > compilation of > > > > MAVEN and ANT. > > > > > > > > > > It's funny, now, the swc's are not generated with > > > > > "xxxx-0.9.8-SNAPSHOT-js.swc" in the distribution BUT if in the > > > > > pom of my project I change in additionalCompilerOptions: > > > > > -compiler.exclude-defaults-css-files = MXRoyale - $ > > > > > {royale.framework.version} -js.swc: defaults.css; For > > > > > -compiler.exclude-defaults-css-files = MXRoyaleJS.swc: > > > > > defaults.css; My application starts to do nonsense (for > > > > > example the change of selectedContent in my > > > > > ApplicationMainContent does not display) > > > > > > > > > > Chris, thank you. > > > > > Hiedra > > > > > > > > > > -----Mensaje original----- > > > > > De: Christofer Dutz <[email protected]> Enviado el: > > > > > viernes, > > > > > 19 de febrero de 2021 13:09 > > > > > Para: [email protected] > > > > > Asunto: AW: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Hi Hiedra, > > > > > > > > > > I have to admit that I've never used VSCode. Every time I do > > > > > any development I usually use one of the JetBrains IDEs. > > > > > Royale Stuff I do in IntelliJ ... with my "Flexmojos Hack" it > > > > > can be used quite well. And I always compile with Maven. > > > > > > > > > > But thanks for the explanation on why the other path is set > > > differently. > > > > > > > > > > I guess we'll have to wait till some others can tell me what > > > > > needs to be changed. > > > > > > > > > > Chris > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Maria Jose Esteve <[email protected]> > > > > > Gesendet: Freitag, 19. Februar 2021 12:48 > > > > > An: [email protected] > > > > > Betreff: RE: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Hello Chris, > > > > > so that I can debug my changes in the SDK I need to set the > > > > > path of the "as3mxml.sdk.editor" to the asjs directory of my > > > > > fork, for this reason the path of the " as3mxml.sdk.framework" > > > > > points to the directory of the maven distribution and the > > > > > "as3mxml.sdk.editor" > > > > > to > > > code. > > > > > > > > > > ">> I'm not getting any errors from VSCode. But well ... if I > > > > > hit > > > > > SHIFT+Enter it starts doing something where if failed prior to > > > > > SHIFT+my > > > > > >> changes this morning and is no longer complaining, but it's > > > > > >> also not > > > > > doing much (I can't see it create a "bin" directory)" > > > > > > > > > > I don't quite understand this ... possibly because of my lack > > > > > of > > > > knowledge. > > > > > > > > > > I have not tried Carlos's project but this afternoon I will be > > > > > able to do it and I will be able to give more details. > > > > > > > > > > Thx. > > > > > Hiedra. > > > > > > > > > > -----Mensaje original----- > > > > > De: Christofer Dutz <[email protected]> Enviado el: > > > > > viernes, > > > > > 19 de febrero de 2021 11:51 > > > > > Para: [email protected] > > > > > Asunto: AW: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Hi Heidra, > > > > > > > > > > I just updated Carlos' example to have the same type of > > > > > setting (C:\\Temp\\RoyaleSDK is where I have my Maven build > > > > > generate the > > SDK): > > > > > > > > > > setings.js: > > > > > { > > > > > "as3mxml.sdk.framework": "C:\\Temp\\RoyaleSDK", > > > > > "as3mxml.sdk.editor": "C:\\Temp\\RoyaleSDK" > > > > > } > > > > > > > > > > workspace-code-workspace > > > > > { > > > > > "folders": [ > > > > > { > > > > > "path": ".." > > > > > } > > > > > ], > > > > > "settings": { > > > > > "as3mxml.sdk.framework": "C:\\Temp\\RoyaleSDK", > > > > > "as3mxml.sdk.editor": "C:\\Temp\\RoyaleSDK" > > > > > } > > > > > } > > > > > > > > > > I'm not getting any errors from VSCode. But well ... if I hit > > > > > SHIFT+Enter it starts doing something where if failed prior to > > > > > SHIFT+my > > > > > changes this morning and is no longer complaining, but it's > > > > > also not doing much (I can't see it create a "bin" directory) > > > > > > > > > > Chris > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > Von: Maria Jose Esteve <[email protected]> > > > > > Gesendet: Freitag, 19. Februar 2021 10:53 > > > > > An: [email protected] > > > > > Betreff: RE: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > If I don't compile with ANT, the mxml extension in vsCode IDE, > > > > > it doesn't recognize the valid asjs directory for > "as3mxml.sdk.editor": > > > > > ... > > > > > "settings": { > > > > > "as3mxml.sdk.framework": > > > > > "d:\\Apache\\apache-royale-0.9.8-bin-js\\royale-asjs", > > > > > "as3mxml.sdk.editor": > > > > > "D:\\Develop_Royale\\Projects\\Royale-SDK\\royale-asjs" > > > > > <-------- [download folder repo royale-asjs] > > > > > } > > > > > } > > > > > > > > > > The error is: > > > > > " as3mxml.sdk.editor in settings does not point to a valid SDK. > > > > > Requires..." > > > > > > > > > > Thx. > > > > > Hiedra. > > > > > > > > > > -----Mensaje original----- > > > > > De: Piotr Zarzycki <[email protected]> Enviado el: > > > > > viernes, 19 de febrero de 2021 10:44 > > > > > Para: Apache Royale Development <[email protected]> > > > > > Asunto: Re: Align Maven IDE distribution with Ant IDE > > > > > distribution > > > > > > > > > > Hi Chris, > > > > > > > > > > I just tried your changes and I have same issue. I need to > > > > > understand what has change enough significantly that it causes > > > > > compilation fail in such way. It doesn't happen with SDK > > > > > prepared > by > > ANT. > > > > > > > > > > Thanks, > > > > > Piotr > > > > > > > > > > pt., 19 lut 2021 o 10:33 Maria Jose Esteve <[email protected]> > > > > napisał(a): > > > > > > > > > > > @Chris you're right, sorry, I didn't download your last commit. > > > > > > I'm sorry. > > > > > > Hiedra. > > > > > > > > > > > > -----Mensaje original----- > > > > > > De: Christofer Dutz <[email protected]> Enviado el: > > > > > > viernes, > > > > > > 19 de febrero de 2021 10:17 > > > > > > Para: [email protected] > > > > > > Asunto: AW: Align Maven IDE distribution with Ant IDE > > > > > > distribution > > > > > > > > > > > > I'll try to guess what you wanted to say here ... > > > > > > > > > > > > But I think these are exactly the changes I comitted a an > > > > > > hour ago, > > > > > right? > > > > > > At least in general I replaced all the references to names > > > > > > with versions to the changed ones. > > > > > > > > > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Maria Jose Esteve <[email protected]> > > > > > > Gesendet: Freitag, 19. Februar 2021 10:01 > > > > > > An: [email protected] > > > > > > Betreff: RE: Align Maven IDE distribution with Ant IDE > > > > > > distribution > > > > > > > > > > > > Hi, > > > > > > Mi distribución hace referencia en el fichero > > > > > > "./frameworks/royale-config.xml" a las librerías: > > > > > > > > > > > > <js-external-library-path> > > > > > > > > > > > > > > <path-element>../js/libs/royale-typedefs-js-0.9.8-SNAPSHOT-typedefs. > > > > > > sw > > > > > > c</path-element> > > > > > > > > > > > > > > > > > <path-element>../js/libs/royale-typedefs-gcl-0.9.8-SNAPSHOT-ty > > > > > pede > > > > > fs.s > > > > > wc</path-element> > > > > > > </js-external-library-path> > > > > > > > > > > > > Las correctas son: > > > > > > > > > > > > <js-external-library-path> > > > > > > > > > > <path-element>../js/libs/royale-typedefs-js.swc</path-element> > > > > > > > > > > <path-element>../js/libs/royale-typedefs-gcl.swc</path-element> > > > > > > </js-external-library-path> > > > > > > > > > > > > Hiedra > > > > > > > > > > > > -----Mensaje original----- > > > > > > De: Christofer Dutz <[email protected]> Enviado el: > > > > > > viernes, > > > > > > 19 de febrero de 2021 9:39 > > > > > > Para: [email protected] > > > > > > Asunto: AW: Align Maven IDE distribution with Ant IDE > > > > > > distribution > > > > > > > > > > > > Ok, > > > > > > > > > > > > so the config xml files in the distribution were still > > > > > > pointing to the old names. I updated them all to now refer to the > > > > > > names. > > > > > > I tried things in Carlos' demo project, and I'm no-longer > > > > > > getting the errors, however compilation seems to take for ever. > > > > > > > > > > > > Please try out the changes and tell me if there are any > > > > > > problems with > > > > > them. > > > > > > > > > > > > Chris > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Christofer Dutz <[email protected]> > > > > > > Gesendet: Donnerstag, 18. Februar 2021 23:17 > > > > > > An: [email protected] > > > > > > Betreff: AW: Align Maven IDE distribution with Ant IDE > > > > > > distribution > > > > > > > > > > > > Hi Carlos, > > > > > > > > > > > > I'll look into this tomorrow. > > > > > > > > > > > > Chris > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > Von: Carlos Rovira <[email protected]> > > > > > > Gesendet: Donnerstag, 18. Februar 2021 17:49 > > > > > > An: Apache Royale Development <[email protected]> > > > > > > Betreff: Re: Align Maven IDE distribution with Ant IDE > > > > > > distribution > > > > > > > > > > > > Hi, I think I talked very quickly, sorry, there seems to be > > > > > > a > > > problem. > > > > > > > > > > > > @Christofer Dutz <[email protected]> you can > > > > > > download this > > > > > > project: > > > > > > > > > > > > > > > > > > https://github.com/apache/royale-asjs/files/6004363/ToggleBu > > > > > > tton > > > > > > BarI > > > > > > ss > > > > > > ue.zip > > > > > > > > > > > > Then using VSCode with AS3&MXML and adding the Maven > distribution. > > > > > > Then hit CTRL+ENTER and you will get the following fail. > > > > > > Using ANT distribution is working fine. > > > > > > Can you take a look? > > > > > > > > > > > > Royale Compiler Shell > > > > > > (fcsh) mxmlc --debug=false +configname=royale > > > > > > --targets=JSRoyale --source-map=true > > > > > > --html-template=src/html/jewel-example-index-template.html > > > > > > > > > > > > --theme=${royalelib}/themes/Jewel-Light-Flat-Primary-Sapphir > > > > > > e-Th > > > > > > eme/ > > > > > > sr > > > > > > c/main/resources/defaults.css > > > > > > --source-path+=src > > > > > > --source-path+--library-path+=${royalelib}/js/libs/MXRoyaleJ > > > > > > --source-path+--library-path+S.sw c > > > > > > --js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc > > > > > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults > > > > > > .css -js-dynamic-access-unknown-members=true -- src/App.mxml > > > > > > fcsh: Assigned 1 as the compile target id The project 'App' > > > > > > has been successfully compiled and optimized. > > > > > > Compile status: 0 > > > > > > Elapsed time: 14.211105399 seconds Feb 18, 2021 5:43:40 PM > > > > > > com.google.javascript.jscomp.LoggerErrorManager > > > > > > printSummary > > > > > > INFO: 0 error(s), 0 warning(s), 96.5% typed > > > > > > (fcsh) quit > > > > > > Compiler shell exited with code: 0 Royale Compiler Shell > > > > > > (fcsh) mxmlc --debug=false +configname=royale > > > > > > --targets=JSRoyale --source-map=true > > > > > > --html-template=src/html/jewel-example-index-template.html > > > > > > > > > > > > --theme=${royalelib}/themes/Jewel-Light-Flat-Primary-Sapphir > > > > > > e-Th > > > > > > eme/ > > > > > > sr > > > > > > c/main/resources/defaults.css > > > > > > --source-path+=src > > > > > > --source-path+--library-path+=${royalelib}/js/libs/MXRoyaleJ > > > > > > --source-path+--library-path+S.sw c > > > > > > --js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc > > > > > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults > > > > > > .css -js-dynamic-access-unknown-members=true -- src/App.mxml > > > > > > fcsh: Assigned 1 as the compile target id Compile status: 5 > > > > > > Elapsed > > > > time: > > > > > > 0.618407478 seconds > > > > > > > > > > > > > > > > > > > > > > > > > > > /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks/royale-config.xml(81): > > > > > > col: 0 Error: unable to open > > > > > > > > > > > > > > > > > > > > > > > > > > > '/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/js/libs/royale-typedefs-js-0.9.8-SNAPSHOT-typedefs.swc'. > > > > > > > > > > > > /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fram > > > > > > ewor > > > > > > ks/r > > > > > > oy > > > > > > ale-config.xml > > > > > > (line: 81) > > > > > > > > > > > > </js-external-library-path> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/frameworks/royale-config.xml(81): > > > > > > col: 0 Error: unable to open > > > > > > > > > > > > > > > > > > > > > > > > > > > '/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/js/libs/royale-typedefs-gcl-0.9.8-SNAPSHOT-typedefs.swc'. > > > > > > > > > > > > /Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven/fram > > > > > > ewor > > > > > > ks/r > > > > > > oy > > > > > > ale-config.xml > > > > > > (line: 81) > > > > > > > > > > > > </js-external-library-path> > > > > > > (fcsh) > > > > > > Quick Compile failed. Errors in compiler output. > > > > > > > > > > > > El jue, 18 feb 2021 a las 17:26, Carlos Rovira > > > > > > (<[email protected]>) > > > > > > escribió: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I rebuilt all from scratch just now and finally the > > > > > > > distribution too and tried in VSCode and all seems to work > > > > > > > fine > > for me. > > > > > > > > > > > > > > El jue, 18 feb 2021 a las 16:30, Christofer Dutz (< > > > > > > > [email protected]>) escribió: > > > > > > > > > > > > > >> Hi Piotr, > > > > > > >> > > > > > > >> that class is located in lib\external\flex-tool-api.jar > > > > > > >> At least in my distribution it's there and it contains the class. > > > > > > >> > > > > > > >> How are you calling the build that's failing? > > > > > > >> > > > > > > >> Chris > > > > > > >> > > > > > > >> -----Ursprüngliche Nachricht----- > > > > > > >> Von: Piotr Zarzycki <[email protected]> > > > > > > >> Gesendet: Donnerstag, 18. Februar 2021 16:22 > > > > > > >> An: Apache Royale Development <[email protected]> > > > > > > >> Betreff: Re: Align Maven IDE distribution with Ant IDE > > > > > > >> distribution > > > > > > >> > > > > > > >> Chris, > > > > > > >> > > > > > > >> I just checked and I'm not able build project anymore > > > > > > >> using > > > > > > distribution: > > > > > > >> > > > > > > >> : Using Royale SDK: "D:\Work\royale_ide\distribution" > > > > > > >> : Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 > > > > > > >> -Xms356m -Xmx3000m > > > > > > >> : Error: Could not find or load main class > > > > > > >> org.apache.royale.compiler.clients.MXMLJSC > > > > > > >> : Caused by: java.lang.NoClassDefFoundError: > > > > > > >> org/apache/flex/tools/FlexTool > > > > > > >> > > > > > > >> I'm done for today, so I will answer anything tomorrow. > > > > > > >> > > > > > > >> czw., 18 lut 2021 o 16:05 Christofer Dutz > > > > > > >> <[email protected]> > > > > > > >> napisał(a): > > > > > > >> > > > > > > >> > Ok ... > > > > > > >> > > > > > > > >> > so I just pushed another change. Now the distribution > > > > > > >> > should also contain an empty spark.css, just like the > > > > > > >> > Ant > one. > > > > > > >> > > > > > > > >> > Chris > > > > > > >> > > > > > > > >> > > > > > > > >> > -----Ursprüngliche Nachricht----- > > > > > > >> > Von: Christofer Dutz <[email protected]> > > > > > > >> > Gesendet: Donnerstag, 18. Februar 2021 15:58 > > > > > > >> > An: [email protected] > > > > > > >> > Betreff: AW: Align Maven IDE distribution with Ant IDE > > > > > > >> > distribution > > > > > > >> > > > > > > > >> > Ok, > > > > > > >> > > > > > > > >> > so that should now be fixed. Leaves the "spark.css" > > > > > > >> > Having had a look, it seems as if the Ant build creates > > > > > > >> > an empty > > > > > > >> spark.css. > > > > > > >> > > > > > > > >> > Is this all we need? If yes, then I'll have that in > > > > > > >> > ther in no > > > > time. > > > > > > >> > > > > > > > >> > Chris > > > > > > >> > > > > > > > >> > -----Ursprüngliche Nachricht----- > > > > > > >> > Von: Piotr Zarzycki <[email protected]> > > > > > > >> > Gesendet: Donnerstag, 18. Februar 2021 15:54 > > > > > > >> > An: Apache Royale Development <[email protected]> > > > > > > >> > Betreff: Re: Align Maven IDE distribution with Ant IDE > > > > > > >> > distribution > > > > > > >> > > > > > > > >> > *(I assume that's in the "frameworks/js/libs" > > > > > > >> > directory? * > > > > > > >> > > > > > > > >> > Yes this is the directory. > > > > > > >> > > > > > > > >> > czw., 18 lut 2021 o 15:51 Christofer Dutz > > > > > > >> > <[email protected]> > > > > > > >> > napisał(a): > > > > > > >> > > > > > > > >> > > Hi Piotr, > > > > > > >> > > > > > > > > >> > > Ok ... so Ant seems to be adding a "JS" to the end of > > > > > > >> > > every name (I assume that's in the "frameworks/js/libs" > > directory? > > > > > > >> > > > > > > > > >> > > Also I'll try to find out where the "spark.css" > > > > > > >> > > should come from > > > > > ... > > > > > > >> > > and where it should go to. > > > > > > >> > > > > > > > > >> > > Chris > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > -----Ursprüngliche Nachricht----- > > > > > > >> > > Von: Piotr Zarzycki <[email protected]> > > > > > > >> > > Gesendet: Donnerstag, 18. Februar 2021 15:47 > > > > > > >> > > An: Apache Royale Development <[email protected]> > > > > > > >> > > Betreff: Re: Align Maven IDE distribution with Ant > > > > > > >> > > IDE distribution > > > > > > >> > > > > > > > > >> > > Chris, > > > > > > >> > > > > > > > > >> > > Looks better but here is the comparision what I have > > > > > > >> > > in Ant distribution vs Maven distribution in case of names. > > > > > > >> > > On the left Ant distribution, on the right Maven. It > > > > > > >> > > is > > folder: > > > > > > >> > > frameworks\js\libs\ [1] > > > > > > >> > > > > > > > > >> > > [1] https://ibb.co/W2DzcDb > > > > > > >> > > > > > > > > >> > > czw., 18 lut 2021 o 15:22 Christofer Dutz > > > > > > >> > > <[email protected]> > > > > > > >> > > napisał(a): > > > > > > >> > > > > > > > > >> > > > And done ... > > > > > > >> > > > > > > > > > >> > > > Now all elements in the distribution only consist > > > > > > >> > > > of their name and file-ending ... all versions and > > > > > > >> > > > classifiers have been > > > > > > removed. > > > > > > >> > > > Please provide me with feedback on if this solves > > > > > > >> > > > the > > > issues. > > > > > > >> > > > > > > > > > >> > > > Chris > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > -----Ursprüngliche Nachricht----- > > > > > > >> > > > Von: Christofer Dutz <[email protected]> > > > > > > >> > > > Gesendet: Donnerstag, 18. Februar 2021 15:08 > > > > > > >> > > > An: [email protected] > > > > > > >> > > > Betreff: AW: Align Maven IDE distribution with Ant > > > > > > >> > > > IDE distribution > > > > > > >> > > > > > > > > > >> > > > I'll probably have a fix for that in a few minuntes ... > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > Chris > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > -----Ursprüngliche Nachricht----- > > > > > > >> > > > Von: Piotr Zarzycki <[email protected]> > > > > > > >> > > > Gesendet: Donnerstag, 18. Februar 2021 15:00 > > > > > > >> > > > An: Apache Royale Development > > > > > > >> > > > <[email protected]> > > > > > > >> > > > Betreff: Re: Align Maven IDE distribution with Ant > > > > > > >> > > > IDE distribution > > > > > > >> > > > > > > > > > >> > > > Chris, > > > > > > >> > > > > > > > > > >> > > > No it's not about not picking up by IDE at all. > > > > > > >> > > > Moonshine and VSCode are able to build projects > > > > > > >> > > > using Maven distribution package! It is about > > > > > > >> > > > project which are mixed for example when user > > > > > > >> > > > wanted to use Jewel module + RemoteObject class > > > > > > >> > > > from MXRoyale module. In that case user need to > > > > > > >> > > > point explicilty as a compiler options in IDE that > > > > > > >> > > > he wanted to have SWC included and need to exclude > > > > > > >> > > > css from that swc to > > > > > > >> > > avoid problems. > > > > > > >> > > > > > > > > > >> > > > It is happen like that: > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > -js-library-path+=${royalelib}/js/libs/MXRoyaleJS.s > > > > > > >> > > > wc > > > > > > >> > > > > > > -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults. > > > > > > >> > > > cs > > > > > > >> > > > s > > > > > > >> > > > > > > > > > >> > > > If I would like to use maven distribution user need > > > > > > >> > > > to know version for that compiler options. It is > > > > > > >> > > > even more tricky when your swc is called > > > > > > >> > > > -> MXRoyale-0.9.8-20210217.181012-913-js.swc > > > > > > >> > > > > > > > > > >> > > > > > -exclude-defaults-css-files=MXRoyale-0.9.8-js.swc:defaults. > > > > > > >> > > > cs > > > > > > >> > > > s > > > > > > >> > > > > > > > > > >> > > > Thanks, > > > > > > >> > > > Piotr > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > czw., 18 lut 2021 o 14:47 Christofer Dutz > > > > > > >> > > > <[email protected]> > > > > > > >> > > > napisał(a): > > > > > > >> > > > > > > > > > >> > > > > Hi Piotr, > > > > > > >> > > > > > > > > > > >> > > > > And is really the version-suffix causing it to > > > > > > >> > > > > not be picked up by the IDEs? > > > > > > >> > > > > > > > > > > >> > > > > Chris > > > > > > >> > > > > > > > > > > >> > > > > -----Ursprüngliche Nachricht----- > > > > > > >> > > > > Von: Piotr Zarzycki <[email protected]> > > > > > > >> > > > > Gesendet: Donnerstag, 18. Februar 2021 11:42 > > > > > > >> > > > > An: [email protected] > > > > > > >> > > > > Betreff: Re: Align Maven IDE distribution with > > > > > > >> > > > > Ant IDE distribution > > > > > > >> > > > > > > > > > > >> > > > > Hi Chris, > > > > > > >> > > > > > > > > > > >> > > > > This is the only thing which seems to be a > > > > > > >> > > > > constant problem > > > > > > here. > > > > > > >> > > > > I personally and some users will be much more > > > > > > >> > > > > happy having that > > > > > > >> > change. > > > > > > >> > > > > > > > > > > >> > > > > Thanks, > > > > > > >> > > > > Piotr > > > > > > >> > > > > > > > > > > >> > > > > On Thu, 18 Feb 2021 at 11:03, Christofer Dutz > > > > > > >> > > > > <[email protected]> > > > > > > >> > > > > wrote: > > > > > > >> > > > > > > > > > > >> > > > > > Hi Piotr, > > > > > > >> > > > > > > > > > > > >> > > > > > I'd be happy to help with that. > > > > > > >> > > > > > > > > > > > >> > > > > > I did simply ask for a list of things that need > > > > > > >> > > > > > to be changed in order to get things working, > > > > > > >> > > > > > but never got said list, so I never knew what I > > > > > > >> > > > > > could do to make the Maven distribution match > > > > > > >> > > > > > up to the > > > > > > >> > > > Ant built one. > > > > > > >> > > > > > > > > > > > >> > > > > > Chris > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > -----Ursprüngliche Nachricht----- > > > > > > >> > > > > > Von: Piotr Zarzycki <[email protected]> > > > > > > >> > > > > > Gesendet: Donnerstag, 18. Februar 2021 11:01 > > > > > > >> > > > > > An: Apache Royale Development > > > > > > >> > > > > > <[email protected]> > > > > > > >> > > > > > Betreff: Align Maven IDE distribution with Ant > > > > > > >> > > > > > IDE distribution > > > > > > >> > > > > > > > > > > > >> > > > > > Hi Guys, > > > > > > >> > > > > > > > > > > > >> > > > > > It's been couple of times when user complains > > > > > > >> > > > > > that he have problems with using Maven > > > > > > >> > > > > > distribution vs Ant distribution in IDE in a > > > > > > >> > > > > > mixed project Jewel + MX/Spark > > > > etc. > > > > > > >> > > > > > > > > > > > >> > > > > > Can we have that resolve once for all and > > > > > > >> > > > > > adjust Maven distribution folder to produce > > > > > > >> > > > > > proper names of > > swcs ? > > > > > > >> > > > > > > > > > > > >> > > > > > Currently when I build Maven IDE distribution I > have: > > > > > > >> > > > > > > > > > > > >> > > > > > MXRoyale-0.9.8-20210215.234230-908-js.swc > > > > > > >> > > > > > > > > > > > >> > > > > > When I build Ant IDE distribution I have: > > > > > > >> > > > > > > > > > > > >> > > > > > MXRoyale-js.swc > > > > > > >> > > > > > > > > > > > >> > > > > > Thanks, > > > > > > >> > > > > > -- > > > > > > >> > > > > > > > > > > > >> > > > > > Piotr Zarzycki > > > > > > >> > > > > > > > > > > > >> > > > > -- > > > > > > >> > > > > > > > > > > >> > > > > Piotr Zarzycki > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > -- > > > > > > >> > > > > > > > > > >> > > > Piotr Zarzycki > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > -- > > > > > > >> > > > > > > > > >> > > Piotr Zarzycki > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > > >> > -- > > > > > > >> > > > > > > > >> > Piotr Zarzycki > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> -- > > > > > > >> > > > > > > >> Piotr Zarzycki > > > > > > >> > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Carlos Rovira > > > > > > > Apache Member & Apache Royale PMC *Apache Software > > > > > > > Foundation* http://about.me/carlosrovira > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Carlos Rovira > > > > > > Apache Member & Apache Royale PMC *Apache Software > > > > > > Foundation* http://about.me/carlosrovira > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Piotr Zarzycki > > > > > > > > > > > > > > > > > -- > > > > > > > > Piotr Zarzycki > > > > > > > -- > > > > > > Piotr Zarzycki > > > > > > > > > -- > > Carlos Rovira > > Apache Member & Apache Royale PMC > > *Apache Software Foundation* > > http://about.me/carlosrovira > > > > > -- > Carlos Rovira > Apache Member & Apache Royale PMC > *Apache Software Foundation* > http://about.me/carlosrovira > -- Piotr Zarzycki
