Open john-persson-polestar opened 1 day ago
I can also add that I'm getting this error when asking a questions when there is no open buffer:
Error 23:05:08 msg_show.emsg E5108: Error executing lua: ...ocal/share/nvim/lazy/avante.nvim/lua/avante/repo_map.lua:77: attempt to concatenate local 'file_ext' (a nil value)
stack traceback:
...ocal/share/nvim/lazy/avante.nvim/lua/avante/repo_map.lua:77: in function 'get_repo_map'
...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1409: in function 'handle_submit'
...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1488: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1478>
Error 23:05:10 msg_show.lua_error Error executing vim.schedule lua callback: ...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: attempt to index local 'node' (a number value)
stack traceback:
...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: in function 'get_checkbox'
...r-markdown.nvim/lua/render-markdown/render/list_item.lua:33: in function 'setup'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:80: in function 'callback'
...ender-markdown.nvim/lua/render-markdown/core/context.lua:190: in function 'query'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:76: in function 'parse'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:215: in function 'parse_tree'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:185: in function 'parse_buffer'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:122: in function 'run_update'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:88: in function <...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:87>
Error 23:05:10 msg_show.lua_error Error executing vim.schedule lua callback: ...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: attempt to index local 'node' (a number value)
stack traceback:
...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: in function 'get_checkbox'
...r-markdown.nvim/lua/render-markdown/render/list_item.lua:33: in function 'setup'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:80: in function 'callback'
...ender-markdown.nvim/lua/render-markdown/core/context.lua:190: in function 'query'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:76: in function 'parse'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:215: in function 'parse_tree'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:185: in function 'parse_buffer'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:122: in function 'run_update'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:88: in function <...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:87>
Error 23:05:20 msg_show.lua_error Error executing vim.schedule lua callback: ...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: attempt to index local 'node' (a number value)
stack traceback:
...ender-markdown.nvim/lua/render-markdown/core/context.lua:85: in function 'get_checkbox'
...r-markdown.nvim/lua/render-markdown/render/list_item.lua:33: in function 'setup'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:80: in function 'callback'
...ender-markdown.nvim/lua/render-markdown/core/context.lua:190: in function 'query'
...r-markdown.nvim/lua/render-markdown/handler/markdown.lua:76: in function 'parse'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:215: in function 'parse_tree'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:185: in function 'parse_buffer'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:122: in function 'run_update'
...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:88: in function <...azy/render-markdown.nvim/lua/render-markdown/core/ui.lua:87>
@john-persson-polestar It seems that your Avante is not the latest version. Can you upgrade to the latest version and try again?
@yetone thank you for the quick response. I'm on the latest version (SHA: 341ecd207348841403ee4c2473864ef5c74ab710).
Describe the bug
I'm trying to chat with the codebase using
@codebase
, however Avante seams to have no context of file other than the on in my current buffer.I.e. when asking about files that are imported in the current buffer, they are not in the context of Avante.
and when I ask how to include them I will get the following answer:
// content of the SectionId file would go here
Environment
Repro