Skip to content

[Bug] commit 25ab971 has introduced bug #386

@yingmanwumen

Description

@yingmanwumen

This commit works fine with me:

commit 330ffb9630509cd0cd56815c6e667bc497ec82f4 (HEAD)
Author: Antoine Gaudreau Simard <antoineg.simard@gmail.com>
Date:   Thu Mar 20 20:21:50 2025 -0400

    Warning cleanup (#381)
    
    * refactor: resolve most Lua LSP warnings, leaving the unpack one for now as it seems to break the auth popup

While this introduced bug

commit 25ab971cb0badf3185d29f68a360c37b48d4e783 (HEAD)
Author: Antoine Gaudreau Simard <antoineg.simard@gmail.com>
Date:   Thu Mar 20 21:32:09 2025 -0400

    feat: add support for dynamic root_dir resolving  (#382)
    
    the configuration supports overriding the default function as root_dir, with a fallback to the current directory.
    fixes #371

Error message:

Error executing vim.schedule lua callback: ...local/share/nvim/lazy/copilot.lua/lua/copilot/client.lua:24: unexpectedly started multiple copilot servers
stack traceback:
	[C]: in function 'error'
	...local/share/nvim/lazy/copilot.lua/lua/copilot/client.lua:24: in function 'store_client_id'
	...local/share/nvim/lazy/copilot.lua/lua/copilot/client.lua:118: in function 'buf_attach'
	...local/share/nvim/lazy/copilot.lua/lua/copilot/client.lua:321: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>

If I update to the latest commit(master branch), it comes with:

Image

My config:

{
  "zbirenbaum/copilot.lua",
  event = "InsertEnter",
  cmd = "Copilot",
  config = function()
    require("copilot").setup({
      suggestion = { enabled = false },
      panel = { enabled = false },
    })
  end,
  -- enabled = false,
}

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