Ticket #108 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

Cannot compile swf file with AXDT

Reported by: spocksplanet+nospam@gmail.com Assigned to: mb0
Priority: major Milestone:
Component: editor Version: AXDT 0.0.4
Keywords: Cc:

Description

Hi,

I followed the installation instructions to set up a AXDT project, added a class, pasted the code from the site, did "Enable AS3 Builder" on the project, and tried to "Compile and open a SWF file." But nothing happened. I checked the progress view if there was anything going in the background, but there was nothing there.

When I ran the command again, very quickly, something flashed in the progress view, and then disappeared again. And there was never any a swf file generated as a result.

I've been wracking my brains to figure out what I did wrong. I'm even re-installing the Eclipse platform (3.3.2, not the 3.4) to make sure it's not something with my setup. Please help.

Change History

09/01/08 06:18:19 changed by mb0

have you looked in the console view ? you might find compiler errors there.

09/06/08 07:18:38 changed by spocksplanet+nospam@gmail.com

yes, i did look in the console view. It's completely blank.

It's almost as if it cannot find the Flex3sdk. I'm not sure how it knows where it is. I have the location in my PATH, as you can see below.

C:\ruby\bin;C:\Python25\site-packages\Django-0.96.1\build\scripts-2.5;C:\Python25;C:\Python25\Tools\Scripts;C:\Perl\site\bin;C:\Perl\bin;%SystemRoot?%\system32;%SystemRoot?%;%SystemRoot?%\System32\Wbem;C:\Program Files\xampp\php;C:\Program Files\xampp\php\ext;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\IsoBuster?;C:\Program Files\e\cmd;C:\Program Files\Subversion\bin;C:\Program Files\TortoiseSVN\bin;C:\Users\picardo\Desktop\playground\flash\FlashTools?\flex3sdk\bin

Is there something else I'm missing? Something I should have installed perhaps?

09/06/08 18:55:13 changed by mb0

Axdt distributes its own flexsdk to easily access the flex oem compiler (java api). so you normally shouldn't need to configure anything. The only idea i have so far: problems with the paths. Do you have spaces in you path to eclipse or the workspace? If yes does it work in a place without spaces in its path?

Please also check the error view. and tell me more about blank console view. is the flexsdk console blank or not even there?

As you see, i have no clue what the problem might be, but i hope we can resolve it.

09/06/08 22:32:34 changed by anonymous

I'm using Eclipse 3.3.2 and I'm also having this same problem. When I copied the sample code and clicked Compile and Open SWF file nothing happened and no error was displayed. The console window is blank saying no console to display at this time. When I was looking at the screencast video, a SWF view did not open either.

09/07/08 00:23:55 changed by spocksplanet+nospam@gmail.com

There are no spaces in my path to either the workspace or to the eclipse.exe.

C:\Users\picardo\workspace C:\Users\picardo\Desktop\trampoline\soft\eclipse\eclipse.exe

The console view has a single line in it: "No consoles to display at this time." I can't find "flexsdk console" you mentioned and I looked into the "show view" under Window as well, so it's probably missing.

09/07/08 17:19:25 changed by mb0

The deploy directory is also not created in the project, right? I guess an exception is thrown. The stack trace should be printed to the standard system error stream. And i need that stack trace. I will add some logging code to add such traces to the eclipse error log view for the next version.

If you start your eclipse from command line you should get the stack trace as soon as you try to compile. Please attach the output to this ticket as file.

Thanks!

09/07/08 19:30:40 changed by spocksplanet+nospam@gmail.com

The deploy directory is also not created in the project, right?

Correct!

I started eclipse from commandline but there doesn't seem to be a stack trace when I try to compile. I just ran eclipse.exe from the commandline to start the program. Was that right?

09/07/08 19:33:14 changed by spocksplanet+nospam@gmail.com

I found it. I should have run eclipsec.exe. Here is the stack trace...

C:\Users\picardo\Desktop\trampoline\soft\eclipse>eclipsec.exe java.util.regex.PatternSyntaxException?: Illegal/unsupported escape sequence near

index 4

'C:\Users\picardo\workspace[']*'

at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.escape(Unknown Source) at java.util.regex.Pattern.atom(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at org.eclipse.ui.internal.console.ConsolePatternMatcher?.addPatternMatch

Listener(ConsolePatternMatcher?.java:218)

at org.eclipse.ui.console.TextConsole?.addPatternMatchListener(TextConsol?

e.java:401)

at org.axdt.flex3sdk.Flex3Console.<init>(Flex3Console.java:50) at org.axdt.flex3sdk.Flex3Console.getDefault(Flex3Console.java:42) at org.axdt.flex3sdk.Flex3Compiler.compile(Flex3Compiler.java:34) at org.axdt.as3.compiler.AS3Compiler.compile(AS3Compiler.java:66) at org.axdt.as3.debug.launcher.AS3LauncherDelegate$LaunchJob?.run(AS3Laun

cherDelegate.java:78)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

09/07/08 20:41:15 changed by mb0

  • owner changed from asdt.org to mb0.
  • status changed from new to assigned.

I see, a path issue after all (i hadn't tested it on windows so i was the first thing that came to mind). it is just an escape missing. consider it fixed for the next version.

09/24/08 06:25:14 changed by eric.lemaitre@gmail.com

Still a very similar error with the latest AXDT version:

C:\Developpement\Java\eclipse>eclipsec.exe java.util.regex.PatternSyntaxException?: Illegal/unsupported escape sequence near index 18 'C:\Developpement\Java\eclipse\workspace[']*'

at java.util.regex.Pattern.error(Unknown Source) at java.util.regex.Pattern.escape(Unknown Source) at java.util.regex.Pattern.atom(Unknown Source) at java.util.regex.Pattern.sequence(Unknown Source) at java.util.regex.Pattern.expr(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at java.util.regex.Pattern.<init>(Unknown Source) at java.util.regex.Pattern.compile(Unknown Source) at org.eclipse.ui.internal.console.ConsolePatternMatcher?.addPatternMatchListener(ConsolePatternMatcher?.java:218) at org.eclipse.ui.console.TextConsole?.addPatternMatchListener(TextConsole?.java:401) at org.axdt.flex3sdk.Flex3Console.<init>(Flex3Console.java:50) at org.axdt.flex3sdk.Flex3Console.getDefault(Flex3Console.java:42) at org.axdt.flex3sdk.Flex3Compiler.compile(Flex3Compiler.java:34) at org.axdt.as3.compiler.AS3Compiler.compile(AS3Compiler.java:66) at org.axdt.as3.debug.launcher.AS3LauncherDelegate$LaunchJob?.run(AS3LauncherDelegate.java:78) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Could you fix and test with Windows to fix this issue once for all?

09/29/08 19:03:48 changed by mb0

  • status changed from assigned to closed.
  • resolution set to fixed.

axdt version 0.0.5 is on the update site.