-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim 0.10.1 crashes when editing a Kotlin file and Treesitter ist activated #135
Comments
I'm getting this same crash, to help with reproduction here's a minimal config: minimal.lualocal root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.fn.system {
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
}
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "kotlin" },
sync_install = false,
highlight = { enable = true },
})
end
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
}) And here's my steps to reproduce:
I find that nvim crashes when you type the nvim -v
And running on an M2 MacBook Air Hope this helps :) |
Thank you, @Akeboshiwind! Now I have a sensible minimal.lua for a lot of things :-) |
Same here, I'm using the
Here is the markdown codeblock: fun main() {
println("He")
} |
@cmon1701 I can't take credit, it's from the telescope repo :) Also to be clear it's not just the letter e, but the second letter typed. You can do the following:
Interestingly you can keep entering things at the beginning of the string 🤷 |
#136 fixes a crash in the scanner, mind checking if 0.3.8 fixes it? |
I can confirm that this fixes it for me 👍 |
I can confirm this, too. Thank you! |
When I edit a simple Kotlin file (the one that is generated via gradle init) and Treesitter is active, Neovim frequently crashes.
After :TSUninstall kotlin, Neovim does not crash, so it is a Treesitter kotlin issue.
This solution did not help: #57
After TSInstall kotlin, Neovim crashes again.
The text was updated successfully, but these errors were encountered: