tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 27 forks source link

CmpTabnineHubUrl show an adress with an ephemeral port , though config.json is set to 5555 #68

Closed allan-simon closed 2 years ago

allan-simon commented 2 years ago

i.e I got something like http://127.0.0.1:33271/sec-something

Edit : ok it's because I have two vim process opened

the weird thing is that this URL will work, while on my first vim, with the URL in 5555, the tabnine hub page is broken (javascript error message in the browser's console)

Note: I use it inside a docker container if that may provide additional context.

tzachar commented 2 years ago

This is the url returned from the process the plugin is connected to. I don't know if you can override this with tabnine's config. You should contact TabNine's team and ask.

allan-simon commented 2 years ago

Isn't because this plugin try to start an instance of tabnine without checking if one is already running ?

tzachar commented 2 years ago

The plugin always starts a new instance. Support a single instance is out of scope for this plugin.