Flash Builder 4 突然停止对某些类进行自动完成
我们在 Flash Builder 中工作了数周的一个项目突然无法导航:Flash Builder 的所有优秀功能(例如自动完成、跳转到定义、甚至搜索引用)都只能部分工作 - 它们适用于某些类但不适合其他人。我尝试过重新启动 Flash Builder、关闭并打开项目、重新创建项目,但这种糟糕的情况仍然存在。此外,同一项目的另外 2 个开发人员几乎在同一时间发生了这种情况,每个开发人员的配置都有些不同。看来我们可能已经超出了 FlashBuilder 的某些内部限制,但我们的项目还没有那么大。我不确定在哪里可以解决这个问题。
A project we've been working on for weeks in Flash Builder suddenly has stopped being navigable: all the nice features of Flash Builder like auto-completion, jump to definition, even search for References are only partially working -- they work for some classes but not for others. I've tried restarting Flash Builder, closing and opening the project, re-creating the project, but this bad situation persists. Moreover, it happened at about the same time for 2 other developers on the same project, each with a somewhat different configuration. It seems perhaps we have exceeded some internal limit of FlashBuilder, yet our project is not even that large yet. I'm not sure where I can look to troubleshoot this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
通常关闭 Eclipse 并重新启动可以解决我的问题。但是,这里还有一些其他的事情可以尝试:
Usually an Eclipse shut down and relaunch solves the problem for me. But, here are a few other things to try:
这是 eclipse(又名 Flash Builder)中的常见问题。
尝试增加“类型缓存”的可用内存(我忘记了具体术语)。您可以通过编辑 Flex 主目录中的 FlashBuilder.ini 来完成此操作,如下所示:(
剪掉不相关的选项)
您可能还需要完全删除工作区缓存并重新创建它。自从我增加了最大内存限制后,我就没有遇到过这个问题。
您可能不需要超过 512m 的最大大小,但我正在处理一个特别大的项目,有很多开放库依赖项......
This is a common problem in eclipse (aka Flash Builder).
Try increasing the available memory for it's "type caching" (I forget the specific term). You can do this by editing the FlashBuilder.ini in your flex home to look something like this:
(snipped out the irrelevant options)
You may also need to completely delete your workspace cache and recreate it. I haven't had this problem since I increased the max memory limit.
You probably don't need more then 512m on the max size, but I am working with a particularly large project with a lot of open library dependencies...
删除然后重新添加项目似乎可以解决这个问题。
Removing then re-adding the project seemed to fix this for me.
这些都不适合我。我的解决方案是在 BBedit 中运行一个文本工厂(我在 Mac 上),将整个代码库中的每个选项卡替换为四个空格,然后用另一个选项卡执行相反的操作。然后我在 FB 中刷新我的项目。对每个文件的这种修改似乎迫使 FB 重建它的引用。我每次启动FB都必须这样做。我确信有一种更好的命令行方式来实现这一点(尽管 unix 'touch' 不起作用)。
None of these worked for me. My solution is to run a textfactory in BBedit (I'm on Mac) that replaces every tab in my entire codebase with four spaces, then another one that does the reverse. Then I refresh my project in FB. This modifying of every file seems to force FB to rebuild it's references. I have to do it every time I start FB. I'm sure there's a better, command-line way to achieve this (though unix 'touch' doesn't work).
通过打开“启用设计模式”,我得到了显着的改进
I got significant improvement by turning of 'Enable Design Mode'
我遇到了同样的问题,有时甚至代码自动完成在自定义类上崩溃。
我建议您尝试从工作区中删除 .codemodel 文件夹
,请参阅此处的说明: http:// /www.redcodelabs.com/2010/05/flash-builder-content-assist-did-not-complete-normally/
稍后,为了提高性能,您可以按照以下步骤操作:http://www.redcodelabs.com/2012/03/eclipse-speed-up-flashbuilder/< /a>
I had the same problems, sometimes even code autocomplete was crashing on custom classes.
I would suggest you to try to remove the .codemodel folder from your workspace
,see descriptions here: http://www.redcodelabs.com/2010/05/flash-builder-content-assist-did-not-complete-normally/
And later, to improved performance you can follow this steps: http://www.redcodelabs.com/2012/03/eclipse-speed-up-flashbuilder/
当我向 MXML 应用程序添加模型声明时,发生了这种情况。当我将此注释掉时,自动完成功能再次起作用。
This happened when I added a model declaration to the MXML application. When I commented this out auto complete worked again.
右键单击一个类并选择“刷新”为我解决了这个问题:)
我还注意到它打开了一个奇怪的第二个类,当您单击另一个类中指向该类的超链接时,代码提示不起作用。如果双击文档树中的“Class.as”文件,则它可以正常工作。很奇怪
Right click on a class and select 'refresh' fixed this issue for me :)
I also noticed it opens a weird second class where code hinting is not working when you click on a hyperlink to that class from a different class. If you double click the 'Class.as' file in the documents tree then it works fine. Very strange