Skip to content

Error sending prompt on canary release #181

@aweis89

Description

@aweis89

After updating to the latest canary Lazy update I get this error when sending a prompt:

Error executing luv callback:
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/copilot.lua:490: E5560: Vimscript function must not be called in a lua loop callback
stack traceback:
[C]: in function 'tempname'
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/copilot.lua:490: in function 'fn'
...are/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/utils.lua:58: in function 'join'
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/copilot.lua:536: in function 'embed'
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/context.lua:242: in function 'on_done'
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/copilot.lua:548: in function 'on_done'
...are/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/utils.lua:54: in function 'done'
...are/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/utils.lua:60: in function 'resolve'
...e/nvim/lazy/CopilotChat.nvim/lua/CopilotChat/copilot.lua:530: in function '_user_on_exit'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:240: in function '_shutdown'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:47: in function <.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:38>

There's also an issue with the write file function:

...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/copilot.lua:491: E5560: Vimscript function must not be called in a lua loop callback
stack traceback:
[C]: in function 'writefile'
...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/copilot.lua:491: in function 'fn'
/Users/aaron/dev/CopilotChat.nvim/lua/CopilotChat/utils.lua:58: in function 'join'
...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/copilot.lua:536: in function 'embed'
...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/context.lua:242: in function 'on_done'
...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/copilot.lua:548: in function 'on_done'
/Users/aaron/dev/CopilotChat.nvim/lua/CopilotChat/utils.lua:54: in function 'done'
/Users/aaron/dev/CopilotChat.nvim/lua/CopilotChat/utils.lua:60: in function 'resolve'
...s/aaron/dev/CopilotChat.nvim/lua/CopilotChat/copilot.lua:530: in function '_user_on_exit'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:240: in function '_shutdown'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:47: in function <.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:38>

Previous version is working when I revert this:

-  "CopilotChat.nvim": { "branch": "canary", "commit": "55722d7b3131ef6d2441e379d9c64c5991b0cf5c" },
+  "CopilotChat.nvim": { "branch": "canary", "commit": "a72ad269de9621a3df31afab281674b54ce3320b" },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions