Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_credentials error when logging in with neovim #229

Open
OZoneGuy opened this issue Mar 31, 2024 · 2 comments
Open

set_credentials error when logging in with neovim #229

OZoneGuy opened this issue Mar 31, 2024 · 2 comments

Comments

@OZoneGuy
Copy link

Going through the setup guide in the README, I get this error when I run :SourcegraphLogin:

Failed to save credentials - Please report this error: set_credentials

At this URL: http://localhost:52068/api/sourcegraph/token?token=XXX.

I am using Firefox and on Arch Linux.

I tried disabling enhanced tracking protection, but still failed. It does create the token successfully.

Is there a place I can add the token manually, or do I need to add it as an env variable?

Please let me know if you need more information.

@Cheezmeister
Copy link

Same setup. Same results. Has anyone found a workaround?

@hrutvikyadav
Copy link

hrutvikyadav commented Aug 16, 2024

I am on Ubuntu 22.04(WSL2), I have set the env variables SRC_ENDPOINT and SRC_ACCESS_TOKEN.

I got the same error in browser after SourceGraphLogin; however login is successful(I verified with :checkhealth sg) and I can open sourcegraph URLs in neovim with :edit <URL>.
I am still facing issues with code intelligence though.

  • gr shows sourcegraph: -32700: lsif
  • K shows sourcegraph: -32700: No corresponding code intelligence
  • gd shows
    Error executing vim.schedule lua callback: 
    ...tvik_/.local/share/nvim/lazy/sg.nvim/lua/sg/lsp/init.lua:19: attempt to index local 'location' (a nil value)
    stack traceback:
          ...tvik_/.local/share/nvim/lazy/sg.nvim/lua/sg/lsp/init.lua:19: in function 'preload_file'
          ...tvik_/.local/share/nvim/lazy/sg.nvim/lua/sg/lsp/init.lua:81: in function 'handler'
          ...t/nvim-linux64/share/nvim/runtime/lua/vim/lsp/client.lua:685: in function ''
          vim/_editor.lua: in function <vim/_editor.lua:0>
    
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants