monkoose / neocodeium

free AI completion plugin for neovim
MIT License
233 stars 10 forks source link

Expected value but found T_END at character 1 #40

Closed yingmanwumen closed 1 month ago

yingmanwumen commented 1 month ago

👎 Problem

Invalid response from server
stderr: { "  % Total    %", " Received % X", "fer", "d  A", "ver", "age ", "Sp", "ee", "d", "  ", " T", "i", "me ", " ", "  ", "T", "ime", "     Time  Current\n        ", "          ", "   ", "   ", "  ", "  ", "  ", " ", " ", " D", "load  Upload", "   Total", "   S", "pe", "nt ", "  ", " Lef", "t  ", "Sp", "e", "ed", "\n", "\r  0", "   ", " ", " ", "0", "    ", "0  ", "   ", "0 ", "   ", "0 ", " ", "   ", "0", "  ", " ", "  ", " 0", "  ", "   ", " 0", " -", "-:--", ":--", " -", "-", ":", "--:", "--", " -", "-", ":", "--", ":", "-- ", "  ", "  ", "0", "\r  0     0 ", "   0", "   ", "  ", "0 ", "  ", " 0", "  ", "  ", " 0", "   ", "  ", " 0", "  ", " ", "  ", " ", "0 ", "--:-", "-:", "-", "- -", "-:--", ":-", "- -", "-:", "--", ":-", "- ", "  ", " ", " ", "0\n", "curl", ": ", "(7", ") F", "ail", "ed ", "to ", "con", "ne", "c", "t t", "o ", "1", "27", ".0.", "0.", "1 ", "por", "t 7", "890 ", "after", " 0 ms", ": ", "Co", "ul", "dn", "'t", " c", "o", "nne", "ct ", "to ", "se", "rver", "\n" }
Expected value but found T_END at character 1
stack traceback:
    .../share/nvim/lazy/neocodeium/lua/neocodeium/completer.lua:569: in function 'handle_response'
    .../share/nvim/lazy/neocodeium/lua/neocodeium/completer.lua:676: in function 'on_exit'
    ...cal/share/nvim/lazy/neocodeium/lua/neocodeium/server.lua:229: in function <...cal/share/nvim/lazy/neocodeium/lua/neocodeium/server.lua:224>
Invalid response from server

🔢 Steps to reproduce

Do the steps described above, and open a random code file. After entering insert mode, there's no visual text or something else from this plugin. Open logs with NeoCodeium open_log to observe the output. The content of logs is shown above.

👍 Expected behavior

Expect this plugin can work normally and give some coding tips.

Neovim version (nvim -v)

v0.10.2

Operating system (uname -om)

macOS arm64

:checkhealth neocodeium

OK

Relevant log output

==============================================================================
neocodeium: require("neocodeium.health").check()

System information: ~
- *macos* *(arm)*
  If it is not correctly detected, then consider to report a bug at
  https://github.com/monkoose/neocodeium/issues

Checks: ~
- OK *curl* is installed
- OK *API* *key* is present
- OK *Server* *binary* exists: ~/.codeium/bin/1.14.12/language_server_macos_arm
- OK *Server* is running on port 52590 with pid 41847
yingmanwumen commented 1 month ago

It is caused by my proxy settings. After swiching to another proxy agent, the problem solved.