Sublime Forum

Automatic Build System for Erlang

#1

For some reason if I have a .erl file open, the Build option will be disabled and I have to manually select the Build System to Erlang to be able to compile it from the editor.

I noticed that if I have any erlang file open and I press ctrl+shift+P (show_scope_name) it would say source.erlang. so based on that I changed the Erlang.sublime-build to use the following selector
“selector”: “source.erlang”

Finally it’s working but I don’t fully understand how sublime works, so I just want to know if my assumptions (the selector should match the scope name defined on .tmLanguage) are correct and that’s a proper fix.
And maybe that helps someone that is also annoyed by that behavior :smile:

0 Likes