Home Download Buy Blog Forum Support

Access build results (errors and warnings) from plugin

Access build results (errors and warnings) from plugin

Postby tomhe on Mon Mar 19, 2012 6:41 pm

I want to create a plugin that highlights the results from a build in the source file, much like a linter highlights problems in the source file.

For this I need to access the build results from my plugin, but I don't know how to get to them. Any ideas on how to achieve this?

(The build system picks up the results through the file_regex plugin, but I have no idea where they are stored or how to access them).
Posts: 7
Joined: Sun Mar 18, 2012 6:10 pm

Re: Access build results (errors and warnings) from plugin

Postby Fidde on Sun Apr 01, 2012 10:56 pm

You may be able to grab the output directly from the 'exec' panel which is where the exec command (which is used by the build system) puts its result. To get the panel you basically do something like this:

Code: Select all

Which I just found in this post: http://www.sublimetext.com/forum/viewtopic.php?f=6&t=6479

You'll likely have to manually parse the output though. It seems like sublime simply parses that text using the provided regular expressions and moves the selection/cursor around in the panel whenever you ask for the next error.
Posts: 4
Joined: Fri Mar 30, 2012 7:25 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests