Skip to content
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

Attempt to call sanitize a nil value - It seems lsp-config dropped it from utils.path.sanitize #317

Closed
carlos-algms opened this issue Nov 27, 2024 · 0 comments · Fixed by #318

Comments

@carlos-algms
Copy link
Contributor

Error message:

tsserver_provider.lua:67: attempt to call field 'sanitize' (a nil value) 

Here is where it's being called:

local sanitized_bufname = util.path.sanitize(bufname)

The commit removing it:

neovim/nvim-lspconfig@d651732#diff-9e30880c16142e9d50a64563fd1260aa9f851b782dd74678163e151b93878568L219

It seems lspconfig still has a utils.sanitize, but it's deprecated in favor of vim.fs.normalize which appears to be a drop-in replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant