Eclipse CDT 不解析控制台输出
我正在使用批处理文件在 Eclipse 中构建我的项目(我正在使用 Keil 的 C51 编译器)。输出正确显示在 Eclipse Console 视图中,但错误解析器似乎没有执行任何操作。
我已经尝试过内置解析器(尽管我知道我可能必须编写自己的解析器),我已经编写了自己的错误解析器(然后我检查了它是否有效),我什至尝试向现有解析器添加新规则,但没有任何运气。甚至这个正则表达式似乎也不起作用:(.*)
。
我还尝试过使用 iSystem 中的 RegEx Error Parser;我见过其他人成功地让它发挥作用,但仍然没有发生任何事情。
有没有人有幸让错误解析器正确解释控制台输出?我正在使用 Eclipse CDT 的 Helios Service Release 2。
I'm using a batch file to build my project in Eclipse (I'm using the C51 compiler from Keil). The output is correctly displayed in the Eclipse Console view, but none of the error parsers seem to do absolutely anything.
I've tried the built-in parsers (although I knew I'd probably have to write my own), I've written my own error parser (which I've then checked to see if it works), I've even tried adding new rules to the existing parsers, without any luck. Not even this regex seems to work: (.*)
.
I've also tried using the RegEx Error Parser from iSystem; I've seen others who managed to successfully get it to work, but still nothing happened.
Has anyone had any luck in getting the error parser to correctly interpret the console output? I'm using the Helios Service Release 2 of the Eclipse CDT.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了解决方案< /a> 在 Eclipse CDT 论坛上交叉发布我的问题后:
错误解析器仅适用于内置构建工具,因此请保留构建器不变。然后,转到
Project ->属性-> C/C++ 构建
,取消选择使用默认构建命令并添加您自己的批处理文件。在“行为”选项卡中为“基于资源保存构建(自动构建)”和“构建(增量构建)”选项执行相同的操作。然后,转到
C/C++ Build\Settings
中的Error Parsers
选项卡,并使用所需的规则添加您自己的错误解析器。I've found the solution after cross-posting my question on the Eclipse CDT forum:
The error parsers only work for the built-in build tools, so leave the builders as they are. Then, go to
Project -> Properties -> C/C++ Build
, deselect the Use default build command and add your own batch file. Do the same thing in theBehaviour
tab for the Build on resource save (Auto build) and the Build (Incremental build) options.Afterwards, go to the
Error Parsers
tab inC/C++ Build\Settings
and add your own error parser with the rules you want.以下更改解决了我的问题:
The following changes fix problem for me: