legesher / tree-sitter-legesher-python

✨ Legesher's Python grammar for Tree-Sitter 🌳
https://www.legesher.io
Other
44 stars 38 forks source link

RangeError: Incompatible language version for Atom's language-legesher-python #101

Closed madiedgar closed 2 years ago

madiedgar commented 2 years ago

Describe the bug When opening a python (.py) file in Atom with the language-legesher-python package enabled and the language-python core package disabled, the syntax highlighting is not applied. It looks like a typical text file but Atom detects that it should serve the file as Legesher Python (English).

Screenshots

Uncaught (in promise) RangeError: Incompatible language version. Compatible range: 9 - 12. Got: 13
    at Parser.setLanguage (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tree-sitter/index.js:259)
    at TreeSitterLanguageMode.parse (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at LanguageLayer._performUpdate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at LanguageLayer.update (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at new TreeSitterLanguageMode (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at GrammarRegistry.languageModeForGrammarAndBuffer (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at GrammarRegistry.autoAssignLanguageMode (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at Project.buildBuffer (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at Workspace.openTextFile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at Workspace.createItemForURI (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)
    at Workspace.open (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11)

Desktop (please complete the following information):

Useful Issues