开发者

Flash Builder 4 changes not compiled

开发者 https://www.devze.com 2023-01-25 02:39 出处:网络
Im using Flash Builder 4 on the Mac and I have a worrisome problem: The compiler is sometimes not detecting my code changes.

Im using Flash Builder 4 on the Mac and I have a worrisome problem: The compiler is sometimes not detecting my code changes.

For example I might write some code, compile and run, then add some logging statements, but they will not print. After a clean 开发者_如何学JAVAcompile everything runs as expected.

I cannot see a pattern to the exclusion of changes. I'm wondering if anyone else is having the same problem?

Details:

  • Flash Bulider 4
  • Pure AS3 project targetting Flex3.5 SDK
  • Max OS X Snow Leopard
  • My code does not use semicolons to terminate statements


The problem is with the SDK settings selected for the Compiler.

Try going to 'Project' > 'Properties' > 'ActionScript Compiler'. Now, in the 'Flex SDK section', try changing the SDK. Click on 'Apply'. This will force FB to rebuild all settings for the project.

You can try again. FB should now have started compiling with latest code changes again.

Please Note: This is not a permanent fix though! In case the problem re-occurs, you'll need to again perform the steps mentioned above to get FB back on track.


As bad as it sounds, I am now used to this behavior, I use FB4 on a Mac , but remember having the same issue with Flex.

Practically, I keep clearing the browser cache and cleaning the project. I have thought about adding some random number after the swf url so that it never gets cached but haven't implemented it yet. Force of habit I guess, clearing the cache & cleaning the project has become such a routine!

0

精彩评论

暂无评论...
验证码 换一张
取 消