Flash Builder 4 突然停止对某些类进行自动完成

发布于 2024-11-04 07:21:50 字数 272 浏览 1 评论 0原文

我们在 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 技术交流群。

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

发布评论

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

评论(8

唠甜嗑 2024-11-11 07:21:50

通常关闭 Eclipse 并重新启动可以解决我的问题。但是,这里还有一些其他的事情可以尝试:

  1. 由于这种情况发生在三个工作站上,在一组离散的类上,您是否在寻找奇怪的或非标准的语法错误?我确信我见过某些情况不会导致编译器错误,但会导致代码提示中断。我会寻找诸如双引号内的单引号或未正确终止的 ASDoc 之类的内容。 [不过,这看起来确实非常不一致,所以这有点像在黑暗中刺伤]。
  2. 尝试清洁工作空间。当您启动 Flash Builder(或 Eclipse)时,请使用“-clean”参数。我在 Windows 快捷方式中执行此操作;我不确定如何在 Mac 上执行此操作
  3. 尝试重新创建有问题的组件。慢慢地分块复制代码,直到找出破坏代码提示的原因。

Usually an Eclipse shut down and relaunch solves the problem for me. But, here are a few other things to try:

  1. Since this has happened across three work stations, on a discrete set of classes, have you looked for a weird, or non-standard syntax bug? I'm sure I have seen situations where something will not cause a compiler error, but do cause code hinting to break. I'd look for things like single quotes inside of double quotes or ASDocs that aren't properly terminated. [It does seem wildly inconsistent, though, so it is a bit of a stab in the dark].
  2. Try cleaning the work space. When you launch Flash Builder (or Eclipse) use the '-clean' argument. I do this in a Windows shortcut; I'm not sure how to do it on a Mac
  3. Try re-creating the component in question. Slowly copy code over in chunks until you find out what breaks the code hinting.
寄风 2024-11-11 07:21:50

这是 eclipse(又名 Flash Builder)中的常见问题。

尝试增加“类型缓存”的可用内存(我忘记了具体术语)。您可以通过编辑 Flex 主目录中的 FlashBuilder.ini 来完成此操作,如下所示:(

-vmargs
-Xms64m
-Xmx1024m
-XX:MaxPermSize=1024m
-XX:PermSize=64m

剪掉不相关的选项)

您可能还需要完全删除工作区缓存并重新创建它。自从我增加了最大内存限制后,我就没有遇到过这个问题。

您可能不需要超过 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:

-vmargs
-Xms64m
-Xmx1024m
-XX:MaxPermSize=1024m
-XX:PermSize=64m

(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...

过期以后 2024-11-11 07:21:50

删除然后重新添加项目似乎可以解决这个问题。

Removing then re-adding the project seemed to fix this for me.

智商已欠费 2024-11-11 07:21:50

这些都不适合我。我的解决方案是在 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).

三生殊途 2024-11-11 07:21:50

通过打开“启用设计模式”,我得到了显着的改进

I got significant improvement by turning of 'Enable Design Mode'

ヅ她的身影、若隐若现 2024-11-11 07:21:50

我遇到了同样的问题,有时甚至代码自动完成在自定义类上崩溃。

我建议您尝试从工作区中删除 .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/

倒带 2024-11-11 07:21:50

当我向 MXML 应用程序添加模型声明时,发生了这种情况。当我将此注释掉时,自动完成功能再次起作用。

<fx:Model id="testTextFlow">
    <flow:TextFlow version='3.0.0' xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='11' 
        textIndent='10' paragraphSpaceBefore='6' paddingTop='8' paddingLeft='8' paddingRight='8'>
        <flow:p paragraphSpaceBefore='inherit' clearFloats='start'>
        <flow:img source="http://imgs.xkcd.com/comics/trapped.png" width="600" height="300" float="right"/>
        <flow:span>Bacon ipsum. Permanent link to this comic: http://xkcd.com/876/ Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/trapped.png</flow:span>
        <flow:TextFlow version='3.0.0' xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='15'>  
        <flow:p paragraphSpaceBefore='inherit' >Here is an embedded text flow.</flow:p>
        </flow:TextFlow>
        </flow:p>
    </flow:TextFlow>
</fx:Model>

This happened when I added a model declaration to the MXML application. When I commented this out auto complete worked again.

<fx:Model id="testTextFlow">
    <flow:TextFlow version='3.0.0' xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='11' 
        textIndent='10' paragraphSpaceBefore='6' paddingTop='8' paddingLeft='8' paddingRight='8'>
        <flow:p paragraphSpaceBefore='inherit' clearFloats='start'>
        <flow:img source="http://imgs.xkcd.com/comics/trapped.png" width="600" height="300" float="right"/>
        <flow:span>Bacon ipsum. Permanent link to this comic: http://xkcd.com/876/ Image URL (for hotlinking/embedding): http://imgs.xkcd.com/comics/trapped.png</flow:span>
        <flow:TextFlow version='3.0.0' xmlns:flow='http://ns.adobe.com/textLayout/2008' fontSize='15'>  
        <flow:p paragraphSpaceBefore='inherit' >Here is an embedded text flow.</flow:p>
        </flow:TextFlow>
        </flow:p>
    </flow:TextFlow>
</fx:Model>
诺曦 2024-11-11 07:21:50

右键单击一个类并选择“刷新”为我解决了这个问题:)

我还注意到它打开了一个奇怪的第二个类,当您单击另一个类中指向该类的超链接时,代码提示不起作用。如果双击文档树中的“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

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