Coder Social home page Coder Social logo

Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable. about kickstart.nvim HOT 11 CLOSED

nvim-lua avatar nvim-lua commented on June 13, 2024
Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable.

from kickstart.nvim.

Comments (11)

arindampal-0 avatar arindampal-0 commented on June 13, 2024 1

The neovim is not finding the LSP in the neovim PATH because it has not yet been added to the neovim PATH. This task is handled by Mason. But if nvim-lspconfig tries to access the LSP server before the appropriate PATH gets added by Mason then we encounter the error:

Spawning language server with cmd: `lua-language-server` failed. The language server is either not installed, missing from PATH, or not executable.

The solution is given here:
williamboman/nvim-lsp-installer#509 (reply in thread)

So you need to make sure that Mason gets loaded before nvim-lspconfig does, i.e. require("mason").setup() runs before require("nvim-lspconfig").setup()

If you are using Lazy.nvim then this solves the problem, adding mason as a dependency of nvim-lspconfig.

{
    "neovim/nvim-lspconfig",
    dependencies = {
        "williamboman/mason.nvim",
    },
}

from kickstart.nvim.

tjdevries avatar tjdevries commented on June 13, 2024

You don't have any other configuration?

from kickstart.nvim.

martyphee avatar martyphee commented on June 13, 2024

I'm also getting lua errors. I've tried deleting all the directories and starting over. Also upgraded all packages with brew

   90 ## The following errors have been detected:
   91   - ERROR: vim(highlights): ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 2765 for language vim
   92     vim(highlights) is concatenated from the following files:
   93     | [ERROR]:"/Users/martinphee/.local/share/nvim/site/pack/packer/start/nvim-treesitter/queries/vim/highlights.scm", failed to load: ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at               position 2765 for language vim

from kickstart.nvim.

TheYahya avatar TheYahya commented on June 13, 2024

No I moved the whole /nvim dir to somewhere else before starting this. @tjdevries
This issue was happening in v8.1.0 and v8.0.0, I fixed it by installing v0.9.0-dev.

from kickstart.nvim.

tjdevries avatar tjdevries commented on June 13, 2024

Hm, 0.9 fixed it for you?

from kickstart.nvim.

TheYahya avatar TheYahya commented on June 13, 2024

yes

from kickstart.nvim.

tjdevries avatar tjdevries commented on June 13, 2024

Can you try with latest version of how we're initializing and running the servers? should be better now.

from kickstart.nvim.

TheYahya avatar TheYahya commented on June 13, 2024

Yes, thanks @tjdevries, the language server is fixed. But I still get this error in 0.8.1 version:

Screenshot 2022-12-25 at 12 03 00

from kickstart.nvim.

tjdevries avatar tjdevries commented on June 13, 2024

Have you run ":TSUpdate" in the old version?

from kickstart.nvim.

TheYahya avatar TheYahya commented on June 13, 2024

I think "yes". I can't be sure thought, hard to remember as I tried everything!

from kickstart.nvim.

tjdevries avatar tjdevries commented on June 13, 2024

Will close now cause I think all of this should be handled by Mason now.

from kickstart.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.