Replies: 10 comments 2 replies
-
hey 👋 This looks like a luarocks issue. Are you able to install any parsers using the luarocks CLI? For tree-sitter parsers, the version of Lua you have installed shouldn't matter. |
Beta Was this translation helpful? Give feedback.
-
Hey! 👋 I had to install
That's just to see if my system is setup right? Because that doesn't seem to make the parser available in Neovim. |
Beta Was this translation helpful? Give feedback.
-
Did you install with the |
Beta Was this translation helpful? Give feedback.
-
Ah yes, sorry, you did say to use
|
Beta Was this translation helpful? Give feedback.
-
🤔 I suggest you temporarily set the It could also be that it works now that the build dependency is installed in your local |
Beta Was this translation helpful? Give feedback.
-
I think I'm getting somewhere! So firstly because of a Neovim bug it's not actually possible to directly overwrite a table's field. So to change Rock's log level I did: local tmp = vim.g.rocks_nvim
tmp._log_level = vim.log.levels.DEBUG
vim.g.rocks_nvim = tmp Then from the logs I finally have this:
Which translates into this command:
Which returns: |
Beta Was this translation helpful? Give feedback.
-
Are you using luarocks version 3.11.1? Edit: based on the path it looks like you are. Could it be that you have an older luarocks version on your lua path that is somehow interfering?
You're probably not seeing tree-sitter highlighting, but LSP semantic tokens. rocks-treesitter.nvim will only start highlighting if there's a parser entry in the rocks.toml. |
Beta Was this translation helpful? Give feedback.
-
Very interesting, running this shows that even though the path implies
I even wiped my |
Beta Was this translation helpful? Give feedback.
-
It looks like your system luarocks install is doing something funky. Hopefully soon, we will be migrating away from luarocks. |
Beta Was this translation helpful? Give feedback.
-
I wasn't aware that I'd installed
Maybe I'll try manually installing it. |
Beta Was this translation helpful? Give feedback.
-
In
.local/share/nvim/rocks/share/lua/5.1/luarocks/deps.lua
theassert
in question is by the ❌:I'm not very good at debugging lua, but I think the error is when installing
https://luarocks.org/luarocks-build-treesitter-parser-6.0.0-1.src.rock
, but I can't find out much more than that.This happened for Rust. But I get the same error for all languages.
Does it matter that my system
lua -v
is5.4.6
?Also, if it's relevant I'm on Linux ARM.
Beta Was this translation helpful? Give feedback.
All reactions