wavedrom / language-vcd

VCD language package for Atom
MIT License
1 stars 0 forks source link

MacOSX : Failed to load a language-vcd package grammar #1

Open pistoletpierre opened 5 years ago

pistoletpierre commented 5 years ago

Edit: just wanted to add: Good stuff. I was just looking for VCD syntax highlighting in LaTeX a few weeks ago and couldn't find anything. With this + https://atom.io/packages/copy-as-rtf I can work around it though.

[Enter steps to reproduce:]

  1. it happens right when Atom opens the GUI. Seems like the same Treesitter problem we're seeing on the SystemVerilog Treesitter update you've been working on.

Atom: 1.40.1 x64 Electron: 3.1.10 OS: Mac OS X 10.14.6 Thrown From: language-vcd package 0.3.0

Stack Trace

Failed to load a language-vcd package grammar

At Cannot find module './build/Release/tree_sitter_vcd_binding' in ~/.atom/packages/language-vcd/grammars/tree-sitter-vcd.cson

Error: Cannot find module './build/Release/tree_sitter_vcd_binding'
    at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._resolveFilename (/app.asar/src/module-cache.js:336:28)
    at Function.Module._load (internal/modules/cjs/loader.js:528:25)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (/app.asar/src/native-compile-cache.js:68:27)
    at /packages/language-vcd/node_modules/tree-sitter-vcd/index.js:2:20)
    at /packages/language-vcd/node_modules/tree-sitter-vcd/index.js:15:3)
    at Module._compile (/app.asar/src/native-compile-cache.js:121:30)
    at /app.asar/src/compile-cache.js:255:23)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (/app.asar/src/native-compile-cache.js:68:27)
    at /app.asar/src/tree-sitter-grammar.js:61:27)
    at GrammarRegistry.createGrammar (/app.asar/src/grammar-registry.js:604:14)
    at CSON.readFile (/app.asar/src/grammar-registry.js:583:29)
    at parseContents (/app.asar/node_modules/season/lib/cson.js:119:7)
    at /app.asar/node_modules/season/lib/cson.js:222:24
    at FSReqWrap.oncomplete (fs.js:182:21)
  at /packages/language-vcd/grammars/tree-sitter-vcd.cson:1:1

Commands

Non-Core Packages

aligner 1.2.4 
aligner-javascript 1.3.0 
aligner-verilog 1.0.0 
aligner-vhdl 0.1.0 
ariake-dark-syntax 0.2.1 
ascii-hex 0.2.0 
atom-beautify 0.33.4 
atom-html-preview 0.2.6 
atom-ide-ui 0.13.0 
atom-material-syntax 1.0.8 
atom-material-syntax-dark 1.0.0 
atom-material-syntax-light 0.4.6 
atom-material-ui 2.1.3 
atom-pair 2.0.13 
atom-wrap-in-tag 0.6.0 
autocomplete-haskell 1.0.1 
autocomplete-python 1.16.0 
browse 1.11.0 
browser-plus 0.0.98 
build 0.70.0 
busy-signal 2.0.1 
circle-ci 0.10.1 
copy-as-rtf 0.9.3 
custom-folds 1.9.5 
dbg 1.6.3 
dbg-gdb 1.7.8 
emmet 2.4.3 
file-icons 2.1.35 
fonts 3.7.2 
git-plus 8.7.1 
haskell-ghc-mod 2.2.5 
highlight-selected 0.16.0 
Hydrogen 2.12.1 
hyperclick 0.0.0 
ide-cpp 0.1.0 
ide-json 0.2.1 
ide-python 1.4.2 
indent-detective 0.4.0 
ink 0.11.0 
intellij-idea-keymap 0.2.3 
intentions 1.1.5 
julia-client 0.10.1 
language-cmake 1.2.0 
language-haskell 1.19.1 
language-hy 0.1.0 
language-julia 0.19.1 
language-latex 1.2.0 
language-lt16soc 0.1.0 
language-matlab 0.2.1 
language-r 0.4.2 
language-scala 1.1.10 
language-systemverilog 0.12.2 
language-tcl 0.1.2 
language-tcltk 0.1.5 
language-vhdl 0.7.2 
language-x86-64-assembly 2.2.11 
latex 0.50.2 
latex-completions 0.3.6 
linter 2.3.1 
linter-chktex 1.4.0 
linter-clang 4.1.2 
linter-csslint 2.0.6 
linter-gcc 0.7.1 
linter-hlint 2.1.0 
linter-htmlhint 1.6.2 
linter-javac 1.10.0 
linter-php 1.6.1 
linter-pylint 2.1.1 
linter-python 3.1.2 
linter-ui-default 1.8.0 
linter-verilator 0.3.0 
linter-verilog 0.7.0 
linter-vhdl 1.2.0 
minimap 4.29.9 
multi-cursor 2.1.5 
multi-cursor-increment 0.1.1 
multi-cursor-plus 1.2.0 
next-occurrence 0.5.0 
output-panel 0.3.4 
pdf-view 0.72.0 
pigments 0.40.2 
pretty-json 2.1.2 
python-debugger 0.2.0 
python-tools 0.6.9 
remote-sync 4.1.8 
script 3.18.1 
Sublime-Style-Column-Selection 1.7.5 
sublime-word-navigation 0.2.1 
sublimify 0.10.0 
tag 0.5.0 
teletype 0.13.4 
text-manipulation 0.6.0 
todo-show 2.3.2 
tool-bar 1.1.12 
uber-juno 0.2.0 
vhdl-entity-converter 0.9.0 
drom commented 5 years ago

Do you see anything in ~/.atom/packages/language-vcd/node_modules/tree-sitter-vcd/ ?

pistoletpierre commented 5 years ago

LICENSE README.md bin/ binding.gyp grammar.js index.js package.json src/

drom commented 4 years ago

Try:

cd ~/.atom/packages/language-vcd/node_modules/tree-sitter-vcd/
apm rebuild
pistoletpierre commented 4 years ago

Same thing I'm afraid. It's having a hard time with these packages involving tree sitter. You said you'd gotten your language-systemverilog fork to run on MacOS though, right?