简体   繁体   English

Eclipse实时错误检查已禁用

[英]Eclipse live error checking disabled

Few days ago I had to reinstall all my Linux system, and I also had to reinstall Eclipse CDT as I used to work with it since few weeks. 几天前,我不得不重新安装我的所有Linux系统,并且自数周以来我就不得不重新安装Eclipse CDT。

Unfortunately, since then I do not have live error checking anymore... and I miss it ;) 不幸的是,从那时起,我不再进行实时错误检查了……我错过了;)


If I create a new Hello World C++ project (New / C++ Project / Hello World C++ project) and then add some errors like calling a method from an nonexistent class or adding any undefined or untyped variable, well Eclispe doesn't underline and report them as it was doing before I had to reinstall it all. 如果我创建一个新的Hello World C ++项目(“新建” /“ C ++项目” /“ Hello World C ++”项目) ,然后添加一些错误,例如从不存在的类中调用方法或添加任何未定义或未类型化的变量,那么Eclispe不会在下划线并报告它们就像在必须重新安装所有设备之前所做的那样。

I searched stackoverflow, and tried to deactivate/reactive "Build automatically" without any change. 我搜索了stackoverflow,并尝试停用/响应“自动生成”,而未进行任何更改。 I also verified that the project path is included in the project sources (Project properties / C-C++ general / Path and Symbols / Source Location) but as it already was, it didn't solved the problem. 我还验证了项目路径已包含在项目源中(项目属性/ C-C ++常规/路径和符号/源位置),但实际上并没有解决问题。

When I "Build All" the errors are well reported in the "Problems view" , and then when I fix one problem and save the file, the error disappear from the Problem view, but then if I add another problem and save, nothing is reported until I build again. 当我“全部构建”时,错误已在“问题视图”中很好地报告,然后当我解决一个问题并保存文件时,该错误从“问题”视图中消失,但是如果我添加另一个问题并保存,则没有任何反应报告,直到我再次建立。 Even errors turned to comments still remains underlined until the next "build all" . 直到下一个“全部构建”为止,即使是转为注释的错误也仍然带有下划线。

Do you have any idea to help me reactivate this feature ? 您有什么想法可以帮助我重新启用此功能吗?

I was under Eclipse Linux 3.5 and I now use Eclipse Linux 3.7. 我当时使用Eclipse Linux 3.5,现在使用Eclipse Linux 3.7。

I installed the Eclipse package: Eclipse C/C++ IDE Indigo SR-1 with Eclipse Platform 3.7.1 and that fixed the problem. 我安装了Eclipse软件包:带有Eclipse Platform 3.7.1的Eclipse C / C ++ IDE Indigo SR-1 ,该问题得以解决。

So I guess, there was a problem with the 3.7.0 currently provided by the Ubuntu Software Center. 因此,我想Ubuntu软件中心当前提供的3.7.0存在问题。

With this new version all is Ok by default. 有了这个新版本,默认情况下一切正常。

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

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