Closed8

mason-lspconfigの最新版に追従する

maro114510maro114510

エラー内容

Error detected while processing /Users/hoge/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ...g.nvim/lua/mason-lspconfig/features/automatic_enable.lua:47: attempt to call field 'enable' (a nil value)
stack traceback:
        ...g.nvim/lua/mason-lspconfig/features/automatic_enable.lua:47: in function 'fn'
        .../nvim/lazy/mason.nvim/lua/mason-core/functional/list.lua:116: in function 'each'
        ...g.nvim/lua/mason-lspconfig/features/automatic_enable.lua:56: in function 'init'
        ...m/lazy/mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:41: in function 'setup'
        /Users/hoge/.config/nvim/lua/config/lspconfig.lua:39: in main chunk
        [C]: in function 'require'
        /Users/hoge/.config/nvim/lua/config/init.lua:10: in main chunk
        [C]: in function 'require'
All parsers are up-to-date!
maro114510maro114510

バージョン情報

 ● mason-lspconfig.nvim 0.32ms 󰢱 mason-lspconfig  config.lspconfig
        dir    /Users/hoge/.local/share/nvim/lazy/mason-lspconfig.nvim
        url    https://github.com/williamboman/mason-lspconfig.nvim
        branch main
        commit d39a75b
        readme README.md
        help   |mason-lspconfig.nvim|

      ✔ [task] log 221.59ms
    ● mason.nvim 4.27ms 󰢱 mason  config.lspconfig
        dir    /Users/hoge/.local/share/nvim/lazy/mason.nvim
        url    https://github.com/williamboman/mason.nvim
        branch main
        commit 888d6ee
        readme README.md
        help   |mason.nvim|

      ✔ [task] log 221.44ms

maro114510maro114510

これがないからかな

require("mason-lspconfig").setup {
    automatic_enable = false
}
maro114510maro114510

nvimバージョン

from

NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

to

NVIM v0.11.1
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info
maro114510maro114510

別エラーも発生したのでついでに。

GitHubRegistrySource(repo=mason-org/mason-registry) failed to install: ENOENT: no such file or directory: /Users/hoge/.local/share/nvim/mason/registries/github/mason-org/mason-registry/registry.json.zip
このスクラップは4ヶ月前にクローズされました