Hello
context
For example on this repository: https://gitlab.gnome.org/GNOME/gnome-shell
% ls -l README.md NEWS fix
-rw-r--r-- 1 max users 892 9 févr. 2021 fix
-rw-r--r-- 1 max users 234K 9 févr. 2021 NEWS
-rw-r--r-- 1 max users 1,2K 9 févr. 2021 README.md
prompt examples
Here are some prompts, taken secondes/minutes apart, without any modification to any file or conf.
Each prompt was taken with a fresh neovim process (quit and reopen neovim between each prompt).
file and buffer doesn't work
## User
##file://README.md
what's the last line of the README ?
## Copilot
The last line of the README is empty (a blank line).
## User
##file:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/README.md
## Copilot
The last line of the README is blank (an empty line).
## User
##buffer:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/README.md
## Copilot
The last line of the README is blank (an empty line).
buffer works
## User
##buffer:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/README.md
what's the last line of the README ?
## Copilot
The last line of the README is:
[license]: COPYING
file doesn't work
## User
##file://README.md
what's the last line of the README ?
## Copilot
The last line of the README is empty (a blank line).
file doesn't work, buffer works
## User
##buffer:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/README.md
what's the last line of the README ?
## Copilot
The last line of the README is:
[license]: COPYING
## User
File not found: fix
(redacted: ↑ I wrote `#file:fix`)
│what's the last line of the "fix" file ?
## Copilot
There is no file named "fix" in the current directory, so I cannot provide its last line.
## User
##buffer:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/fix
## Copilot
The last line of the "fix" file is:
23:10:56 gnome-shell[1304]: _onSessionCompleted end
file doesn't work
## User
File not found: /home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/fix
(redacted: ↑ I wrote `#file:/home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/fix`)
what's the last line of the "fix" file ?
## Copilot
There is no file named "fix" in /home/max/Documents/repositories/gitlab.gnome.org/gnome-shell, so I cannot provide its last line. If you create the file or specify a different file, I can help further.
buffer doesn't work
## User
##buffer:///home/max/Documents/repositories/gitlab.gnome.org/gnome-shell/NEWS
what's the first line of NEWS ?
## Copilot
The first line of NEWS is:
GNOME Shell News
(redacted: ↑ it's not… the real first line is "40.alpha.1.1")
notes
As you can see it's somewhat strange.
Sometimes it works, sometimes it doesn't.
I thinks the size of the file might explain why copilot never displayed the right answer for the NEWS file.
(it's responding too fast, I think, it doesn't get the full 234K, so he is hallucinating)
There is no error in the CopilotChat.log (in trace log level):
% grep -i error /home/max/.local/state/nvim/CopilotChat.log | grep -v 'errors or search result'
%
Here is my LazyVim conf (I disabled copilot.lua to be sure it wasn't the culprit):
==> /home/max/.config/nvim/lua/plugins/CopilotChat.lua <==
return {
{
"CopilotC-Nvim/CopilotChat.nvim",
dependencies = {
{ "nvim-lua/plenary.nvim", branch = "master" },
},
build = "make tiktoken",
opts = {
window = {
},
log_level = 'trace',
},
},
{
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {}
},
}
==> /home/max/.config/nvim/lua/plugins/copilot.lua <==
return {
}
I can give you some logs if you want.
GitHub Copilot Business is active on my account.
note: I am a total noob on CopilotChat and somewhat neovim plugins and such (I installed & configured LazyVim only last week, to install CopilotChat… and it took me some times).
Do you have any idea on what's going on ?
Regards
Hello
context
For example on this repository: https://gitlab.gnome.org/GNOME/gnome-shell
prompt examples
Here are some prompts, taken secondes/minutes apart, without any modification to any file or conf.
Each prompt was taken with a fresh neovim process (quit and reopen neovim between each prompt).
file and buffer doesn't work
buffer works
file doesn't work
file doesn't work, buffer works
file doesn't work
buffer doesn't work
notes
As you can see it's somewhat strange.
Sometimes it works, sometimes it doesn't.
I thinks the size of the file might explain why copilot never displayed the right answer for the
NEWSfile.(it's responding too fast, I think, it doesn't get the full 234K, so he is hallucinating)
There is no error in the CopilotChat.log (in
tracelog level):Here is my LazyVim conf (I disabled
copilot.luato be sure it wasn't the culprit):I can give you some logs if you want.
GitHub Copilot Business is active on my account.
note: I am a total noob on CopilotChat and somewhat neovim plugins and such (I installed & configured LazyVim only last week, to install CopilotChat… and it took me some times).
Do you have any idea on what's going on ?
Regards