Skip to content

[Windows] 'Spawning language server with cmd' error #21

Description

@pidgeon777

When launching Neovim with Lunarvim config, I obtain this warning notification at startup:

Spawning language server with cmd: 'C:\nvim\data\lunarvim\site\pack\packer/opt/copilot.lua/index.js' failed with error message: UNKNOWN: unknown error

and no copilot suggestions are given when modifying a buffer.

OS: Windows 10 Pro

Neovim version:

NVIM v0.7.0-dev+1275-g00effff56
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilato da runneradmin@fv-az158-203

Features: -acl +iconv +tui
See ":help feature-compile"

   file vimrc di sistema: "$VIM\sysinit.vim"
         $VIM di riserva: "C:/Program Files/nvim/share/nvim"

Run :checkhealth for more info

packer.nvim config:

    {
      "zbirenbaum/copilot.lua",
      event = {"VimEnter"},
      after = "nvim-cmp",
      requires = {"zbirenbaum/copilot-cmp"},
      config = function()
        local cmp_source = { name = "copilot", group_index = 2 }
        table.insert(lvim.builtin.cmp.sources, cmp_source)
        vim.defer_fn(function()
          require("copilot").setup {
            plugin_manager_path = require("lvim.utils").join_paths(get_runtime_dir(), "site", "pack", "packer"),
          }
          end, 100)
      end,
    },

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