Flex Builder 3 执行旧源代码

发布于 2024-07-09 03:10:11 字数 282 浏览 9 评论 0 原文

我一次又一次地面临这个问题,但找不到任何解决方案(除了我的,我猜这不是一个好的解决方案)。

不知道为什么,有时 Flex Builder 在进行更改后会执行旧的源代码。 在调试时,我看到它如何逐步执行不存在的源(例如更改局部变量)(即使我删除了所有该块或函数)。

我解决这个问题的方法是删除项目(当然要备份源代码)并创建一个新项目,将备份的源添加到项目中并重建。 它开始正常工作,但这种方式不太舒服,特别是如果源位于远程计算机上并且您需要配置 .net 后端。

有谁知道如何解决吗?

I'm facing this problem again and again, but can't find any solution (except mine, which is not as a good one I guess).

Don't know why, sometimes Flex Builder executes old source codes after making changes. While debugging I see how it steps through a source (e.g. changing local variables) which does not exist (even if I delete all that block or function).

My way to solve that is to delete the project (backing up the source codes of course) and create a new one, add the backed up sources to the project and rebuild. It starts to work as it should work, but this way is not as comfortable, especially if sources are on a remote machine and you need to configure .net back-end.

Anyone knows how to solve?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

苏大泽ㄣ 2024-07-16 03:10:11

尝试“项目”->“清理”以转储所有内容并从头开始重建。

Try Project->Clean to dump everything and rebuild from scratch.

春夜浅 2024-07-16 03:10:11

我也遇到了这个问题。 你可以做的是:

  1. 在 Flex builder 中执行 clean 命令。
  2. 关闭有问题的项目。
  3. 转到 Windows 资源管理器/Finder 等中的项目文件夹。
  4. 删除文件系统中的 debug/release 文件夹。
  5. 重新打开项目并重建。

之后问题应该得到解决。

I ran into this problem as well. What you can do is this:

  1. Execute the clean command in Flex builder.
  2. Close the project with the problem.
  3. Go to your project folder in windows explorer / Finder etc.
  4. Delete the debug/release folder in the filesystem.
  5. Reopen the project and rebuild.

Problem should be solved after that.

仲春光 2024-07-16 03:10:11

是的,我忘了说 - 这也没有帮助..通常在这种情况下我尝试的第一件事是关闭自动构建,清理项目并再次构建全部..
一样的东西。

我的猜测是,也许 Builder 无法以某种方式重建远程 SWF 并运行旧的 SWF。

Yes I forgot to say - that doesn't help too.. Usually first thing I try in that case is to switch off Automatic Build, Clean the project and Build All again..
The same thing.

My guess is that maybe Builder is not able somehow to rebuild remote SWF and runs the old one.

爱已欠费 2024-07-16 03:10:11

检查您的问题选项卡,如果有任何错误,它将启动最后一次成功的构建。

如果所有问题都解决了,但问题仍然存在,那么就按照 RickDT 的说法进行项目清理。

通常,当我从 SVN 更新并且 main.swf 被覆盖时,我必须 1: 恢复 main.swf 和 2: 执行项目清理才能再次正常启动:)

我花了很长时间才弄清楚。

Check your problems tab, if there is any error it will launch the last build that was successful.

If all the problems are solved and it still happens than preform project cleanup as RickDT states.

Normally when I update from SVN and the main.swf got overwritten I have to 1: revert main.swf and 2:perform project cleanup for it to launch normally again :)

Took me a damn while to figure out tho.

哭了丶谁疼 2024-07-16 03:10:11

我已经忍受这个恼人的问题有一段时间了。 这种情况每隔几天就会发生一次。
我发现的最佳解决方案是 (a) 清理 (b) 在 Windows-> 属性下更改默认 Web 浏览器。 我在 FF 和 FF 之间切换 铬合金。 如果您有更好的解决方案,请告诉我。

I have lived with this annoying problem for a while now. This begins to happen every few days.
The best solution i have found is to (a) cleanup (b) change the default Web browser under Windows->Properties. I switch between FF & chrome. Please let me know if you have a better solution.

北座城市 2024-07-16 03:10:11

更新:我发现我没有正确使用 SWC,并且实际上将我的项目的部分内容编译到其中。 当我这样做时,Flash Builder 假设我想使用 SWC 类。 我在这里写了一篇关于它的博客文章: http://inchwormstudio.com/blog/flash-builder-flash-workflow-and-the-danger-of-careless-swcs/

原文:我最近也遇到了这个问题。 到目前为止,戈罗的解决方案是唯一适合我的解决方案。 备份到 SVN 或您使用的任何内容。 删除 Flex Builder 中的项目,包括硬盘上的文件。 再次检查项目并重建。 这是一个非常烦人的错误,尤其是自从我第一次遇到它时我差点心脏病发作。 当你意识到你的源代码很好但编译器只是在做它喜欢做的事情时,它有点把 SVN 的安全网抛到了窗外。 我应该指出,这种情况发生在 Flash Builder 和 Flex Builder 中。

UPDATE: I found out that I was improperly using SWCs and actually compiling parts of my project into them. When I did this Flash Builder assumed I wanted to use the SWC classes instead. I did a blog post about it here: http://inchwormstudio.com/blog/flash-builder-flash-workflow-and-the-danger-of-careless-swcs/

ORIGINAL: I've been running into this as well lately. So far Gorro's solution has been the only one that works for me. Backup to SVN or whatever you use. Delete the project in flex builder including the files on your HD. Checkout the project again and rebuild. It's a very annoying bug especially since the first time I ran into it I almost had a heart attack. It kinda throws the safety net of SVN out the window when you realize that your source is fine but the compiler is just doing what it pleases. I should point out that this occurs in Flash Builder as well as Flex Builder.

森末i 2024-07-16 03:10:11

我从 HTML 模板目录中删除了 myProject.swf...似乎当时就对我有用。

I deleted the myProject.swf from the HTML-template directory... seemed to do the trick for me then and there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文