Sublime Forum

Difficulties to read results on a new build system

#1

I have created a new build system on sublime Text. Currently my command is working well but I am trying to read the results file for finding error and warning. Is it possible and how can I do it?

The results of the execution is given in a specific file (not in stdout/stderr). The file has a name <namefile>.f06 where <namefile> corresponds to the base name of the file on which the building has been done.

I look inside the sentence *** USER FATAL MESSAGE...*** and the 2 following lines.

As warning messages I am looking for the sentence: *** USER INFORMATION MESSAGE...*** and the 2 following lines.

Thank you for your help

0 Likes

#2

It sounds like you’ll need to write a custom build system target. The Advanced Example should give you a skeleton. Instead of reading the output of the command, you’ll need to open the output file once the subprocess is done and probably put the contents in an output view, or parse it yourself and write custom content to the output view.

0 Likes