Failed to load a language-legesher-python package grammar
At Cannot find module '../../build/Release/tree_sitter_legesher_python_binding'
Require stack:
- /../../.atom/packages/language-legesher-python/node_modules/tree-sitter-legesher-python/bindings/node/index.js
- /Applications/Atom.app/Contents/Resources/app.asar/static/index.html in /../../.atom/packages/language-legesher-python/grammars/tree-sitter-legesher-python.cson
Error: Cannot find module '../../build/Release/tree_sitter_legesher_python_binding'
Require stack:
- /../../.atom/packages/language-legesher-python/node_modules/tree-sitter-legesher-python/bindings/node/index.js
- /Applications/Atom.app/Contents/Resources/app.asar/static/index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:157820)
at Module.require (/app.asar/static/index.js:61:43)
at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149153)
at /packages/language-legesher-python/node_modules/tree-sitter-legesher-python/bindings/node/index.js:2:20)
at /packages/language-legesher-python/node_modules/tree-sitter-legesher-python/bindings/node/index.js:20:3)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149837)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:153385)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:74:18)
at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:756278)
at new TreeSitterGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3314764)
at GrammarRegistry.createGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:362880)
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:362721
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:585344
at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)
at /packages/language-legesher-python/grammars/tree-sitter-legesher-python.cson:1:1
Resolved the issue below by modifying the module name. A new version will be released with this bug fix
[Enter steps to reproduce:]
Atom: 1.57.0 x64 Electron: 9.4.4 OS: macOS 11.4 Thrown From: language-legesher-python package 0.58.5
Stack Trace
Failed to load a language-legesher-python package grammar
Commands
Non-Core Packages