Actionscript 3.0 : Accept timed out

已回答

After configure flash project I can't build it in IntelliJ. It show below error.

Information:[bingo_pc]: Starting Flex compiler:
"/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/jre/bin/java" "-Dapplication.home=/Applications/Adobe Flash Builder 4.7/sdks/4.15.0Air21" -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:/Applications/Adobe Flash Builder 4.7/sdks/4.15.0Air21/lib/flex-compiler-oem.jar" com.intellij.flex.compiler.FlexCompiler 59177

 

Information:28/05/18, 3:48 PM - Compilation completed with 1 error and 0 warnings in 10s 901ms
Error: java.net.SocketTimeoutException: Accept timed out

 

Already tried solution :

  1. My compiler in Mxmlc /compc
  2. added line '-Didea.connection.timeout=60000000' in Edit VM option

Those are above solutions not workout for me

 

If I am able to find solution then will buy license version of IntelliJ

0
Avatar
Permanently deleted user

Also when I try to run debug mode directly on android mobile it is not working. In android it shows error app has been stopped.

 

IntelliJ version : 2018.1.4

Build Number : IU-181.5087.20

Os : Mac High sierra

0

According to the `Starting Flex compiler... ` line, IDE is still using 'Built-in compiler shell'. Looks like there's a bug - IDE doesn't switch to mxmlc/compc compiler immediately after switching the option in Settings. Try to compile once again - second time it should start with a different command line (real mxmlc/compc) and will probably succeed.

I'm not sure about the root cause of SocketTimeoutException. I've found some solutions that helped some people in the past here: https://stackoverflow.com/questions/11016571/intellij-idea-11-flex-compilation-issue, https://youtrack.jetbrains.com/issue/IDEA-62377. But it's easier to simply switch to mxmlc/compc. To verify: Flex compiler command line should end with `flex2.tools.Mxmlc` or `flex2.tools.Compiler`

0
Avatar
Permanently deleted user

Thanks for your help ... What you told is right... but its not working on second time also.

Then I found flexCompiler.xml file inside .idea(hidden folder) I added below lines and restart the IntelliJ is working fine

<project version="4">
    <component name="FlexCompilerConfiguration">
         <option name="USE_BUILT_IN_COMPILER" value="false" />
         <option name="USE_MXMLC_COMPC" value="true" />
  </component>
  <component name="FlexIdeProjectLevelCompilerOptionsHolder">
    <compiler-options />
  </component>
</project>

now its is working.

0

Thanks for the update! I've filed an issue to track the problem: https://youtrack.jetbrains.com/issue/IDEA-193041

0
Avatar
Permanently deleted user

I have the same problem and i try to change flexCompiler.xml, but now i have another error

Error:  Could not find or load main class flex2.tools.Mxmlc 

0

Is there a place in Intellij IDEA where I can globally set mxmlc as the default compiler to use? I don't really fancy doing this for each project.

0

Found it: Preferences - (search "compiler") - select ActionScript and Flex Compiler - check "Mxmlc / compc", click OK.

But you need to restart the IDE for the changes to take effect.

1

请先登录再写评论。