Skip to content

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

@carlos-algms

Description

@carlos-algms

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions