Flash Builder 4 更改未编译
我在 Mac 上使用 Flash Builder 4,但遇到了一个令人担忧的问题:编译器有时无法检测到我的代码更改。
例如,我可能会编写一些代码,编译并运行,然后添加一些日志记录语句,但它们不会打印。干净编译后,一切都按预期运行。
我无法看到排除变化的模式。我想知道其他人是否也遇到同样的问题?
详细信息:
- Flash Bulider 4
- Pure AS3 项目针对 Flex3.5 SDK
- Max OS X Snow Leopard
- 我的代码不使用分号来终止语句
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 compile 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题在于为编译器选择的 SDK 设置。
尝试转到“项目”> '属性'> “ActionScript 编译器”。
现在,在“Flex SDK 部分”中,尝试更改 SDK。点击“应用”。
这将迫使 FB 重建项目的所有设置。
你可以再试一次。 FB 现在应该已经开始再次使用最新的代码更改进行编译。
请注意:但这不是永久修复!
如果问题再次出现,您需要再次执行上述步骤以使 FB 恢复正常。
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.
尽管听起来很糟糕,但我现在已经习惯了这种行为,我在 Mac 上使用 FB4,但记得在 Flex 上也有同样的问题。
实际上,我不断清除浏览器缓存并清理项目。我曾考虑过在 swf url 之后添加一些随机数,以便它永远不会被缓存,但尚未实现。我猜是习惯的力量,清除缓存&清洁项目已经成为这样的例行公事!
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!