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
Volar breaking changes #3212
Comments
Yeah I've got the same problem, I thought I did something wrong but now I understand |
seems to upgrade the
now I am sure it locks the commit in the snapshot file https://github.com/LunarVim/LunarVim/blob/rolling/snapshots/default.json |
temporary solution
in the stable version nvim-tree throw an error message, just add |
I was able to update only nvim-lspconfig editing the snapshots/default.json myself and running sync, but I was still getting the same error. Also tried clearing the cache and re-running sync, same issue. Not sure if I needed to update something else.
Thanks for the workaround I believe we should have a hotfix release with these kinds of breaking changes or a way to manually unlock packages without editing the default.json file, potentially having a conflict when trying to update. There might already be a way to do this but the documentation is lacking. I've been trying to understand the inner workings of the scripts better to contribute to the docs but I'm new to even Lua here so I don't think I'll contribute anything significant any time soon. |
my advice is: allow to override the snapshot as well, provide an option like: -- to latest
lvim.packer.snapshots["nvim-lspconfig"].commit = nil
-- or specified a commit
lvim.packer.snapshots["nvim-lspconfig"].commit = "35a731b" after this, run using so my -- builtin
lvim.packer.snapshots["nvim-lspconfig"].commit = nil
local lsp = require("lspconfig")
-- unmap all preset buffer keymaps, use lspsaga instead
lvim.lsp.buffer_mappings.normal_mode = {}
lsp.volar.setup {
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },
} |
that's already possible in a Packer native way:
see https://github.com/LunarVim/LunarVim/blob/rolling/lua/lvim/plugin-loader.lua#L10-L11 I'd consider overriding the default snapshot an advanced workflow anyway, so there's probably no need to create multiple ways to do the same thing. |
I tried the thanks anyway! |
i figured out it is not just so I fix this issue via my new hack way, to let the above-mentioned plugins keep up-to-date. https://github.com/2nthony/dotfiles/blob/main/.config/lvim/lua/hack/snapshot.lua |
hmm, that option is implemented in a weird, serial and very slooow way in Packer, that's why I ended up impelementing that logic, see #2751 what I had in mind was something more like this :PackerSnaphot snap0
:e $LUNARVIM_CACHE_DIR/snapshots/snap0
" update whatever plugin you want
:PackerSnapshotRollback snap0 we're usually not that late with bumping the deps, I even made a CI workflow, but I still don't trust it 100% 😅 P.S. take a look at https://github.com/LunarVim/LunarVim/blob/e94390a9225c418dd96eb6b6822ce0dc15ce7cce/utils/ci/generate_new_lockfile.sh to see how to quickly generate a new snapshot P.P.S. improvements are always welcome and highly apprecaited! |
yes, that's why it calls hack way. I did it because I:
for stable reasons, I actually don't want to/should not contribute this hack to lunarvim, I think/believe there has a better way to handle it.😅 |
this is the point, plugins update is faster than lunarvim stable release, especially LSP servers. but back to this issue 😅 , I think it won't frequently happen. |
So, how to fix this?
UPDATE: |
Did you clean the cache after updating the packages? Sounds like that's the issue Anyway this should now be fixed in the stable release, thank you everyone |
you probably needed to reinstall volar then, because that's where mason install servers |
Problem description
Volar 1.0 had breaking changes on their end and neovim/nvim-lspconfig needs an update to handle it.
I tried modifying the snapshot commit for it and updating it manually, I then proceeded to change the setup config and set the typescript path to my own global installation however it still didn't work so I'm not sure if there's something else that needs an update.
Related:
neovim/nvim-lspconfig#2181
vuejs/language-tools#1916
LunarVim version
master-e4a5fe9
Neovim version (>= 0.8.0)
NVIM v0.8.0-1210-gd367ed9b2
Operating system/version
KDE Neon (Ubuntu) 20.04
Affected language servers
volar
Steps to reproduce
Actual behavior
Outputs error, doesn't work
Expected behavior
It should work
support info
LspInfo
1 client(s) attached to this buffer:
Client: tailwindcss (id: 2, pid: nil, bufnr: [4])
filetypes: aspnetcorerazor, astro, astro-markdown, blade, django-html, htmldjango, edge, eelixir, elixir, ejs, erb, eruby, gohtml, haml, handlebars, hbs, html, html-eex, heex, jade, leaf, liquid, markdown, mdx, mustache, njk, nunjucks, php, razor, slim, twig, css, less, postcss, sass, scss, stylus, sugarss, javascript, javascriptreact, reason, rescript, typescript, typescriptreact, vue, svelte
autostart: true
root directory: ****
cmd: tailwindcss-language-server --stdio
Other clients that match the filetype: vue
Config: volar
filetypes: vue
root directory: ****
cmd: vue-language-server --stdio
cmd is executable: true
autostart: true
custom handlers:
Configured servers list: volar, tailwindcss
LvimInfo
Buffer info
Active client(s)
Automatic LSP info
Formatters info
Linters info
Code actions info
logs
Screenshots
No response
The text was updated successfully, but these errors were encountered: