-
Notifications
You must be signed in to change notification settings - Fork 177
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
bug: Trouble throws an error when attaching to a buffer with some LSPs #480
Comments
I can't reproduce this using glint and a simple file I created. The error can only happen when an invalid location is sent from the LSP server. |
@folke thank you for a swift response. The error does not occur on a simple file. You need a simple Ember.js app. I think there should be an actual component invocation. I was able to reproduce the issue in a clean setup with the following steps:
return {
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
-- lua stuff
"lua-language-server",
"stylua",
-- web dev stuff
"css-lsp",
"tailwindcss-language-server",
"html-lsp",
"json-lsp",
"typescript-language-server",
"ember-language-server",
"vetur-vls",
"glint",
"yaml-language-server",
"python-lsp-server",
"deno",
"eslint_d",
"prettier",
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"html",
"css",
"scss",
"javascript",
"typescript",
"json",
"jsonc",
"python",
"ruby",
"vue",
"tsx",
"c",
"markdown",
"markdown_inline",
"bash",
"dockerfile",
"yaml",
"toml",
"glimmer",
},
},
},
}
The error should be displayed. |
FWIW, it's been working properly in neovim 0.9.5. After upgrade to neovim 0.10.0 and updating Trouble from |
Fixed. Worth mentioning is that |
The fix is working perfectly, thank you so much @folke! |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
macOS 14.3
Describe the bug
When opening a file of a certain filetype (
handlebars
), Trouble throws an error:Excerpt from the
:LspInfo
:LSP features work properly.
Steps To Reproduce
No particular steps, just opening a
.hbs
file.Expected Behavior
No error should occur.
Repro
No response
The text was updated successfully, but these errors were encountered: