codota / tabnine-sublime

Tabnine Autocomplete AI: JavaScript, Python, TypeScript, PHP, C/C++, HTML/CSS, Go, Java, Ruby, C#, Rust, SQL, Bash, Kotlin, Julia, Lua, OCaml, Perl, Haskell, React
https://www.tabnine.com/install/sublime
MIT License
194 stars 36 forks source link

Don't show recommendation box #57

Closed konioyxgq closed 4 years ago

konioyxgq commented 4 years ago

My tabnine, seems to be running, but just doesn't show the recommendation box. What should I do?

konioyxgq commented 4 years ago

image image

amircodota commented 4 years ago

@konioyxgq What type of project do youhave? What programming language?

konioyxgq commented 4 years ago

python programming language

konioyxgq commented 4 years ago

I use python and C++ are the same situation.

amircodota commented 4 years ago

According to the log, it seems tabnine is working normally.

Can you open sublime console (ctrl+`), and see if there are errors on the sublime side?

konioyxgq commented 4 years ago

There's a little mistake, how it's going to be solved. Thank you so much! image

konioyxgq commented 4 years ago

Exception while interacting with TabNine subprocess: No JSON object could be decoded

amircodota commented 4 years ago

It seems the tabnine subprocess returns the wrong output, which causes the sublime plugin to kill and restart the subprocess.

Under where the sublime package is installed (different places for different oses) there's a TabNine.py file.

Can you find the line that says

print("Exception while interacting with TabNine subprocess:", e)

and change it to

print("Exception while interacting with TabNine subprocess:", e, result)

Then re-try to use tabnine, and check the sublime console again

konioyxgq commented 4 years ago

Exception while interacting with TabNine subprocess: No JSON object could be decoded failed to add counter 'tot_0': c0000bb8... image

amircodota commented 4 years ago

@konioyxgq

TabNine uses a library that prints out errors. Since TabNine to plugin communication is based on stdin/stdout, this messes up the protocol.

I'll try to reproduce internally and provide a fix.

amircodota commented 4 years ago

@konioyxgq I was not able to reproduce, but I have a pretty good handle of what is goind on, and I've made a fix.

Any chance I can provide you with a build of TabNine that you can test?

konioyxgq commented 4 years ago

OK!Thank you so much! Can you send me my e-mail? Or any other convenient way for you. My e-mail is xgqkonioy@gmail.com

konioyxgq commented 4 years ago

Thank you very much. Now TabNine is working. That's cool!

amircodota commented 4 years ago

@konioyxgq Glad to hear. The fix is already in beta, and should be released to all users within a few days,