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

Expected value but found invalid token at character 1 #415

Open
gammons opened this issue Sep 18, 2024 · 0 comments
Open

Expected value but found invalid token at character 1 #415

gammons opened this issue Sep 18, 2024 · 0 comments

Comments

@gammons
Copy link

gammons commented Sep 18, 2024

Hi there, I am trying to use CopilotChat.nvim. I think maybe the main difference is I am using packer.nvim as my package manager. I am installing Copilot chat like so:

  use {
    'CopilotC-Nvim/CopilotChat.nvim',
    branch = 'canary',
    requires = {
      'github/copilot.vim',
      'nvim-lua/plenary.nvim',
    }
  }

-- copilot chat
require("CopilotChat").setup({
   debug = true,
})

Then I run PackerSync and it looks like CopilotChat is installed correctly. (PackerSync is also making sure that all other libraries / dependencies are up-to-date as well)

Here is the output of checkhealth CopilotChat:

CopilotChat: require("CopilotChat.health").check()

CopilotChat.nvim [core] ~
- OK nvim: NVIM v0.10.1
  Build type: Release
  LuaJIT 2.1.1725453128
  Run ":verbose version" for more info

CopilotChat.nvim [commands] ~
- OK curl: curl 8.9.1 (x86_64-pc-linux-gnu) libcurl/8.9.1 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.63.0 nghttp3/1.5.0
  Release-Date: 2024-07-31
  Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
  Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
- OK git: git version 2.46.0

CopilotChat.nvim [dependencies] ~
- OK plenary: installed
- OK copilot: copilot.vim
- WARNING tiktoken_core: missing, optional for token counting. See README for installation instructions.
- OK treesitter[markdown]: installed
- OK treesitter[diff]: installed

However, if I try to enter a prompt into the window, or if I run CopilotChatExplain, I am getting the following error:

[CopilotChat.nvim] "Expected value but found invalid token at character 1

Any help to debug would be greatly appreciated. Thanks!

@gammons gammons changed the title Expected valuue but found invalid token at character 1 Expected value but found invalid token at character 1 Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant