tajmone / Sublime-PML

Sublime Text 4 syntax for PML (Practical Markup Language)
https://tajmone.github.io/Sublime-PML/
MIT License
4 stars 0 forks source link

Build System: Enable Errors Navigation #16

Open tajmone opened 3 years ago

tajmone commented 3 years ago

Enhance the current build system to capture error logs via the line_regex option, to allow navigating the results in the source file(s), and so that ST can show error tool-tips in the source file(s).

From ST3 Docs on Build Systems:

line_regex

A string containing a regular expression to run on the build output to match line information. The matched file information is used to enable result navigation. The regex should capture 1, 2 or 3 groups.

The groups should capture:

  1. line number
  2. column number
  3. error message

References

tajmone commented 3 years ago

Blocking Issues

This feature is currently postponed due to a bug in pmlc, and some discussions/proposal to enhance the format of Error reports, which might changes in the course of time.

So it's better to just wait that the Error/Warnings/Info adopted by pmlc becomes more mature, or until we have some guarantees on it formatting convention, to avoid having to tweak the Build System many times over, and that it would break after a pmlc update.

See: