Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Failed to load a language-c package grammar #348

Open
hayacon opened this issue May 20, 2020 · 0 comments
Open

Failed to load a language-c package grammar #348

hayacon opened this issue May 20, 2020 · 0 comments

Comments

@hayacon
Copy link

hayacon commented May 20, 2020

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Unknown macOS version
Thrown From: language-c package 0.60.18

Stack Trace

Failed to load a language-c package grammar

At The module '/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/tree-sitter-cpp/build/Release/tree_sitter_cpp_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 70. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). in /Applications/Atom.app/Contents/Resources/app.asar/node_modules/language-c/grammars/tree-sitter-cpp.json

Error: The module '/Applications/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/tree-sitter-cpp/build/Release/tree_sitter_cpp_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 70. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:169:18)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146745)
    at /app.asar/node_modules/tree-sitter-cpp/index.js:2:20)
    at /app.asar/node_modules/tree-sitter-cpp/index.js:15:3)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:20:18)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:695134)
    at new TreeSitterGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3107770)
    at GrammarRegistry.createGrammar (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:360193)
    at l.readFile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:360034)
    at u (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:580702)
    at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:581955
    at fs.read.error (ELECTRON_ASAR.js:573:9)
    at FSReqWrap.wrapper [as oncomplete] (fs.js:460:17)
  at /app.asar/node_modules/language-c/grammars/tree-sitter-cpp.json:1:1

Commands

Non-Core Packages

atom-beautify 0.33.4 
atom-clock 0.1.18 
atom-css-comb 3.5.1 
atom-runner 2.7.1 
autocomplete-python 1.16.0 
busy-signal 2.0.1 
color-picker 2.3.0 
dark-python-syntax 2.3.0 
file-icons 2.1.40 
intentions 1.1.5 
linter 2.3.1 
linter-flake8 2.4.0 
linter-spell 0.15.0 
linter-spell-javascript 0.9.0 
linter-ui-default 1.8.1 
minimap 4.29.9 
pigments 0.40.2 
python-autopep8 0.1.3 
script 3.26.0 
turbo-javascript 1.4.0 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant