Open allenabraham777 opened 5 days ago
Is it the latest version?
I can reproduce this as well. Update config just now.
Is it the latest version?
I upgraded it to the latest version and still the bug exists.
am having the same issue
Did any of you try looking through other recent already reported issues? https://github.com/yetone/avante.nvim/issues/612#issuecomment-2375729928
I had issue when repo map becomes too big, I saw that lsp-ai has chunked thing. Does that help?
Also c/c++ query doesn't seem to work during my tests
You can turn on the debug mode to check the curl body:
opts = {
debug = true,
},
The context is never taken I guess, this is what I can see in :messages
E5108: Error executing lua:
When I'm over neo-tree preview and none of the files are open, I get the following message
E5108: Error executing lua: ...ocal/share/nvim/lazy/avante.nvim/lua/avante/repo_map.lua:58: attempt to concatenate local 'file_ext' (a nil value)
stack traceback:
...ocal/share/nvim/lazy/avante.nvim/lua/avante/repo_map.lua:58: in function 'get_repo_map'
...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1271: in function 'handle_submit'
...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1328: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1318>
Most likely your language is not supported. If you enable debug mode as suggested you might see something like:
The repo map is empty. Maybe do not support this language: lua
It is also important to understand how this whole thing works. The @codebase
will not inject the repo map into the question itself, it will fill the project context part of the request.
Here is a summary of the request which you can debug by typing :messages
:
[2024-10-09 11:03:02] [AVANTE] [DEBUG] user prompts: { the object being sent }
The object consists of these keys:
@codebase
]The @codebase
will inject the repo_map, if supported, into PROJECT CONTEXT
.
Try it out with a go
project for example, it worked for me.
EDIT: I noticed after writing that this issue is about being stuck at generated response, so what I said is not relevant to your specific problem. I have the latest version btw and I don't face this issue.
Describe the bug
I'm trying to provide a prompt by keeping the
@codebase
context. The code response tab shows nothing but just 'Generating response ....' forever.Can I know what should be done in order to take the whole codebase as context and work over it?
To reproduce
Expected behavior
The response tab should give some response based on the codebase.
Installation method
Use lazy.nvim:
Environment
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478
macOS 15.0 24A335 arm64 (M1 chip)
Repro