atom / language-c

C support in Atom
Other
116 stars 154 forks source link

Failed to load a language-c package grammar #347

Closed LILIANYE20 closed 4 years ago

LILIANYE20 commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

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

Stack Trace

Failed to load a language-c package grammar

At error: 126\\?\C:\Users\miguelangel\AppData\Local\atom\app-1.46.0\resources\app.asar.unpacked\node_modules\tree-sitter-c\build\Release\tree_sitter_c_binding.node in C:\Users\miguelangel\AppData\Local\atom\app-1.46.0\resources\app.asar\node_modules\language-c\grammars\tree-sitter-c.json

Error: error: 126\\?\C:\Users\miguelangel\AppData\Local\atom\app-1.46.0\resources\app.asar.unpacked\node_modules\tree-sitter-c\build\Release\tree_sitter_c_binding.node
    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 (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:146745)
    at /app.asar/node_modules/tree-sitter-c/index.js:2:20)
    at /app.asar/node_modules/tree-sitter-c/index.js:15:3)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:147429)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.46.0/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 (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:1:721712)
    at new TreeSitterGrammar (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:3209684)
    at GrammarRegistry.createGrammar (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:360193)
    at l.readFile (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:360034)
    at u (~/AppData/Local/atom/app-1.46.0/resources/app/static/<embedded>:11:580702)
    at ~/AppData/Local/atom/app-1.46.0/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-c.json:1:1

Commands

Non-Core Packages

atom-console 0.4.6 
atom-live-server 2.3.0 
emmet 2.4.3 
file-icons 2.1.41 
minimap 4.29.9 
darangi commented 4 years ago

Thanks for reaching out!

We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.

Thanks for understanding and meeting us half way 😀