Open TechPeng opened 4 years ago
My bad - I thought we had worked out all the bugs. I just unpublished the most recent release and put the improvement-in-progress (but still buggy) version on a branch. If you apm remove language-systemverilog && apm install language-systemverilog
it'll be working like it was before.
It looks like Mac-specific issue. I run only on Linux and it is fine.
Looks like build/Release/tree_sitter_verilog_binding
was not build during installation of tree-sitter-verilog
Do you remember if you had to do anything out of the ordinary when you got it working on MacOS? https://github.com/pistoletpierre/language-systemverilog/issues/4#issuecomment-537648579
i.e. was tree-sitter-verilog already installed prior to language-systemverilog & therefore you wouldn't have seen such an error?
I don't own a Mac, and I have borrowed Mac for these experiments.
I think that language-systemverilog
will install tree-sitter-verilog
as npm
dependency.
tree-sitter-verilog
Installation requires Node GYP and C++ compiler configured. May that be a problem?
Ah ok. I put your tree-sitter code on a separate branch and reverted master
for the time being. @TechPeng do you mind doing a few experiments with us since my Mac seems to not be having any issues with it anymore? (I was seeing a similar error before (https://github.com/pistoletpierre/language-systemverilog/issues/4#issuecomment-515642493), but it has since disappeared & I don't know off the top of my head how to get my computer back in to a state where the error would reappear)
@drom I would hope that if Node GYP, a C++ compiler, or anything else necessary to install prerequisites were not configured properly then apm would complain and not silently dismiss such an issue while reporting a successful package installation but you never know...
Could this be a potential fix? https://github.com/tree-sitter/tree-sitter-verilog/pull/44
Could this be a potential fix? tree-sitter/tree-sitter-verilog#44
I don't think so. npm
package already include C
and H
files.
@drom I would hope that if Node GYP, a C++ compiler, or anything else necessary to install prerequisites were not configured properly then apm would complain and not silently dismiss such an issue while reporting a successful package installation but you never know...
What is the standard C++ compiler on Mac? XCode? I any quick way to check if it is installed? https://github.com/nodejs/node-gyp#on-macos ?
https://medium.com/@mrjohnkilonzi/how-to-resolve-no-xcode-or-clt-version-detected-d0cf2b10a750
xcode-select --install
?
Catalina isssue? https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md
@drom I would hope that if Node GYP, a C++ compiler, or anything else necessary to install prerequisites were not configured properly then apm would complain and not silently dismiss such an issue while reporting a successful package installation but you never know...
What is the standard C++ compiler on Mac? XCode? I any quick way to check if it is installed?
On MacOS, gcc/g++ are "secretly" clang (edit: unless you deliberately install gcc yourself). According to https://stackoverflow.com/questions/62366112/does-macos-come-built-in-with-the-clang-compiler-or-is-built-in-with-the-xcode-i, it's not included in a fresh MacOS installation but comes with XCode.
@TechPeng do you mind doing which gcc
and then $(which gcc) --help
?
Catalina isssue? https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md
I doubt it for my own case, but am not willing to rule it out for @TechPeng's case. I'm currently running Catalina and have not had problems installing other npm packages. Also, it was released on Oct 7 2019 (and I wasn't running any beta pre-release version) and I was having similar issue to @TechPeng when running the previous MacOS version (July 2019 - https://github.com/pistoletpierre/language-systemverilog/issues/4)
xcode-select --install
?
This wouldn't have been my issue when we first saw it last summer. I've had the XCode command-line developer tools installed & kept up-to-date for ages
[Enter steps to reproduce:]
Atom: 1.50.0 x64 Electron: 5.0.13 OS: Mac OS X 10.15.6 Thrown From: language-systemverilog package 1.0.0
Stack Trace
Failed to load a language-systemverilog package grammar
Commands
Non-Core Packages