You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DEBUG] 2024-12-13 20:17:14
Inline instance created with ID 7942063
[DEBUG] 2024-12-13 20:17:14
Prompt to classify: { {
content = "<question>write hello world</question>",
role = "user"
} }
[INFO] 2024-12-13 20:17:14
Inline classification request started
[DEBUG] 2024-12-13 20:17:14
Authorizing GitHub Copilot token
[DEBUG] 2024-12-13 20:17:14
Reusing GitHub Copilot token
[INFO] 2024-12-13 20:17:14
Request body file: /tmp/nvim.root/WU3dx8/0.json
[DEBUG] 2024-12-13 20:17:14
Request:
{ "-sSL", "-D", "/tmp/plenary_curl_69104fb2.headers", "--compressed", "-X", "POST", "-H", "Content-Type: application/json", "-H", "Copilot-Integration-Id: vscode-chat", "-H", "Editor-Version: Neovim/0.11.0", "-d", "@/tmp/nvim.root/WU3dx8/0.json", "--no-buffer", "--silent", "https://api.githubcopilot.com/chat/completions" }
[INFO] 2024-12-13 20:17:15
Placement: "<add>"
[DEBUG] 2024-12-13 20:17:15
Determined position for output: {
bufnr = 1,
col = 0,
line = 2
}
[INFO] 2024-12-13 20:17:15
Inline request started
Health check output
==============================================================================
codecompanion: require("codecompanion.health").check()
- Neovim version: 0.11.0
- Log file: /root/.repro//state/nvim/codecompanion.log
Plugins: ~
- OK plenary.nvim installed
- OK nvim-treesitter installed
Tree-sitter parsers: ~
- OK markdown parser installed
- OK yaml parser installed
Libraries: ~
- OK curl installed
Describe the bug
In C++ buffer, :CodeCompanion inline strategy failed.
I think it's because it try to use context filetype to set diff buffer's filetype. But the C++ context filetype is "C++", not "cpp". This cause vim.api.nvim_set_option_value() failed.
Reproduce the bug
nvim --clean -u minimal.lua.
:edit hello.cpp.
:CodeCompanion write hello world
Final checks
I have made sure this issue exists in the latest version of the plugin
I have tested with the minimal.lua file from above and have shared this
I have shared the contents of the log file
The text was updated successfully, but these errors were encountered:
Your
minimal.lua
configError messages
Log output
Health check output
Describe the bug
In C++ buffer,
:CodeCompanion
inline strategy failed.I think it's because it try to use context filetype to set diff buffer's filetype. But the C++ context filetype is "C++", not "cpp". This cause
vim.api.nvim_set_option_value()
failed.Reproduce the bug
nvim --clean -u minimal.lua
.:edit hello.cpp
.:CodeCompanion write hello world
Final checks
minimal.lua
file from above and have shared thisThe text was updated successfully, but these errors were encountered: