Sublime Forum

Pass line number in build system

#1

Howdy,

A build system allows to specify various quantities via pre-defined variables, including $file_path, $project_base_name, $file_name, and so on. But is there a way to get the line number from where the build was invoked? The variable $line isn’t recognized. I would favor a “pure build system” solution, i.e., one that doesn’t involve developing a Python plugin. However, that may not be possible.

Thanks!

0 Likes

#2

I don’t know of any other variable than those listed here.

So no, unless someone already wrote a plugin to do this you will have to write some Python code yourself or wait for the developer(s) to possibly implement this feature. And during that process he could as well provide an API to expand these variables because currently they are only interpreted by the build system parser and replaced before forwarded to the build (exec) command.

0 Likes