简体   繁体   English

当使用EGit时,Eclipse会丢失自动完成功能以及其他功能

[英]When using EGit Eclipse loses autocompleting and more

I have been using Eclipse and CDT for some months but one month ago I set EGit for git integration. 我已经使用Eclipse和CDT几个月了,但是一个月前,我将EGit设置为git集成。 Since this moment I lost autocompleting, error highlighting... Now my Eclipse is like a simple text editor =(. 从那一刻起,我就失去了自动填充功能,错误突出显示...现在,我的Eclipse就像一个简单的文本编辑器=(。

I have readed in Internet and it seems to be usual... but all info is too old =(. 我已经在互联网上阅读过,这似乎很平常...但是所有信息都太老了=(。

Anyone has EGit with all funcionality? 任何人都具有所有功能的EGit吗? How can I fix it? 我该如何解决?

Thank you so much =) 非常感谢你=)

EDIT: The info I saw http://www.eclipse.org/forums/index.php/t/366374/ 编辑:我看到的信息http://www.eclipse.org/forums/index.php/t/366374/

EDIT2: The Konstantin Komissarchik solution works for me: take a .project file from a copy of your project and copy to the actual .project the differences. EDIT2:Konstantin Komissarchik解决方案对我有用:从项目副本中获取一个.project文件,并将差异复制到实际的.project中。 In my case these was 就我而言,这些是

    <buildSpec>
            <buildCommand>
                    <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
                    <triggers>clean,full,incremental,</triggers>
                    <arguments>
                    </arguments>
            </buildCommand>
            <buildCommand>
                    <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
                    <triggers>full,incremental,</triggers>
                    <arguments>
                    </arguments>
            </buildCommand>
    </buildSpec>
    <natures>
            <nature>org.eclipse.cdt.core.cnature</nature>
            <nature>org.eclipse.cdt.core.ccnature</nature>
            <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
            <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
    </natures>

Thank you so much! 非常感谢!

A common cause of the behavior that you are describing is not adding project metadata files to your source repository. 您描述的行为的一个常见原因是没有将项目元数据文件添加到源存储库。 Make sure that files and folders starting with '.' 确保文件和文件夹以“。”开头。 in project root, such as .project and .settings, have been added to your repo. 项目根目录中的.project和.settings已添加到您的存储库中。

Note that you need to do this from a wherever you initially shared the project from, so that you get the correct metadata that worked before. 请注意,您需要从最初共享项目的任何地方进行此操作,以便获得以前可以使用的正确元数据。

I don't think your issue is related to EGit. 我认为您的问题与EGit没有关系。 Although I don't use CDT very often, by I sometimes see similar issues with the Java editor, and it almost always related to content assist provider getting turned off. 尽管我不经常使用CDT,但有时我会在Java编辑器中看到类似的问题,并且它几乎总是与关闭内容辅助提供商有关。

A quick search turned up that such a feature also exists for CDT, so I would look at the CDT content provider preferences. 快速搜索发现CDT也存在这样的功能,因此我将研究CDT内容提供商的首选项。 For details see also the following SO answer: https://stackoverflow.com/a/5691559/114313 有关详细信息,请参见以下SO解答: https : //stackoverflow.com/a/5691559/114313

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM