Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Interesting. IJ goes down a completely different code path than FB. Something to keep in mind for the future. Thanks for figuring it out. -Alex On 7/6/17, 2:15 PM, "Josh Tynjala"wrote: >Unfortunately, there is no workaround for 0.8.0. Even if we try to use >-js-output-type instead, it tries to call a constructor that simply >doesn't >exist anymore. We didn't get compiler errors to tell us that this had >broken because it it used reflection to find that constructor. > >- Josh > >On Jul 6, 2017 1:47 PM, "Alex Harui" wrote: > >> Thanks for noticing that. So does that mean a workaround for 0.8.0 is >>to >> define in additional compiler options: >> >> -js-output-type=FLEXJS >> >> -Alex >> >> On 7/6/17, 11:46 AM, "Josh Tynjala" wrote: >> >> >Okay, I made a commit that seems to get things working in IntelliJ IDEA >> >again. It looks like MxmlJSC and CompJSC in flex-compiler-oem.jar no >> >longer >> >need to create the backend manually, and MXMLJSC or COMPJSC can figure >>out >> >what to do automatically based on the value of -targets now. >> > >> >I was able to successfully build some projects in IntelliJ with >>-targets >> >set to JSFlex, SWF, and also JS. >> > >> >- Josh >> > >> >On Thu, Jul 6, 2017 at 11:21 AM, Josh Tynjala >> >wrote: >> > >> >> The problem looks to be related to this line: >> >> >> >> compiler = >>COMPILER.getDeclaredConstructor(IBackend.class).newInstance( >> >> backend); >> >> >> >> It's looking for a constructor on MXMLJSC (not to be confused with >> >> MxmlJSC) that takes an IBackend as a parameter. There is no longer a >> >> constructor like that in 0.8.0. If I understand the dual changes >> >>correctly, >> >> MXMLJSC now automatically creates an IBackend based on the -targets >> >>value. >> >> It looks like this code does indeed still need changes to support >>dual. >> >> >> >> - Josh >> >> >> >> >> >> On Wed, Jul 5, 2017 at 3:09 PM, Josh Tynjala >> >> wrote: >> >> >> >>> I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, >>and >> >>>I'm >> >>> getting the following output when I try to build the project: >> >>> >> >>> Information:[HelloIDEA]: Starting Flex compiler: >> >>> "/Applications/IntelliJ >> >>>IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" >> >>> >> >>>-Dapplication.home=/Users/joshtynjala/Development/Flex/ >> sdks/flexjs-0.8.0 >> >>> -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en >> >>> -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ >> >>> >> >>>IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler- >> fix.jar:/Applicati >> >>>ons/IntelliJ >> >>> IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/Users/ >> >>> >> >>>joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/ >> flex-compiler-oem.jar >> >>>" >> >>> com.intellij.flex.compiler.FlexCompiler 54900 >> >>> Information:[HelloIDEA]: mxmlc -load-config=/Users/joshtynjal >> >>> a/Library/Caches/IntelliJIdea2017.1/compile-server/ >> >>> helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml >> >>> -load-config+=/Users/joshtynjala/Development/Flex/sdks/ >> >>> flexjs-0.8.0/ide/IDEA/intellij-config.xml >> >>> Information:[HelloIDEA]: unknown error >> >>> Information:[HelloIDEA]: at java.lang.Class.getConstructor >> >>> 0(Class.java:3082) >> >>> Information:[HelloIDEA]: at java.lang.Class.getDeclaredCon >> >>> structor(Class.java:2178) >> >>> Information:[HelloIDEA]: at flex2.tools.MxmlJSC.getCompile >> >>> rInstance(MxmlJSC.java:48) >> >>> Information:[HelloIDEA]: at >> >>>flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) >> >>> Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) >> >>> Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) >> >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.fle >> >>> x4.Flex4Handler.compileSwf(Flex4Handler.java:81) >> >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.Com >> >>> pilationThread.run(CompilationThread.java:48) >> >>> Information:[HelloIDEA]: Compilation failed >> >>> Information:7/5/17, 2:56 PM - Compilation completed with 1 error >>and 0 >> >>> warnings in 595ms >> >>> Error:[HelloIDEA]: java.lang.NoSuchMethodException: >> >>> org.apache.flex.compiler.clients.MXMLJSC.(org.apache. >> >>> flex.compiler.driver.IBackend) >> >>> >> >>> I followed the steps in these instructions that worked correctly >>with >> >>> 0.7.0: >> >>> >> >>> >> >>>https://na01.safelinks.protection.outlook.com/?url= >> https%3A%2F%2Fcwiki.a >> >>>pache.org%2Fconfluence%2Fdisplay%2FFLEX%2FUsing% >> 2BFlexJ=02%7C01%7C% >> >>>7C0db52a1b085d40a0d99008d4c49f7cf7%7Cfa7b1b5a7b34438794aed2c178de >> cee1%7C >> >>>0%7C0%7C636349636715390181=SMfsugjsJKZI9AKay2Dn0qhk7srWdH >> %2BkTtrlo >> >>>GXiw34%3D=0 >> >>> S+with+IntelliJ+IDEA >> >>> >> >>> I'm not very familiar with this part of the code, but it looks to me >> >>>like >> >>> the call to MxmlJSC.getCompilerInstance() can't find
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Unfortunately, there is no workaround for 0.8.0. Even if we try to use -js-output-type instead, it tries to call a constructor that simply doesn't exist anymore. We didn't get compiler errors to tell us that this had broken because it it used reflection to find that constructor. - Josh On Jul 6, 2017 1:47 PM, "Alex Harui"wrote: > Thanks for noticing that. So does that mean a workaround for 0.8.0 is to > define in additional compiler options: > > -js-output-type=FLEXJS > > -Alex > > On 7/6/17, 11:46 AM, "Josh Tynjala" wrote: > > >Okay, I made a commit that seems to get things working in IntelliJ IDEA > >again. It looks like MxmlJSC and CompJSC in flex-compiler-oem.jar no > >longer > >need to create the backend manually, and MXMLJSC or COMPJSC can figure out > >what to do automatically based on the value of -targets now. > > > >I was able to successfully build some projects in IntelliJ with -targets > >set to JSFlex, SWF, and also JS. > > > >- Josh > > > >On Thu, Jul 6, 2017 at 11:21 AM, Josh Tynjala > >wrote: > > > >> The problem looks to be related to this line: > >> > >> compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance( > >> backend); > >> > >> It's looking for a constructor on MXMLJSC (not to be confused with > >> MxmlJSC) that takes an IBackend as a parameter. There is no longer a > >> constructor like that in 0.8.0. If I understand the dual changes > >>correctly, > >> MXMLJSC now automatically creates an IBackend based on the -targets > >>value. > >> It looks like this code does indeed still need changes to support dual. > >> > >> - Josh > >> > >> > >> On Wed, Jul 5, 2017 at 3:09 PM, Josh Tynjala > >> wrote: > >> > >>> I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, and > >>>I'm > >>> getting the following output when I try to build the project: > >>> > >>> Information:[HelloIDEA]: Starting Flex compiler: > >>> "/Applications/IntelliJ > >>>IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" > >>> > >>>-Dapplication.home=/Users/joshtynjala/Development/Flex/ > sdks/flexjs-0.8.0 > >>> -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en > >>> -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ > >>> > >>>IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler- > fix.jar:/Applicati > >>>ons/IntelliJ > >>> IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/Users/ > >>> > >>>joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/ > flex-compiler-oem.jar > >>>" > >>> com.intellij.flex.compiler.FlexCompiler 54900 > >>> Information:[HelloIDEA]: mxmlc -load-config=/Users/joshtynjal > >>> a/Library/Caches/IntelliJIdea2017.1/compile-server/ > >>> helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml > >>> -load-config+=/Users/joshtynjala/Development/Flex/sdks/ > >>> flexjs-0.8.0/ide/IDEA/intellij-config.xml > >>> Information:[HelloIDEA]: unknown error > >>> Information:[HelloIDEA]: at java.lang.Class.getConstructor > >>> 0(Class.java:3082) > >>> Information:[HelloIDEA]: at java.lang.Class.getDeclaredCon > >>> structor(Class.java:2178) > >>> Information:[HelloIDEA]: at flex2.tools.MxmlJSC.getCompile > >>> rInstance(MxmlJSC.java:48) > >>> Information:[HelloIDEA]: at > >>>flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) > >>> Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) > >>> Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) > >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.fle > >>> x4.Flex4Handler.compileSwf(Flex4Handler.java:81) > >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.Com > >>> pilationThread.run(CompilationThread.java:48) > >>> Information:[HelloIDEA]: Compilation failed > >>> Information:7/5/17, 2:56 PM - Compilation completed with 1 error and 0 > >>> warnings in 595ms > >>> Error:[HelloIDEA]: java.lang.NoSuchMethodException: > >>> org.apache.flex.compiler.clients.MXMLJSC.(org.apache. > >>> flex.compiler.driver.IBackend) > >>> > >>> I followed the steps in these instructions that worked correctly with > >>> 0.7.0: > >>> > >>> > >>>https://na01.safelinks.protection.outlook.com/?url= > https%3A%2F%2Fcwiki.a > >>>pache.org%2Fconfluence%2Fdisplay%2FFLEX%2FUsing% > 2BFlexJ=02%7C01%7C% > >>>7C0db52a1b085d40a0d99008d4c49f7cf7%7Cfa7b1b5a7b34438794aed2c178de > cee1%7C > >>>0%7C0%7C636349636715390181=SMfsugjsJKZI9AKay2Dn0qhk7srWdH > %2BkTtrlo > >>>GXiw34%3D=0 > >>> S+with+IntelliJ+IDEA > >>> > >>> I'm not very familiar with this part of the code, but it looks to me > >>>like > >>> the call to MxmlJSC.getCompilerInstance() can't find IBackend? Could > >>>it be > >>> that flex-compiler-oem.jar is missing something in its classpath? > >>> > >>> - Josh > >>> > >> > >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Thanks for noticing that. So does that mean a workaround for 0.8.0 is to define in additional compiler options: -js-output-type=FLEXJS -Alex On 7/6/17, 11:46 AM, "Josh Tynjala"wrote: >Okay, I made a commit that seems to get things working in IntelliJ IDEA >again. It looks like MxmlJSC and CompJSC in flex-compiler-oem.jar no >longer >need to create the backend manually, and MXMLJSC or COMPJSC can figure out >what to do automatically based on the value of -targets now. > >I was able to successfully build some projects in IntelliJ with -targets >set to JSFlex, SWF, and also JS. > >- Josh > >On Thu, Jul 6, 2017 at 11:21 AM, Josh Tynjala >wrote: > >> The problem looks to be related to this line: >> >> compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance( >> backend); >> >> It's looking for a constructor on MXMLJSC (not to be confused with >> MxmlJSC) that takes an IBackend as a parameter. There is no longer a >> constructor like that in 0.8.0. If I understand the dual changes >>correctly, >> MXMLJSC now automatically creates an IBackend based on the -targets >>value. >> It looks like this code does indeed still need changes to support dual. >> >> - Josh >> >> >> On Wed, Jul 5, 2017 at 3:09 PM, Josh Tynjala >> wrote: >> >>> I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, and >>>I'm >>> getting the following output when I try to build the project: >>> >>> Information:[HelloIDEA]: Starting Flex compiler: >>> "/Applications/IntelliJ >>>IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" >>> >>>-Dapplication.home=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0 >>> -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en >>> -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ >>> >>>IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler-fix.jar:/Applicati >>>ons/IntelliJ >>> IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/Users/ >>> >>>joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/flex-compiler-oem.jar >>>" >>> com.intellij.flex.compiler.FlexCompiler 54900 >>> Information:[HelloIDEA]: mxmlc -load-config=/Users/joshtynjal >>> a/Library/Caches/IntelliJIdea2017.1/compile-server/ >>> helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml >>> -load-config+=/Users/joshtynjala/Development/Flex/sdks/ >>> flexjs-0.8.0/ide/IDEA/intellij-config.xml >>> Information:[HelloIDEA]: unknown error >>> Information:[HelloIDEA]: at java.lang.Class.getConstructor >>> 0(Class.java:3082) >>> Information:[HelloIDEA]: at java.lang.Class.getDeclaredCon >>> structor(Class.java:2178) >>> Information:[HelloIDEA]: at flex2.tools.MxmlJSC.getCompile >>> rInstance(MxmlJSC.java:48) >>> Information:[HelloIDEA]: at >>>flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) >>> Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) >>> Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.fle >>> x4.Flex4Handler.compileSwf(Flex4Handler.java:81) >>> Information:[HelloIDEA]: at com.intellij.flex.compiler.Com >>> pilationThread.run(CompilationThread.java:48) >>> Information:[HelloIDEA]: Compilation failed >>> Information:7/5/17, 2:56 PM - Compilation completed with 1 error and 0 >>> warnings in 595ms >>> Error:[HelloIDEA]: java.lang.NoSuchMethodException: >>> org.apache.flex.compiler.clients.MXMLJSC.(org.apache. >>> flex.compiler.driver.IBackend) >>> >>> I followed the steps in these instructions that worked correctly with >>> 0.7.0: >>> >>> >>>https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.a >>>pache.org%2Fconfluence%2Fdisplay%2FFLEX%2FUsing%2BFlexJ=02%7C01%7C% >>>7C0db52a1b085d40a0d99008d4c49f7cf7%7Cfa7b1b5a7b34438794aed2c178decee1%7C >>>0%7C0%7C636349636715390181=SMfsugjsJKZI9AKay2Dn0qhk7srWdH%2BkTtrlo >>>GXiw34%3D=0 >>> S+with+IntelliJ+IDEA >>> >>> I'm not very familiar with this part of the code, but it looks to me >>>like >>> the call to MxmlJSC.getCompilerInstance() can't find IBackend? Could >>>it be >>> that flex-compiler-oem.jar is missing something in its classpath? >>> >>> - Josh >>> >> >>
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Josh, That's great news! :) I will try it out once falcon build on server. It look like confluence need to be updated as well. Point 9 seems to be out of date in the instruction. Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-0-8-0-not-working-in-IntelliJ-IDEA-tp62848p62887.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Okay, I made a commit that seems to get things working in IntelliJ IDEA again. It looks like MxmlJSC and CompJSC in flex-compiler-oem.jar no longer need to create the backend manually, and MXMLJSC or COMPJSC can figure out what to do automatically based on the value of -targets now. I was able to successfully build some projects in IntelliJ with -targets set to JSFlex, SWF, and also JS. - Josh On Thu, Jul 6, 2017 at 11:21 AM, Josh Tynjalawrote: > The problem looks to be related to this line: > > compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance( > backend); > > It's looking for a constructor on MXMLJSC (not to be confused with > MxmlJSC) that takes an IBackend as a parameter. There is no longer a > constructor like that in 0.8.0. If I understand the dual changes correctly, > MXMLJSC now automatically creates an IBackend based on the -targets value. > It looks like this code does indeed still need changes to support dual. > > - Josh > > > On Wed, Jul 5, 2017 at 3:09 PM, Josh Tynjala > wrote: > >> I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, and I'm >> getting the following output when I try to build the project: >> >> Information:[HelloIDEA]: Starting Flex compiler: >> "/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" >> -Dapplication.home=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0 >> -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en >> -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ >> IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler-fix.jar:/Applications/IntelliJ >> IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/Users/ >> joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/flex-compiler-oem.jar" >> com.intellij.flex.compiler.FlexCompiler 54900 >> Information:[HelloIDEA]: mxmlc -load-config=/Users/joshtynjal >> a/Library/Caches/IntelliJIdea2017.1/compile-server/ >> helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml >> -load-config+=/Users/joshtynjala/Development/Flex/sdks/ >> flexjs-0.8.0/ide/IDEA/intellij-config.xml >> Information:[HelloIDEA]: unknown error >> Information:[HelloIDEA]: at java.lang.Class.getConstructor >> 0(Class.java:3082) >> Information:[HelloIDEA]: at java.lang.Class.getDeclaredCon >> structor(Class.java:2178) >> Information:[HelloIDEA]: at flex2.tools.MxmlJSC.getCompile >> rInstance(MxmlJSC.java:48) >> Information:[HelloIDEA]: at flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) >> Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) >> Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) >> Information:[HelloIDEA]: at com.intellij.flex.compiler.fle >> x4.Flex4Handler.compileSwf(Flex4Handler.java:81) >> Information:[HelloIDEA]: at com.intellij.flex.compiler.Com >> pilationThread.run(CompilationThread.java:48) >> Information:[HelloIDEA]: Compilation failed >> Information:7/5/17, 2:56 PM - Compilation completed with 1 error and 0 >> warnings in 595ms >> Error:[HelloIDEA]: java.lang.NoSuchMethodException: >> org.apache.flex.compiler.clients.MXMLJSC.(org.apache. >> flex.compiler.driver.IBackend) >> >> I followed the steps in these instructions that worked correctly with >> 0.7.0: >> >> https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJ >> S+with+IntelliJ+IDEA >> >> I'm not very familiar with this part of the code, but it looks to me like >> the call to MxmlJSC.getCompilerInstance() can't find IBackend? Could it be >> that flex-compiler-oem.jar is missing something in its classpath? >> >> - Josh >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
By the way, I'd like to know what kind of extra problems you are seeing (in another thread please) because that's not an issue I've encountered with VSCode. - Josh On Thu, Jul 6, 2017 at 11:16 AM, Harbswrote: > VS Code is reporting all kinds of issues that are not problems since the > switch to dual. Maybe that’s related as well? > > > On Jul 6, 2017, at 9:06 PM, Josh Tynjala wrote: > > > > I don't see why -targets wouldn't work when it works elsewhere, but I > just > > tried -compiler.targets too, and that also failed. > > > > Looking at the source code for flex2.tools.MxmlJSC, I see that it's still > > checking for the -js-output-type option, and it isn't trying to find > > -targets at all. Did you forget to update this class to support the dual > > changes? > > > > - Josh > > > > On Thu, Jul 6, 2017 at 10:44 AM, Alex Harui > > wrote: > > > >> What does IJ do with additional compiler options? Does it put them in > one > >> of the .xml files? I can see from the original post that IJ seems to be > >> using: > >> > >> -load-config=/Users/joshtynjala/Library/Caches/ > >> IntelliJIdea2017.1/compile-s > >> erver/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea- > B028A5AE-12E86E20.xml > >> -load-config+=/Users/joshtynjala/Development/Flex/ > >> sdks/flexjs-0.8.0/ide/IDE > >> A/intellij-config.xml > >> > >> > >> Did the new output log of compiler options reflect that it recognized > that > >> option? Also, I'm not sure that -targets will work, it might have to be > >> -compiler.targets > >> > >> HTH, > >> -Alex > >> > >> On 7/6/17, 9:23 AM, "Josh Tynjala" wrote: > >> > >>> I tried specifying -targets=JSFlex in the additional compiler options, > but > >>> it made no difference. > >>> > >>> - Josh > >>> > >>> On Thu, Jul 6, 2017 at 9:09 AM, Alex Harui > >>> wrote: > >>> > I suspect the issue is that IJ dictates all of the settings and > doesn't > use flex-config.xml, and thus no targets are being specified. Is > there > a > way to specify compiler.targets in additional compiler options in IJ? > There is in FB. > > -Alex > > On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: > > > While full support for FlexJS in IntelliJ IDEA would be great, I > think > > it's > > critical that we fix this issue to at least get back to the baseline > we > > had > > in 0.7. A FlexJS project required a little bit of extra configuration > with > > 0.7, but at least we could get the compiler to work inside IntellIJ. > > > > Many Flex/ActionScript developers use IntelliJ, and while I'd love to > > encourage them to try VSCode, I think many prefer to take their first > > steps > > with FlexJS in an environment they already know. Having this stop > working > > (especially when there are tutorials out there claiming it works) is > going > > to turn people away. > > > > If we can fix this issue, I want to push a 0.8.1 update because I > think > > getting this working again is very, very important. > > > > - Josh > > > > On Thu, Jul 6, 2017 at 12:55 AM, piotrz > wrote: > > > >> As I remember Chris get to the bottom of it and resolved it. > >> Unfortunately > >> after contacting with Jetbrains they refuse accept pull request with > fix > >> and > >> Chris dropped it. [1] > >> > >> I was thinking even then that if someone could fix it and store > version > >> of > >> plugin somewhere with fix it would be also HUGE, cause we could gain > >> another > >> IDE which support FlexJS. > >> > >> [1] > >> > >> https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fapache-fl > >> ex-development.247.n4.nabble=02%7C01%7C% > 7C5f4eb274ee54460f044608 > >> d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% > 7C63634952143892612 > >> 4=3U%2FcqwvO4C8OtATk9khadreh99KxUUf > sfJYiEptjJzs%3D=0. > >> com/FlexJS-Step-by-step-h-baby-td58710.html > >> > >> Thanks, > >> Piotr > >> > >> > >> > >> - > >> Apache Flex PMC > >> piotrzarzyck...@gmail.com > >> -- > >> View this message in context: http://apache-flex- > >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- > >> in-IntelliJ-IDEA-tp62848p62862.html > >> Sent from the Apache Flex Development mailing list archive at > >> Nabble.com. > >> > > > >> > >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
The problem looks to be related to this line: compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend); It's looking for a constructor on MXMLJSC (not to be confused with MxmlJSC) that takes an IBackend as a parameter. There is no longer a constructor like that in 0.8.0. If I understand the dual changes correctly, MXMLJSC now automatically creates an IBackend based on the -targets value. It looks like this code does indeed still need changes to support dual. - Josh On Wed, Jul 5, 2017 at 3:09 PM, Josh Tynjalawrote: > I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, and I'm > getting the following output when I try to build the project: > > Information:[HelloIDEA]: Starting Flex compiler: > "/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" > -Dapplication.home=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0 > -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en > -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ > IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler-fix.jar:/Applications/IntelliJ > IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/ > Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/flex-compiler-oem.jar" > com.intellij.flex.compiler.FlexCompiler 54900 > Information:[HelloIDEA]: mxmlc -load-config=/Users/ > joshtynjala/Library/Caches/IntelliJIdea2017.1/compile- > server/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml > -load-config+=/Users/joshtynjala/Development/Flex/ > sdks/flexjs-0.8.0/ide/IDEA/intellij-config.xml > Information:[HelloIDEA]: unknown error > Information:[HelloIDEA]: at java.lang.Class.getConstructor0(Class.java: > 3082) > Information:[HelloIDEA]: at java.lang.Class.getDeclaredConstructor(Class. > java:2178) > Information:[HelloIDEA]: at flex2.tools.MxmlJSC. > getCompilerInstance(MxmlJSC.java:48) > Information:[HelloIDEA]: at flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) > Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) > Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) > Information:[HelloIDEA]: at com.intellij.flex.compiler. > flex4.Flex4Handler.compileSwf(Flex4Handler.java:81) > Information:[HelloIDEA]: at com.intellij.flex.compiler. > CompilationThread.run(CompilationThread.java:48) > Information:[HelloIDEA]: Compilation failed > Information:7/5/17, 2:56 PM - Compilation completed with 1 error and 0 > warnings in 595ms > Error:[HelloIDEA]: java.lang.NoSuchMethodException: > org.apache.flex.compiler.clients.MXMLJSC.(org. > apache.flex.compiler.driver.IBackend) > > I followed the steps in these instructions that worked correctly with > 0.7.0: > > https://cwiki.apache.org/confluence/display/FLEX/Using+ > FlexJS+with+IntelliJ+IDEA > > I'm not very familiar with this part of the code, but it looks to me like > the call to MxmlJSC.getCompilerInstance() can't find IBackend? Could it be > that flex-compiler-oem.jar is missing something in its classpath? > > - Josh >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
The issue with IntelliJ IDEA on seems to be related to flex-compiler-oem.jar, which VSCode doesn't use at all. - Josh On Thu, Jul 6, 2017 at 11:16 AM, Harbswrote: > VS Code is reporting all kinds of issues that are not problems since the > switch to dual. Maybe that’s related as well? > > > On Jul 6, 2017, at 9:06 PM, Josh Tynjala wrote: > > > > I don't see why -targets wouldn't work when it works elsewhere, but I > just > > tried -compiler.targets too, and that also failed. > > > > Looking at the source code for flex2.tools.MxmlJSC, I see that it's still > > checking for the -js-output-type option, and it isn't trying to find > > -targets at all. Did you forget to update this class to support the dual > > changes? > > > > - Josh > > > > On Thu, Jul 6, 2017 at 10:44 AM, Alex Harui > > wrote: > > > >> What does IJ do with additional compiler options? Does it put them in > one > >> of the .xml files? I can see from the original post that IJ seems to be > >> using: > >> > >> -load-config=/Users/joshtynjala/Library/Caches/ > >> IntelliJIdea2017.1/compile-s > >> erver/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea- > B028A5AE-12E86E20.xml > >> -load-config+=/Users/joshtynjala/Development/Flex/ > >> sdks/flexjs-0.8.0/ide/IDE > >> A/intellij-config.xml > >> > >> > >> Did the new output log of compiler options reflect that it recognized > that > >> option? Also, I'm not sure that -targets will work, it might have to be > >> -compiler.targets > >> > >> HTH, > >> -Alex > >> > >> On 7/6/17, 9:23 AM, "Josh Tynjala" wrote: > >> > >>> I tried specifying -targets=JSFlex in the additional compiler options, > but > >>> it made no difference. > >>> > >>> - Josh > >>> > >>> On Thu, Jul 6, 2017 at 9:09 AM, Alex Harui > >>> wrote: > >>> > I suspect the issue is that IJ dictates all of the settings and > doesn't > use flex-config.xml, and thus no targets are being specified. Is > there > a > way to specify compiler.targets in additional compiler options in IJ? > There is in FB. > > -Alex > > On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: > > > While full support for FlexJS in IntelliJ IDEA would be great, I > think > > it's > > critical that we fix this issue to at least get back to the baseline > we > > had > > in 0.7. A FlexJS project required a little bit of extra configuration > with > > 0.7, but at least we could get the compiler to work inside IntellIJ. > > > > Many Flex/ActionScript developers use IntelliJ, and while I'd love to > > encourage them to try VSCode, I think many prefer to take their first > > steps > > with FlexJS in an environment they already know. Having this stop > working > > (especially when there are tutorials out there claiming it works) is > going > > to turn people away. > > > > If we can fix this issue, I want to push a 0.8.1 update because I > think > > getting this working again is very, very important. > > > > - Josh > > > > On Thu, Jul 6, 2017 at 12:55 AM, piotrz > wrote: > > > >> As I remember Chris get to the bottom of it and resolved it. > >> Unfortunately > >> after contacting with Jetbrains they refuse accept pull request with > fix > >> and > >> Chris dropped it. [1] > >> > >> I was thinking even then that if someone could fix it and store > version > >> of > >> plugin somewhere with fix it would be also HUGE, cause we could gain > >> another > >> IDE which support FlexJS. > >> > >> [1] > >> > >> https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fapache-fl > >> ex-development.247.n4.nabble=02%7C01%7C% > 7C5f4eb274ee54460f044608 > >> d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% > 7C63634952143892612 > >> 4=3U%2FcqwvO4C8OtATk9khadreh99KxUUf > sfJYiEptjJzs%3D=0. > >> com/FlexJS-Step-by-step-h-baby-td58710.html > >> > >> Thanks, > >> Piotr > >> > >> > >> > >> - > >> Apache Flex PMC > >> piotrzarzyck...@gmail.com > >> -- > >> View this message in context: http://apache-flex- > >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- > >> in-IntelliJ-IDEA-tp62848p62862.html > >> Sent from the Apache Flex Development mailing list archive at > >> Nabble.com. > >> > > > >> > >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
VS Code is reporting all kinds of issues that are not problems since the switch to dual. Maybe that’s related as well? > On Jul 6, 2017, at 9:06 PM, Josh Tynjalawrote: > > I don't see why -targets wouldn't work when it works elsewhere, but I just > tried -compiler.targets too, and that also failed. > > Looking at the source code for flex2.tools.MxmlJSC, I see that it's still > checking for the -js-output-type option, and it isn't trying to find > -targets at all. Did you forget to update this class to support the dual > changes? > > - Josh > > On Thu, Jul 6, 2017 at 10:44 AM, Alex Harui > wrote: > >> What does IJ do with additional compiler options? Does it put them in one >> of the .xml files? I can see from the original post that IJ seems to be >> using: >> >> -load-config=/Users/joshtynjala/Library/Caches/ >> IntelliJIdea2017.1/compile-s >> erver/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml >> -load-config+=/Users/joshtynjala/Development/Flex/ >> sdks/flexjs-0.8.0/ide/IDE >> A/intellij-config.xml >> >> >> Did the new output log of compiler options reflect that it recognized that >> option? Also, I'm not sure that -targets will work, it might have to be >> -compiler.targets >> >> HTH, >> -Alex >> >> On 7/6/17, 9:23 AM, "Josh Tynjala" wrote: >> >>> I tried specifying -targets=JSFlex in the additional compiler options, but >>> it made no difference. >>> >>> - Josh >>> >>> On Thu, Jul 6, 2017 at 9:09 AM, Alex Harui >>> wrote: >>> I suspect the issue is that IJ dictates all of the settings and doesn't use flex-config.xml, and thus no targets are being specified. Is there a way to specify compiler.targets in additional compiler options in IJ? There is in FB. -Alex On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: > While full support for FlexJS in IntelliJ IDEA would be great, I think > it's > critical that we fix this issue to at least get back to the baseline we > had > in 0.7. A FlexJS project required a little bit of extra configuration with > 0.7, but at least we could get the compiler to work inside IntellIJ. > > Many Flex/ActionScript developers use IntelliJ, and while I'd love to > encourage them to try VSCode, I think many prefer to take their first > steps > with FlexJS in an environment they already know. Having this stop working > (especially when there are tutorials out there claiming it works) is going > to turn people away. > > If we can fix this issue, I want to push a 0.8.1 update because I think > getting this working again is very, very important. > > - Josh > > On Thu, Jul 6, 2017 at 12:55 AM, piotrz wrote: > >> As I remember Chris get to the bottom of it and resolved it. >> Unfortunately >> after contacting with Jetbrains they refuse accept pull request with fix >> and >> Chris dropped it. [1] >> >> I was thinking even then that if someone could fix it and store version >> of >> plugin somewhere with fix it would be also HUGE, cause we could gain >> another >> IDE which support FlexJS. >> >> [1] >> >> https://na01.safelinks.protection.outlook.com/?url= http%3A%2F%2Fapache-fl >> ex-development.247.n4.nabble=02%7C01%7C% 7C5f4eb274ee54460f044608 >> d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% 7C63634952143892612 >> 4=3U%2FcqwvO4C8OtATk9khadreh99KxUUfsfJYiEptjJzs%3D=0. >> com/FlexJS-Step-by-step-h-baby-td58710.html >> >> Thanks, >> Piotr >> >> >> >> - >> Apache Flex PMC >> piotrzarzyck...@gmail.com >> -- >> View this message in context: http://apache-flex- >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- >> in-IntelliJ-IDEA-tp62848p62862.html >> Sent from the Apache Flex Development mailing list archive at >> Nabble.com. >> >> >>
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
I don't see why -targets wouldn't work when it works elsewhere, but I just tried -compiler.targets too, and that also failed. Looking at the source code for flex2.tools.MxmlJSC, I see that it's still checking for the -js-output-type option, and it isn't trying to find -targets at all. Did you forget to update this class to support the dual changes? - Josh On Thu, Jul 6, 2017 at 10:44 AM, Alex Haruiwrote: > What does IJ do with additional compiler options? Does it put them in one > of the .xml files? I can see from the original post that IJ seems to be > using: > > -load-config=/Users/joshtynjala/Library/Caches/ > IntelliJIdea2017.1/compile-s > erver/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml > -load-config+=/Users/joshtynjala/Development/Flex/ > sdks/flexjs-0.8.0/ide/IDE > A/intellij-config.xml > > > Did the new output log of compiler options reflect that it recognized that > option? Also, I'm not sure that -targets will work, it might have to be > -compiler.targets > > HTH, > -Alex > > On 7/6/17, 9:23 AM, "Josh Tynjala" wrote: > > >I tried specifying -targets=JSFlex in the additional compiler options, but > >it made no difference. > > > >- Josh > > > >On Thu, Jul 6, 2017 at 9:09 AM, Alex Harui > >wrote: > > > >> I suspect the issue is that IJ dictates all of the settings and doesn't > >> use flex-config.xml, and thus no targets are being specified. Is there > >>a > >> way to specify compiler.targets in additional compiler options in IJ? > >> There is in FB. > >> > >> -Alex > >> > >> On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: > >> > >> >While full support for FlexJS in IntelliJ IDEA would be great, I think > >> >it's > >> >critical that we fix this issue to at least get back to the baseline we > >> >had > >> >in 0.7. A FlexJS project required a little bit of extra configuration > >>with > >> >0.7, but at least we could get the compiler to work inside IntellIJ. > >> > > >> >Many Flex/ActionScript developers use IntelliJ, and while I'd love to > >> >encourage them to try VSCode, I think many prefer to take their first > >> >steps > >> >with FlexJS in an environment they already know. Having this stop > >>working > >> >(especially when there are tutorials out there claiming it works) is > >>going > >> >to turn people away. > >> > > >> >If we can fix this issue, I want to push a 0.8.1 update because I think > >> >getting this working again is very, very important. > >> > > >> >- Josh > >> > > >> >On Thu, Jul 6, 2017 at 12:55 AM, piotrz > >> wrote: > >> > > >> >> As I remember Chris get to the bottom of it and resolved it. > >> >>Unfortunately > >> >> after contacting with Jetbrains they refuse accept pull request with > >>fix > >> >> and > >> >> Chris dropped it. [1] > >> >> > >> >> I was thinking even then that if someone could fix it and store > >>version > >> >>of > >> >> plugin somewhere with fix it would be also HUGE, cause we could gain > >> >> another > >> >> IDE which support FlexJS. > >> >> > >> >> [1] > >> >> > >> >>https://na01.safelinks.protection.outlook.com/?url= > >> http%3A%2F%2Fapache-fl > >> >>ex-development.247.n4.nabble=02%7C01%7C% > >> 7C5f4eb274ee54460f044608 > >> >>d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% > >> 7C63634952143892612 > >> >>4=3U%2FcqwvO4C8OtATk9khadreh99KxUUfsfJYiEptjJzs%3D=0. > >> >> com/FlexJS-Step-by-step-h-baby-td58710.html > >> >> > >> >> Thanks, > >> >> Piotr > >> >> > >> >> > >> >> > >> >> - > >> >> Apache Flex PMC > >> >> piotrzarzyck...@gmail.com > >> >> -- > >> >> View this message in context: http://apache-flex- > >> >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- > >> >> in-IntelliJ-IDEA-tp62848p62862.html > >> >> Sent from the Apache Flex Development mailing list archive at > >> >>Nabble.com. > >> >> > >> > >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
What does IJ do with additional compiler options? Does it put them in one of the .xml files? I can see from the original post that IJ seems to be using: -load-config=/Users/joshtynjala/Library/Caches/IntelliJIdea2017.1/compile-s erver/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml -load-config+=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0/ide/IDE A/intellij-config.xml Did the new output log of compiler options reflect that it recognized that option? Also, I'm not sure that -targets will work, it might have to be -compiler.targets HTH, -Alex On 7/6/17, 9:23 AM, "Josh Tynjala"wrote: >I tried specifying -targets=JSFlex in the additional compiler options, but >it made no difference. > >- Josh > >On Thu, Jul 6, 2017 at 9:09 AM, Alex Harui >wrote: > >> I suspect the issue is that IJ dictates all of the settings and doesn't >> use flex-config.xml, and thus no targets are being specified. Is there >>a >> way to specify compiler.targets in additional compiler options in IJ? >> There is in FB. >> >> -Alex >> >> On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: >> >> >While full support for FlexJS in IntelliJ IDEA would be great, I think >> >it's >> >critical that we fix this issue to at least get back to the baseline we >> >had >> >in 0.7. A FlexJS project required a little bit of extra configuration >>with >> >0.7, but at least we could get the compiler to work inside IntellIJ. >> > >> >Many Flex/ActionScript developers use IntelliJ, and while I'd love to >> >encourage them to try VSCode, I think many prefer to take their first >> >steps >> >with FlexJS in an environment they already know. Having this stop >>working >> >(especially when there are tutorials out there claiming it works) is >>going >> >to turn people away. >> > >> >If we can fix this issue, I want to push a 0.8.1 update because I think >> >getting this working again is very, very important. >> > >> >- Josh >> > >> >On Thu, Jul 6, 2017 at 12:55 AM, piotrz >> wrote: >> > >> >> As I remember Chris get to the bottom of it and resolved it. >> >>Unfortunately >> >> after contacting with Jetbrains they refuse accept pull request with >>fix >> >> and >> >> Chris dropped it. [1] >> >> >> >> I was thinking even then that if someone could fix it and store >>version >> >>of >> >> plugin somewhere with fix it would be also HUGE, cause we could gain >> >> another >> >> IDE which support FlexJS. >> >> >> >> [1] >> >> >> >>https://na01.safelinks.protection.outlook.com/?url= >> http%3A%2F%2Fapache-fl >> >>ex-development.247.n4.nabble=02%7C01%7C% >> 7C5f4eb274ee54460f044608 >> >>d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% >> 7C63634952143892612 >> >>4=3U%2FcqwvO4C8OtATk9khadreh99KxUUfsfJYiEptjJzs%3D=0. >> >> com/FlexJS-Step-by-step-h-baby-td58710.html >> >> >> >> Thanks, >> >> Piotr >> >> >> >> >> >> >> >> - >> >> Apache Flex PMC >> >> piotrzarzyck...@gmail.com >> >> -- >> >> View this message in context: http://apache-flex- >> >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- >> >> in-IntelliJ-IDEA-tp62848p62862.html >> >> Sent from the Apache Flex Development mailing list archive at >> >>Nabble.com. >> >> >> >>
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
I tried specifying -targets=JSFlex in the additional compiler options, but it made no difference. - Josh On Thu, Jul 6, 2017 at 9:09 AM, Alex Haruiwrote: > I suspect the issue is that IJ dictates all of the settings and doesn't > use flex-config.xml, and thus no targets are being specified. Is there a > way to specify compiler.targets in additional compiler options in IJ? > There is in FB. > > -Alex > > On 7/6/17, 8:34 AM, "Josh Tynjala" wrote: > > >While full support for FlexJS in IntelliJ IDEA would be great, I think > >it's > >critical that we fix this issue to at least get back to the baseline we > >had > >in 0.7. A FlexJS project required a little bit of extra configuration with > >0.7, but at least we could get the compiler to work inside IntellIJ. > > > >Many Flex/ActionScript developers use IntelliJ, and while I'd love to > >encourage them to try VSCode, I think many prefer to take their first > >steps > >with FlexJS in an environment they already know. Having this stop working > >(especially when there are tutorials out there claiming it works) is going > >to turn people away. > > > >If we can fix this issue, I want to push a 0.8.1 update because I think > >getting this working again is very, very important. > > > >- Josh > > > >On Thu, Jul 6, 2017 at 12:55 AM, piotrz > wrote: > > > >> As I remember Chris get to the bottom of it and resolved it. > >>Unfortunately > >> after contacting with Jetbrains they refuse accept pull request with fix > >> and > >> Chris dropped it. [1] > >> > >> I was thinking even then that if someone could fix it and store version > >>of > >> plugin somewhere with fix it would be also HUGE, cause we could gain > >> another > >> IDE which support FlexJS. > >> > >> [1] > >> > >>https://na01.safelinks.protection.outlook.com/?url= > http%3A%2F%2Fapache-fl > >>ex-development.247.n4.nabble=02%7C01%7C% > 7C5f4eb274ee54460f044608 > >>d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0% > 7C63634952143892612 > >>4=3U%2FcqwvO4C8OtATk9khadreh99KxUUfsfJYiEptjJzs%3D=0. > >> com/FlexJS-Step-by-step-h-baby-td58710.html > >> > >> Thanks, > >> Piotr > >> > >> > >> > >> - > >> Apache Flex PMC > >> piotrzarzyck...@gmail.com > >> -- > >> View this message in context: http://apache-flex- > >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- > >> in-IntelliJ-IDEA-tp62848p62862.html > >> Sent from the Apache Flex Development mailing list archive at > >>Nabble.com. > >> > >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
I suspect the issue is that IJ dictates all of the settings and doesn't use flex-config.xml, and thus no targets are being specified. Is there a way to specify compiler.targets in additional compiler options in IJ? There is in FB. -Alex On 7/6/17, 8:34 AM, "Josh Tynjala"wrote: >While full support for FlexJS in IntelliJ IDEA would be great, I think >it's >critical that we fix this issue to at least get back to the baseline we >had >in 0.7. A FlexJS project required a little bit of extra configuration with >0.7, but at least we could get the compiler to work inside IntellIJ. > >Many Flex/ActionScript developers use IntelliJ, and while I'd love to >encourage them to try VSCode, I think many prefer to take their first >steps >with FlexJS in an environment they already know. Having this stop working >(especially when there are tutorials out there claiming it works) is going >to turn people away. > >If we can fix this issue, I want to push a 0.8.1 update because I think >getting this working again is very, very important. > >- Josh > >On Thu, Jul 6, 2017 at 12:55 AM, piotrz wrote: > >> As I remember Chris get to the bottom of it and resolved it. >>Unfortunately >> after contacting with Jetbrains they refuse accept pull request with fix >> and >> Chris dropped it. [1] >> >> I was thinking even then that if someone could fix it and store version >>of >> plugin somewhere with fix it would be also HUGE, cause we could gain >> another >> IDE which support FlexJS. >> >> [1] >> >>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fl >>ex-development.247.n4.nabble=02%7C01%7C%7C5f4eb274ee54460f044608 >>d4c484a74e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63634952143892612 >>4=3U%2FcqwvO4C8OtATk9khadreh99KxUUfsfJYiEptjJzs%3D=0. >> com/FlexJS-Step-by-step-h-baby-td58710.html >> >> Thanks, >> Piotr >> >> >> >> - >> Apache Flex PMC >> piotrzarzyck...@gmail.com >> -- >> View this message in context: http://apache-flex- >> development.247.n4.nabble.com/FlexJS-0-8-0-not-working- >> in-IntelliJ-IDEA-tp62848p62862.html >> Sent from the Apache Flex Development mailing list archive at >>Nabble.com. >>
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
While full support for FlexJS in IntelliJ IDEA would be great, I think it's critical that we fix this issue to at least get back to the baseline we had in 0.7. A FlexJS project required a little bit of extra configuration with 0.7, but at least we could get the compiler to work inside IntellIJ. Many Flex/ActionScript developers use IntelliJ, and while I'd love to encourage them to try VSCode, I think many prefer to take their first steps with FlexJS in an environment they already know. Having this stop working (especially when there are tutorials out there claiming it works) is going to turn people away. If we can fix this issue, I want to push a 0.8.1 update because I think getting this working again is very, very important. - Josh On Thu, Jul 6, 2017 at 12:55 AM, piotrzwrote: > As I remember Chris get to the bottom of it and resolved it. Unfortunately > after contacting with Jetbrains they refuse accept pull request with fix > and > Chris dropped it. [1] > > I was thinking even then that if someone could fix it and store version of > plugin somewhere with fix it would be also HUGE, cause we could gain > another > IDE which support FlexJS. > > [1] > http://apache-flex-development.247.n4.nabble. > com/FlexJS-Step-by-step-h-baby-td58710.html > > Thanks, > Piotr > > > > - > Apache Flex PMC > piotrzarzyck...@gmail.com > -- > View this message in context: http://apache-flex- > development.247.n4.nabble.com/FlexJS-0-8-0-not-working- > in-IntelliJ-IDEA-tp62848p62862.html > Sent from the Apache Flex Development mailing list archive at Nabble.com. >
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
As I remember Chris get to the bottom of it and resolved it. Unfortunately after contacting with Jetbrains they refuse accept pull request with fix and Chris dropped it. [1] I was thinking even then that if someone could fix it and store version of plugin somewhere with fix it would be also HUGE, cause we could gain another IDE which support FlexJS. [1] http://apache-flex-development.247.n4.nabble.com/FlexJS-Step-by-step-h-baby-td58710.html Thanks, Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-0-8-0-not-working-in-IntelliJ-IDEA-tp62848p62862.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Hi, > I was trying some time ago to do as you are doing and failed. - Not sure > whether it was same problem. After some time I gave up. > > The conclusion is that I end up with pom for Maven build and setup where the > intelisence is working. That mirrors my experience as well. I know Chris looked deeper into the issues here but not sure how far he got. Thanks, Justin
Re: [FlexJS] 0.8.0 not working in IntelliJ IDEA
Hi Josh, I was trying some time ago to do as you are doing and failed. - Not sure whether it was same problem. After some time I gave up. The conclusion is that I end up with pom for Maven build and setup where the intelisence is working. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-0-8-0-not-working-in-IntelliJ-IDEA-tp62848p62849.html Sent from the Apache Flex Development mailing list archive at Nabble.com.
[FlexJS] 0.8.0 not working in IntelliJ IDEA
I'm trying to create a new FlexJS 0.8.0 project in IntelliJ IDEA, and I'm getting the following output when I try to build the project: Information:[HelloIDEA]: Starting Flex compiler: "/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" -Dapplication.home=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/flex/lib/idea-flex-compiler-fix.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/flex/lib/flex-compiler.jar:/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0/lib/flex-compiler-oem.jar" com.intellij.flex.compiler.FlexCompiler 54900 Information:[HelloIDEA]: mxmlc -load-config=/Users/joshtynjala/Library/Caches/IntelliJIdea2017.1/compile-server/helloidea_6d5abd99/_temp_/IntelliJ_IDEA/idea-B028A5AE-12E86E20.xml -load-config+=/Users/joshtynjala/Development/Flex/sdks/flexjs-0.8.0/ide/IDEA/intellij-config.xml Information:[HelloIDEA]: unknown error Information:[HelloIDEA]: at java.lang.Class.getConstructor0(Class.java:3082) Information:[HelloIDEA]: at java.lang.Class.getDeclaredConstructor(Class.java:2178) Information:[HelloIDEA]: at flex2.tools.MxmlJSC.getCompilerInstance(MxmlJSC.java:48) Information:[HelloIDEA]: at flex2.tools.MxmlJSC.execute(MxmlJSC.java:89) Information:[HelloIDEA]: at flex2.tools.Tool.compile(Tool.java:68) Information:[HelloIDEA]: at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:73) Information:[HelloIDEA]: at com.intellij.flex.compiler.flex4.Flex4Handler.compileSwf(Flex4Handler.java:81) Information:[HelloIDEA]: at com.intellij.flex.compiler.CompilationThread.run(CompilationThread.java:48) Information:[HelloIDEA]: Compilation failed Information:7/5/17, 2:56 PM - Compilation completed with 1 error and 0 warnings in 595ms Error:[HelloIDEA]: java.lang.NoSuchMethodException: org.apache.flex.compiler.clients.MXMLJSC.(org.apache.flex.compiler.driver.IBackend) I followed the steps in these instructions that worked correctly with 0.7.0: https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+IntelliJ+IDEA I'm not very familiar with this part of the code, but it looks to me like the call to MxmlJSC.getCompilerInstance() can't find IBackend? Could it be that flex-compiler-oem.jar is missing something in its classpath? - Josh