Replies: 2 comments 2 replies
-
Converted this to a discussion as this is not a Linguist bug.
The grammar compiler expects to find grammar files in the locations the actual editors expect to find them: linguist/tools/grammars/compiler/loader.go Lines 119 to 128 in 8e7ffb3 The grammar you've linked to has a plist grammar file, but it's not in the correct path for editors that use this format. The file needs to be in a |
Beta Was this translation helpful? Give feedback.
-
Not really. Those plugins are explicitly telling VSCode where to find the grammar with config like this in the "grammars": [
{
"language": "erlang",
"scopeName": "source.erlang",
"path": "./grammar/Erlang.plist"
}
], The TextMate grammar repo this was forked from has the file in the expected location.
Yup, as you found, a symlink will do the trick |
Beta Was this translation helpful? Give feedback.
-
Hello!
Describe the bug
The Erlang grammar used here has not been updated in 5 years, instead a new fork has been made that has received updates: https://github.com/erlang-ls/grammar. I tried to update the grammar using
script/add-grammar --replace erlang.tmbundle https://github.com/erlang-ls/grammar
but it failed with this error:From what I can gather it cannot find the grammar files.
Expected behaviour
I would like to be able to use this new erlang grammar fork, as it is the only place right now that receives any updates.
Beta Was this translation helpful? Give feedback.
All reactions