bblanchon / SublimeText-HighlightBuildErrors

👻 A plugin for Sublime Text 3 that highlights the lines that caused errors in the build
https://sublime.wbond.net/packages/Highlight%20Build%20Errors
MIT License
12 stars 7 forks source link

This plugin don't work with pascal compliler #11

Closed ZoloZiak closed 9 years ago

ZoloZiak commented 9 years ago

When I try to use your plugin with free Pascal compiler it doesn't mark the wrong lines. I have attached screenshot below: image

bblanchon commented 9 years ago

Did you configure the file_regex properly? http://sublimetext.info/docs/en/reference/build_systems.html

ZoloZiak commented 9 years ago

image

bblanchon commented 9 years ago

Does it jump to the error line when you press F4?

ZoloZiak commented 9 years ago

Yes, you can see it on first picture.

bblanchon commented 9 years ago

Can you check the console?

ZoloZiak commented 9 years ago

image

bblanchon commented 9 years ago

You have to remove the capture of (Error|Fatal).

ZoloZiak commented 9 years ago

When I delete it, F4 don´t work

Edit: I deleted that "if" statement in your python code - line 141, it works now: image

bblanchon commented 9 years ago

The right way of fixing this issue was to correct you file_regex. You just have to replace (Error|Fatal) by (?:Error|Fatal)

ZoloZiak commented 9 years ago

Thanks a ton for helping me solve this issue.

ZoloZiak commented 9 years ago

I want to thank you a lot for making this. It's helped me a lot in my work and made it so much easier. It's an awesome plugin. I hope you continue your work and keep making stuff like this. ;)

bblanchon commented 9 years ago

You're welcome. Thanks for using my plugin.

A quick suggestion... You should copy/paste the text instead of making screenshots. It allows others to copy part of the text and reuse it in their messages. It's also more friendly with search engines.

ZoloZiak commented 9 years ago

Okay I'll keep that in mind the next time. Never thought about it from that perspective.

Also if you don't mind I wanted to ask one more thing of you. Do you use stino plugin? If yes, does your plugin work with it ?

Thanks

bblanchon commented 9 years ago

No, even though I am a big Arduino fan, I don't use Stino.