Sublime Forum

Parse build output

#1

Since I haven’t found anything in the docs, I wanted to ask whether it’s possible to parse the build tool’s output and use it in my plugin. To give you an idea what I’m trying to do: a new file is created in the build process, but the name of the output file is defined in the script that is used in the build process. I would love to be able to read the build output, extract the filename and open that file in a new tab.

0 Likes

#2

You should be able to use the Window class’s panels() and find_output_panel() methods to get the View for the build output and then read from it. Or perhaps I am misunderstanding your needs.

1 Like

#3

Build systems are meant to be used by the end user. If you intend to interpret output of an external tool or application, you should look into using subprocess.Popen directly.

2 Likes