Issue Details (XML | Word | Printable)

Key: FDT-2707
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: FDT Team
Reporter: Pedro Paulo Almeida
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
FDT

FDT5 Max can not keep reference to pointed FlexSDK

Created: 23/Apr/12 06:48 PM   Updated: 22/Jun/12 07:01 PM
Component/s: SDK Management
Affects Version/s: FDT 5.0
Fix Version/s: None
Security Level: public

Time Tracking:
Not Specified

Environment: Windows 7 Ultimate x64

Review Type: Review by Product Owner


 Description  « Hide
Hi, folks.
I convince my company to adopt FDT5 Max to our development team All beatifull, all done, today I start configure the tool in my development enviroment. But im facing a problem that is really difficult to figure it out: FDT5 cant stop complain about "FlexSDK missing", altought it is already setted.

When I start FDT5 max, I allways get this alert window:
http://yfrog.com/oduovep

After I click "OK", FDT5 points me to this window, where I can see my FlexSDK 4.0 and a fresh 4.6 version, witch I just downloaded:
http://yfrog.com/odmreip

If I choose the 4.0 sdk (witch I "mixed" with Adobe AIR Sdk 3.0 a few days ago and works like a charm in FlashDevelop (included there Android AIR app), the FDT5 complains about some swcs missing:
http://yfrog.com/odevwfkp

Of course, I can't compile my Main.as class.

Now, If I change the SDK:
From 4.0:
http://yfrog.com/gyuyqdp
To 4.6
http://yfrog.com/occk8zp

Everything looks ok. But.... when I try to compile the Main.as I get a compiler error:
http://yfrog.com/oesi7cp

I already:
1) Change my workspace
2) Downloaded a new FlexSDK
3) Updated my Java jdk

Im waiting for your help, guys.
Thank you a lot.

Pedro Paulo Almeida
São Paulo - Brasil



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Pedro Paulo Almeida added a comment - 23/Apr/12 06:56 PM
Oh, Sorry: the correct second image (the list with the installed SDKs) is http://yfrog.com/h7lk4jp

Pedro Paulo Almeida added a comment - 23/Apr/12 09:15 PM
Investigating here, I found that, with Flex4.6.0 SDK I can compile but I cant debug.
The error is:
java.lang.NullPointerException
at com.powerflasher.fdt.core.launch.debug.DebugSessionManager.getDebuggerFor(DebugSessionManager.java:50)
at com.powerflasher.fdt.core.launch.debug.DebugSessionManager.launchSessionFor(DebugSessionManager.java:97)
at com.powerflasher.fdt.core.launch.debug.DebugSessionManager.launchSessionAndKillOld(DebugSessionManager.java:137)
at com.powerflasher.fdt.core.internal.launch.debug.concrete.DebuggerStarter.run(DebuggerStarter.java:47)
at com.powerflasher.fdt.core.launch.AbstractTargetStarter.runListenerStarters(AbstractTargetStarter.java:61)
at com.powerflasher.fdt.core.launch.swf.SwfStarter.run(SwfStarter.java:58)
at com.powerflasher.fdt.core.internal.launch.compile.concrete.CompilerProcess$1.run(CompilerProcess.java:226)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The SessionData:
eclipse.buildId=M20110909-1335
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.powerflasher.fdt.product.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.powerflasher.fdt.product.product

Project Type (right click on Main.as -> FlashProject -> Set Project Type):
Project Type: AS3
SDK: Flex 4.6.0
PlayerVersion: 11.1
And the windows says: "Some classpath libraries are missing or SDK version is not compatible".

The problem is: as far as I know, the Flex4.6.0 should be compatible with a empty Main.as on a AS3 project type


Pedro Paulo Almeida added a comment - 23/Apr/12 10:25 PM
[SOLVED]
I finally get it.
Two steps:

1) Modificate the flex-sdk-description.xml inside FlexSDK 4.60
http://bugs.powerflasher.com/jira/browse/FDT-2472

2) Rename some SWCs inside Flex SDK:
http://bugs.powerflasher.com/jira/browse/FDT-2214
with this video help: (thanks to Philip)
http://screencast.com/t/T5arpdbkMoPH

It looks like everything is ok now. I will check all and back here if neccessay.

Thank you all.


Alan K (Deprecated) added a comment - 24/Apr/12 09:36 PM
I'm a bit confused, what was the finial solution / problem? Is it still happening. This workaround seems odd.

Pedro Paulo Almeida added a comment - 25/Apr/12 12:08 AM
Hi, Alan.
I cant precise what was the problem. Initially looks like FDT couldnt "keep" or understand that a FlexSDK was already set in the sdk panel. Because everytime I started FDT it was complaining "theres no SDK in FDT". To stop that I did the changes on "flex-sdk-description.xml" trick. It fix the "no sdk in FDT" problem.

But FDT still having problems with the SDK, but a different one: it was looking for some SWCs that didnt exists inside FlexSDK. So i did the "fix 2", renaming the "flex.swc" and "utilities.swc" to "core.swc" and "authoringsupport.swc". After that, everything looks fine now.

My suggestion: make a fix inside FDT to look first for "flex.swc" and "utilities.swc". If FDT can't find it, look for "core.swc" and "authoringsupport.swc". Because I need to "delete" flex and utilities swcs and add, manually, core and utilities swcs in the classpath. As you can see in this video: http://screencast.com/t/T5arpdbkMoPH

Thank you.


Alan K (Deprecated) added a comment - 26/Apr/12 07:26 PM
Hey Pedro,

Looks like you're using FDT 4.

The other issues is probably a misconnection between the project type and the SDK. The 'AS 3' project type is not set to look for those particular SWCs. There might, if I remember correctly, be a 'AS3 4.5' project type.You'll need to use that with Flex 4.5 & FDT 4.5.

Check out FDT 5 and the soon to be released FDT 5.5. FDT 5.5. is particularly good because we really optimized the Project Types and SDKs options.

Keep an eye out. It will be released next week!


Alan K (Deprecated) added a comment - 26/Apr/12 07:28 PM
I'm going to close this. b/c this has been fixed in later versions: especially FDT 5.5

@Pedro, check out FDT 5.5. and see how things are there.


Alan K (Deprecated) made changes - 26/Apr/12 07:28 PM
Field Original Value New Value
Review Type Review by Product Owner
Resolution Won't Fix [ 2 ]
Status Open [ 1 ] Closed [ 6 ]
FDT Team made changes - 22/Jun/12 06:32 PM
Assignee Philipp Arnolds [ phiarn ] FDT Team [ fdt team ]
Status Closed [ 6 ] Resolved [ 5 ]
FDT Team made changes - 22/Jun/12 07:01 PM
Resolution Won't Fix [ 2 ] Fixed [ 1 ]
Status Resolved [ 5 ] Closed [ 6 ]