问题描述
好吧,这可能很简单,但我不知道适当的词来描述它,因此,它是... ...我有一个外部脚本取得文件名,并输出:
/path/to/file.py:683 :80:E501行太长(85个字符)
/path/to/file.py:690:21:其他错误消息
..etc ..
现在,我知道这个输出格式被其他很简单的IDE广泛接受,例如EditPlus的。我不知道如何将它与Eclipse整合。
我希望这个脚本与我的编辑器窗口集成在一起。我希望Eclipse在后台运行它,每次我保存文件,然后解析结果并标记出现在脚本输出中的所有行。应该看起来像这样:
我该怎么做?
注意(对于那些知道为什么需要这个的人): em>我知道PyDev有一个集成的pep8.py检查器,但还不够。
好的,所以我实现了这个插件我。我确实正是我要求的,我猜。我使用一些粗鲁的正则表达式进行配置。
我发布了代码和安装说明(GitHub)。
Okay, this is probably easy, but I don't know proper words to describe it, and hence, google it...
I have an external script which takes a file name and outputs this:
/path/to/file.py:683:80: E501 line too long (85 characters)
/path/to/file.py:690:21: other error message
..etc..
Now, I know this output format is widely accepted by other, much simple IDEs, e.g. EditPlus. I don't know how to integrate it with Eclipse though.
I want this script integrated with my editor windows. I want Eclipse to run it in the background, every time I save the file, and then parse the results and mark all the lines which occured in the script's output. It should look something like this:
How can I do that?
Note (for those who know why I need this): I know PyDev has a pep8.py checker integrated, but it's not enough.
Ok, so I implemented that plugin myself. I does exactly what I asked for, I guess. I made it configurable with some rude regular expressions.
I posted the code and installation instructions here (GitHub).
这篇关于在Eclipse编辑器中集成外部荧光笔工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!