Closed artursmirnov closed 4 weeks ago
I can't reproduce this using glint and a simple file I created. Can you provide a test file?
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:
git clone https://github.com/LazyVim/starter ~/.config/nvim-test
NVIM_APPNAME=nvim-test nvim
plugins/example.lua
to return the following table): 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",
},
},
},
}
npm install -g ember-cli
cd ~/test-app-folder
ember new test-app
cd ~/test-app-folder/test-app
NVIM_APPNAME=nvim-test nvim
app/templates/application.hbs
file.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 a8264a65a0b894832ea642844f5b7c30112c458f
to the latest version, it started to error.
Fixed. Worth mentioning is that :Telescope lsp_document_symbols
also fails for this doc
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