TommyX12 / company-tabnine

A company-mode backend for TabNine, the all-language autocompleter: https://tabnine.com/
MIT License
686 stars 52 forks source link

json-read: JSON readtable error: 101 #35

Open leiouli opened 4 years ago

leiouli commented 4 years ago

Message TabNine process restart limit reached. TabNine server started. Company: An error occurred in auto-begin Company: backend company-tabnine error "Process company-tabnine--process not running" with args (prefix) error in process filter: json-read: JSON readtable error: 101 error in process filter: JSON readtable error: 101 TabNine process # received event "exited abnormally with code 126

M-x toggle-debug-on-error Debugger entered--Lisp error: (error "Process company-tabnine--process not running") process-send-string(# "{\"version\":\"1.0.14\",\"request\":{\"Autocomplete\":{\"before\":\"#inclcj\",\"after\":\"\n#include \\"apue.h\\"\n#include \nchar buf1[]=\\"abcdefghij\\";\nchar buf2[]=\\"ABCDEFGHIJ\\";\nint main(void)\n{\n int fd;\n if ((fd=creat(\\"file.hole\\",FILE_MODE)) < 0)\n err_sys(\\"creat error\\");\n if (write(fd,buf1,10) != 10)\n err_sys(\\"buf1 write error\\");\n if (lseek(fd,16394,SEEK_SET) == -1)\n err_sys(\\"lseek error\\");\n if (write(fd,buf2,10) != 10)\n err_sys(\\"buf2 wirte error\\");\n exit(0);\n}\n\",\"filename\":\"/usr/home/tu/.block/c/UNIX/3-2.c\",\"region_includes_beginning\":true,\"region_includes_end\":true,\"max_num_results\":10}}}\n") company-tabnine-send-request((:version "1.0.14" :request (:Autocomplete (:before "#inclcj" :after "\n#include \"apue.h\"\n#include \nchar buf1[]=\"abcdefghij\";\nchar buf2[]=\"ABCDEFGHIJ\";\nint main(void)\n{\n int fd;\n if ((fd=creat(\"file.hole\",FILE_MODE)) < 0)\n err_sys(\"creat error\");\n if (write(fd,buf1,10) != 10)\n err_sys(\"buf1 write error\");\n if (lseek(fd,16394,SEEK_SET) == -1)\n err_sys(\"lseek error\");\n if (write(fd,buf2,10) != 10)\n err_sys(\"buf2 wirte error\");\n exit(0);\n}\n" :filename "/usr/home/tu/.block/c/UNIX/3-2.c" :region_includes_beginning t :region_includes_end t :max_num_results 10)))) company-tabnine-query() company-tabnine--prefix() company-tabnine(prefix) apply(company-tabnine prefix) company-call-backend-raw(prefix) apply(company-call-backend-raw prefix) company--force-sync(company-call-backend-raw (prefix) company-tabnine) company-call-backend(prefix) company--begin-new() company--perform() company-auto-begin() company-idle-begin(#<buffer 3-2.c> #<window 3 on 3-2.c> 256 8) apply(company-idle-begin (#<buffer 3-2.c> #<window 3 on 3-2.c> 256 8)) timer-event-handler([t 24272 37450 304347 nil company-idle-begin (#<buffer 3-2.c> #<window 3 on 3-2.c> 256 8) nil 875000])

what can i do to solve the problem

leiouli commented 4 years ago

my emacs is 26.3

misha-krainik commented 3 years ago

Hello. The same for me, I reinstall it and doesn't help. After cleaned ~/.Tabnine folder and install company-tabnine-install-binary again whole process complete good but when execute company-tabine-restart-server after it, I got an error json-read: JSON readtable error: 101

Chili-Man commented 3 years ago

I'm running into this issue as well

GTrunSec commented 3 years ago

remove ~/.Tabnine and ~/.tabnine. make sure the config files of Tabnine in ~/.local/share/TabNine (Only one place ?)

misha-krainik commented 3 years ago

Hello. @GTrunSec I had executed the command below

$ rm ~/.Tabnine
rm: cannot remove '/home/user/.Tabnine': No such file or directory
$ rm ~/.tabnine
rm: cannot remove '/home/user/.tabnine': No such file or directory
$ ls ~/.local/share/TabNine
Medium.meta  models

everything is in place, but the error is still displayed