tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
182 stars 58 forks source link

bug: Compilation error during tree-sitter-ruby update #251

Closed fabio42 closed 8 months ago

fabio42 commented 8 months ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

0.21.0

Describe the bug

Using nvim-treesitter, while updating I've got the following compilation error for tree-sitter-ruby (all the other languages did upgrade/compiled successfully):

Downloading tree-sitter-ruby...
Creating temporary directory
Extracting tree-sitter-ruby...
Compiling...
clang: error: no such file or directory: 'src/scanner.cc'
Error during compilation
Failed to execute the following command:
{
  cmd = "cc",
  err = "Error during compilation",
  info = "Compiling...",
  opts = {
    args = { "-o", "parser.so", "-I./src", "src/parser.c", "src/scanner.cc", "-Os", "-bundle", "-lstdc++", "-fPIC" },
    cwd = "/Users/fab/.local/share/nvim/tree-sitter-ruby"
  }
}

File src/scanner.cc indeed does not exist, but src/scanner.c does. I'm not sure if this is an issue with this repos or with nvim-treesitter.

Steps To Reproduce/Bad Parse Tree

Trigger update using :TSUpdate

Expected Behavior/Parse Tree

TS ruby grammar compile

Repro

No response

amaanq commented 8 months ago

not our issue, and not a nvim-ts issue (you need to actually update stuff.)

fabio42 commented 8 months ago

Thank you for your reply. Just in case this can help someone else, problem was indeed on my side, after upgrading cmake to latest version everything is working as expected. Thank you again and sorry for the noise.