sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

attempt to index local 'location' error

Open kapral18 opened this issue 1 year ago • 10 comments

image

I don't have anything special in my config except just the plugin string for sg.nvim on top of latest lazyvim distro

kapral18 avatar Mar 02 '24 22:03 kapral18

Can you run :checkhealth sg for me? And please update to latest plugin, I just pushed some pretty big changes

tjdevries avatar Mar 12 '24 15:03 tjdevries

@tjdevries image

and for reference https://github.com/kapral18/dotfiles/blob/3b2e742c50c36c4d6d4e284af8bb9b8b90c2b3cd/home/dot_config/exact_nvim/exact_lua/exact_plugins/ai.lua#L105

kapral18 avatar Mar 12 '24 15:03 kapral18

The error is still happening?

tjdevries avatar Mar 12 '24 16:03 tjdevries

@tjdevries yepp

kapral18 avatar Mar 12 '24 18:03 kapral18

Can you run :checkhealth sg for me? And please update to latest plugin, I just pushed some pretty big changes

I noticed and I tried. I also nuked nvim instance with cache and state folders to make sure it's not affecting.

Still the same result unfortunately

kapral18 avatar Mar 12 '24 19:03 kapral18

Does this PR fix your problem? https://github.com/sourcegraph/sg.nvim/pull/221

tjdevries avatar Mar 14 '24 15:03 tjdevries

PR removes the error output, but going to definition still doesn't work

kapral18 avatar Mar 15 '24 01:03 kapral18

Also seeing this. Just logging the error in textDocument/definition gives: 'RPC[Error] code_name = ParseError, message = "No corresponding code intelligence"'. Some extra context that may or may not be relevant is that my sg url is not the default one.

amazr avatar Apr 09 '24 17:04 amazr

I am also seeing this error with the default sourcegraph url and my health check looks healthy. Happy to give any extra info!

image

daniel-hernandez-sony avatar Jun 04 '24 15:06 daniel-hernandez-sony