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

[lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in server_configurations.md or added as a custom server. (Mac 15.1.1) #337

Open
minadeveloper7 opened this issue Dec 15, 2024 · 1 comment

Comments

@minadeveloper7
Copy link

First using NeoVim and just was starting with the video from the channel chris@machine but i got error just after cloning it.

Error:

[lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in `server_configurations.md` or added as a custom server.
Error detected while processing /Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/plugin/nvim-treesitter.lua:
E5113: Error while calling lua chunk: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:651: Overriding existing predicate has-ancestor?
stack traceback:
        [C]: in function 'error'
        ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:651: in function 'add_predicate'
        ...nvim-treesitter/lua/nvim-treesitter/query_predicates.lua:74: in main chunk
        [C]: in function 'require'
        ...ack/packer/start/nvim-treesitter/lua/nvim-treesitter.lua:8: in main chunk
        [C]: in function 'require'
        .../packer/start/nvim-treesitter/plugin/nvim-treesitter.lua:9: in main chunk
Error detected while processing /Users/misu/.local/share/nvim/site/pack/packer/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim:
line    1:
E5108: Error executing lua ...s-context-commentstring/lua/ts_context_commentstring.lua:4: loop or previous error loading module 'nvim-treesitter'
stack traceback:
        [C]: in function 'require'
        ...s-context-commentstring/lua/ts_context_commentstring.lua:4: in function 'init'
        [string ":lua"]:1: in main chunk

:checkhealth:

  • WARNING vim.health.report_error() is deprecated, use vim.health.error() instead. :help |deprecated|
    Feature will be removed in Nvim 0.11

  • ERROR c(locals): ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 38:21. Invalid node type "set":
    (set! reference.kind "field"))
    ^

    c(locals) is concatenated from the following files:
    | [ERROR]:"/Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/c/locals.scm", failed to load: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 38:21. Invalid node type "set":
    (set! reference.kind "field"))
    ^

  • ERROR c(indents): ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 47:5. Impossible pattern:
    "else" @indent.branch
    ^

    c(indents) is concatenated from the following files:
    | [ERROR]:"/Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/c/indents.scm", failed to load: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 47:5. Impossible pattern:
    "else" @indent.branch
    ^

  • ERROR lua(injections): ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 20:12. Invalid node type "string_content":
    ((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
    ^

    lua(injections) is concatenated from the following files:
    | [ERROR]:"/Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/lua/injections.scm", failed to load: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 20:12. Invalid node type "string_content":
    ((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
    ^

  • ERROR query(highlights): ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 4:17. Impossible pattern:
    (anonymous_node (identifier) @string)
    ^

    query(highlights) is concatenated from the following files:
    | [ERROR]:"/Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/query/highlights.scm", failed to load: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 4:17. Impossible pattern:
    (anonymous_node (identifier) @string)
    ^

  • ERROR vimdoc(highlights): ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 6:4. Impossible pattern:
    "~" @conceal (#set! conceal ""))
    ^

    vimdoc(highlights) is concatenated from the following files:
    | [ERROR]:"/Users/misu/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/vimdoc/highlights.scm", failed to load: ...0.10.2_1/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 6:4. Impossible pattern:
    "~" @conceal (#set! conceal ""))
    ^

@minadeveloper7 minadeveloper7 changed the title [lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in server_configurations.md or added as a custom server. [lspconfig] Cannot access configuration for lua_ls. Ensure this server is listed in server_configurations.md or added as a custom server. (Mac 15.1.1) Dec 15, 2024
@minadeveloper7
Copy link
Author

Thanks, for the solution from earlier!

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

No branches or pull requests

1 participant