company-tabnine icon indicating copy to clipboard operation
company-tabnine copied to clipboard

json-read: JSON readtable error: 101

Open leiouli opened this issue 4 years ago • 5 comments

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 <fcntl.h>\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 <fcntl.h>\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 avatar May 29 '20 04:05 leiouli

my emacs is 26.3

leiouli avatar May 29 '20 04:05 leiouli

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

misha-krainik avatar Nov 27 '20 15:11 misha-krainik

I'm running into this issue as well

Chili-Man avatar Nov 29 '20 00:11 Chili-Man

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

GTrunSec avatar Dec 05 '20 03:12 GTrunSec

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

misha-krainik avatar Dec 09 '20 16:12 misha-krainik