Giter VIP home page Giter VIP logo

coc-tabnine's Introduction

coc-tabnine

Fork of tabnine-vscode

This is the coc.nvim client for Tabnine, the all-language autocompleter.

  • Indexes your whole project, reading your .gitignore to determine which files to index.
  • Type long variable names in just a few keystrokes using the mnemonic completion engine.
  • Zero configuration. Tabnine works out of the box.
  • Highly responsive: typically produces a list of suggestions in less than 10 milliseconds.

Install

In your vim/neovim, run command:

:CocInstall coc-tabnine

Commands

Run :CocCommand to open commands list.

  • tabnine.openConfig: open config file of Tabnine.

  • tabnine.openHub: open Tabnine hub.

Note: to make coc.nvim works better with Tabnine, add "ignore_all_lsp": true to config file of Tabnine.

Configuration

Use command :CocConfig to open user configuration file of coc.nvim.

Option Description Default value
tabnine.shortcut Shortcut for Tabnine source. "TN"
tabnine.triggers Trigger characters of Tabnine source. []
tabnine.priority Priority of Tabnine source 999
tabnine.binary_path Use binary at specific path. ""
tabnine.disable_filetypes Disable Tabnine for configured filetypes. []
tabnine.disable_file_regex Disable Tabnine when the file path contains a match of any of the provided regexes. For example, add "[.]js\$" to disable Tabnine in JavaScript files. []
tabnine.disable_line_regex Disable Tabnine when the current line contains a match of any of the provided regexes. For example, add "require" to disable Tabnine when the current line contains the word require. []

Magic Strings

Configure Tabnine itself by inputting a special_commands string_ like Tabnine::config or Tabnine::restart in any buffer and trigger autocomplete. A full list of available special_commands is available here: https://www.tabnine.com/faq#special_commands

API Key

This library does not configure Tabnine's Pro API key, if you've purchased a subscription license. To configure, you'll need to use the Tabnine::config magic string to update your preferences.

Note: An API key is not required to use coc-tabnine.

License

MIT

coc-tabnine's People

Contributors

bilucodota avatar chemzqm avatar dependabot[bot] avatar dimacodota avatar sigmasd avatar sqve avatar thinkjrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coc-tabnine's Issues

Tabnine binary path name changed

Hi,
TabNine changed the path from "x86_64-unknown-linux-gnu" to "x86_64-unknown-linux-musl"

so coc does not pick up the latest models and just downloads them..

neovim error

[coc.nvim] error: Uncaught exception: Error: spawn /Users/admin/.config/coc/extensions/coc-tabnine-data/binaries/2.5.1/x86_64-apple-darwin/TabNine EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Press ENTER or type command to continue

I have TabNine installed local, In my Neovim, it reports this code:
What can i do for it?

Specify custom TabNine version

The current TabNine version 2.1.20 consumes drastic amounts of CPU and RAM. When typing, it is always near 100% CPU and takes up about 1.5 GB of ram in a single file (As I just began using TabNine I am not sure how much usage is normal, but this seems to be too much)

This Issue is not new and seemed to occur repeatedly throughout the versions as seen in this thread.

Is it be possible to specify which version of TabNine could be used?

TabNine won't work if you use x86 Node.js on Windows

Not really a bug, but it took me a while to figure out what's wrong so it may be useful to someone else. It installs absolutely & fine the settings work in CocConfig, yet no commands exist nor does the autocompletion work.

tabnine.openConfig error: Cannot read property 'on' of undefined

Here are the error messages
CocInfo:

## versions   
              
vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
node version: v10.19.0
coc.nvim version: 0.0.78-57637bb44c
term: dumb    
platform: linux
              
## Output channel: vimlsp
              
events.js:174 
      throw er; // Unhandled 'error' event
      ^       
              
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at process.target.send (internal/child_process.js:636:16)
    at t.process.on.i.pipe.subscribe.process.send.msglog [as _next] (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:49:146271)
    at t.__tryOrUnsub (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:34:62809)
    at t.next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:34:61916)
    at t._next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:34:60946)
    at t.next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:34:60617)
    at t._next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:49:55668)
    at t.next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:34:60617)                                                                                                                                               
    at t.notifyNext (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:49:45139)
    at t._next (/home/ubuntu/.config/coc/extensions/node_modules/coc-vimlsp/out/scan.js:49:40619)
Emitted 'error' event at:
    at process.nextTick (internal/child_process.js:640:35)
    at process._tickCallback (internal/process/next_tick.js:61:11)

vim version:

:version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
Included patches: 1-2269
Modified by [email protected]
Compiled by [email protected]
Huge version without GUI.  Features included (+) or not (-):
+acl               +cindent           +cursorshape       +file_in_path      +jumplist          +mksession         +mouse_xterm       +printer           +sound             +terminal          +virtualedit       -xim
+arabic            -clientserver      +dialog_con        +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +spell             +terminfo          +visual            -xpm
+autocmd           -clipboard         +diff              +float             +lambda            +mouse             +multi_lang        -python            +startuptime       +termresponse      +visualextra       -xsmp
+autochdir         +cmdline_compl     +digraphs          +folding           +langmap           -mouseshape        -mzscheme          +python3           +statusline        +textobjects       +viminfo           -xterm_clipboard
-autoservername    +cmdline_hist      -dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          -sun_workshop      +textprop          +vreplace          -xterm_save
-balloon_eval      +cmdline_info      -ebcdic            +fork()            +linebreak         +mouse_gpm         +num64             +reltime           +syntax            +timers            +wildignore
+balloon_eval_term +comments          +emacs_tags        +gettext           +lispindent        -mouse_jsbterm     +packages          +rightleft         +tag_binary        +title             +wildmenu
-browse            +conceal           +eval              -hangul_input      +listcmds          +mouse_netterm     +path_extra        -ruby              -tag_old_static    -toolbar           +windows
++builtin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         -perl              +scrollbind        -tag_any_white     +user_commands     +writebackup
+byte_offset       +cscope            +extra_search      +insert_expand     -lua               -mouse_sysmouse    +persistent_undo   +signs             -tcl               +vartabs           -X11
+channel           +cursorbind        -farsi             +job               +menu              +mouse_urxvt       +postscript        +smartindent       +termguicolors     +vertsplit         -xfontset
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-iU6mZD/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthre
ad -ldl -lutil -lm -lm

Interferes with Results from coc-emoji

I installed coc-tabnine yesterday and noticed that, while typing : still triggers results for coc-emoji, emoji results are removed from the list upon typing any other characters. Disabling coc-tabnine and restarting nvim seems to resolve the issue.

I'm not sure if this is an issue with coc-tabnine, an issue with coc-emoji, or if it's simply a configuration probably on my end. I've tried setting coc.source.emoji.priority to various values (0 and 200) to see if it made a difference and it did not.

coc-tabnine has very few complementary candidates compared to deoplete-tabnine

When using tabnine for completion, the completion function is weaker in coc than in deoplete, so it's very difficult to use it.
I checked the Logs on the Config screen, but it was very difficult to use and I couldn't see the logs properly.

Attached is an image of the comparison below.
The left one is deoplete and the right one is coc.

スクリーンショット 2020-10-18 18 39 36
スクリーンショット 2020-10-18 18 41 43
スクリーンショット 2020-10-18 18 42 49
スクリーンショット 2020-10-18 18 43 32

Apple M1 Support

Hi, folks

Amir from tabnine here.

We have recently released support the new for Apple M1 processors.
This requires some changes on the plugin side too.

We've updated the how to write a plugin document.
We also implemented it in various other plugins, so you can check it out to get inspiration :-)

vscode
sublime
intellij
vim

Note that supporting m1 when the editor is run nativelyon arm is usually pretty straight forward. However, supporting a case where the editor is running on the Rosetta translator is a little more complex (see this).

TypeError: (intermediate value).trim is not a function

versions

vim version: NVIM v0.4.4
node version: v14.15.1
coc.nvim version: 0.0.79-3658eda4fa
coc.nvim directory: /Users/nzlov/.config/nvim/plugged/coc.nvim
term: iTerm.app
platform: darwin
coc-tabnine: 1.2.2

Log of coc.nvim

2020-11-27T17:27:45.126 INFO (pid:64216) [services] - registered service "highlight"
2020-11-27T17:27:45.178 INFO (pid:64216) [language-client-index] - highlight started with 64219
2020-11-27T17:27:45.231 INFO (pid:64216) [model-fetch] - Using proxy http://127.0.0.1:1087/ from system environment for update.tabnine.com:
2020-11-27T17:27:45.687 WARN (pid:64216) [attach] - Plugin not ready when received "highlight" []
2020-11-27T17:27:46.762 ERROR (pid:64216) [extensions] - Error on active extension coc-tabnine: TypeError: (intermediate value).trim is not a function
    at Function.<anonymous> (/Users/nzlov/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:420:92)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/nzlov/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:95:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) TypeError: (intermediate value).trim is not a function
    at Function.<anonymous> (/Users/nzlov/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:420:92)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/nzlov/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:95:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
2020-11-27T17:27:46.768 INFO (pid:64216) [plugin] - coc.nvim 0.0.79-3658eda4fa initialized with node: v14.15.1 after 1775ms

coc-tabine does not support arm64.

Platform info

versions

vim version: NVIM v0.4.3
node version: v12.16.3
coc.nvim version: 0.0.75-89c0c2380b
term: xterm-256color
platform: android

Messages

[coc.nvim] Error on active extension coc-tabnine: Error: Sorry, the architecture 'arm64' is not supported by TabNine.
at Function.getArchAndPlatform (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:468:23)
at Function. (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:421:45)
at Generator.next ()
at fulfilled (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:95:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
8 fewer lines

8 more lines; before #1 3 seconds ago

CocOpenLog info

2020-04-30T09:22:50.851 INFO (pid:5843) [services] - registered service "eslint"
2020-04-30T09:22:52.107 INFO (pid:5843) [model-fetch] - fetch: https://update.tabnine.com/version
2020-04-30T09:22:52.365 INFO (pid:5843) [plugin] - coc 0.0.75-89c0c2380b initialized with node: v12.16.3
2020-04-30T09:22:53.657 ERROR (pid:5843) [extensions] - Error: Sorry, the architecture 'arm64' is not supported by TabNine.
at Function.getArchAndPlatform (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:468:23)
at Function. (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:421:45)
at Generator.next ()
at fulfilled (/data/data/com.termux/files/home/.config/coc/extensions/node_modules/coc-tabnine/lib/index.js:95:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Getting EACCES error when running CocCommand tabnine.openConfig

[coc.nvim] error: Uncaught exception: Error: spawn /Users/mcchris/.config/coc/extensions/coc-tabnine-data/binaries/2.1.17/x86_64-apple-darwin/TabNine EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

can't tab complete past last word character

I want to use tab to cycle suggestions and to complete, so I copypasted coc.nvim's sample code into my init.vim. Relevant section:

" Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
inoremap <silent><expr> <TAB>
      \ pumvisible() ? "\<C-n>" :
      \ <SID>check_back_space() ? "\<TAB>" :
      \ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"

function! s:check_back_space() abort
  let col = col('.') - 1
  return !col || getline('.')[col - 1]  =~# '\s'
endfunction

Pressing tab completes all the [A] suggestions, but not the [TN] ones.

Allow specifying tabnine executable path

Hello,

I don't want this extension to manage downloading the tabnine executable. I think it's a nice service to offer, but I would prefer to download my own executable, put it in a common folder and use it for multiple editors. That way I only need to update one file to update tabnine.

Background:
Currently, https://update.tabnine.com/version returns 2.0.4, so coc-tabnine downloads it. But the version is not stable, and segfaults on my system. I don't know why unstable version is mentioned in that file, but even the tabnine auto-update does not update from 2.0.2 to 2.0.4. So it seems like a bad idea to use that URL.

(I fixed the problem by manually downloading version 2.0.2, and placing it in the coc-tabnine-data directory, so I don't need assistance to get anything running).

Errors with installation

Hello,

I'm running NVIM v0.4.0-1155-gc62690ccc on MacOS Mojave. I'm using the latest version of coc with coc-tabline, and encountering a few issues.

After I installed the extension, and open source code in nvim I got an EACCESS error regarding the TabNine binary. It did not have executable permissions after installation. (chmod +x)

Typing TabNine does not trigger completion.

I've issued :CocCommand tabnine.openConfig but nothing happens.

I checked :messages, and I have the following several times.
source tabnine timeout after 2000ms

The Readme mentions setting "ignore_all_lsp": true in the tabnine configuration. Would you mind clarifying this? Does it go in CocConfig?

Thanks

error at launch

As soon as I open neovim and start typing something, I get this error:
Screenshot 2020-12-08 at 07 40 29.

vim version: NVIM v0.5.0-7e0e0782a
node version: v15.3.0
coc.nvim version: 0.0.79-9eb7e5b2ae
coc-tabnine version: 1.2.3

Attempting to install via Yarn leads to an infinite loop

So, I've got coc-tabnine installed via vim-plug:

Plug 'neoclide/coc-tabnine', {'do': 'yarn install --frozen-lockfile'}

Unfortunately, attempting to actually run yarn install --frozen-lockfile yields an infinite loop, where I'm repeatedly asked by npx webpack whether I want to install webpack-cli:

https://asciinema.org/a/qSblKmGWlFvBNAHBxzeXToWzG

Not sure what's up with this, hope this report is helpful. Perhaps I am doing something wrong!

Tabnine activation

I bought a license for myself, however I can't activate it with my coc-tabnine.
Error message:

Error saving your changes: The provided key is not listed as valid in our records.

What should I do to fix this?
Best

can't use tabnine

when I type tabnine.openConfig
it shows:

[coc.nvim] error: Uncaught exception: Error: spawn /home/zxr/.config/coc/extensions/coc-tabnine-data/binaries/2.0.4/x86_64-unknown-linux-gnu/TabNi
ne EACCES
[coc.nvim] error:     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
[coc.nvim] error:     at onErrorNT (internal/child_process.js:415:16)
[coc.nvim] error:     at process._tickCallback (internal/process/next_tick.js:63:19)
[coc.nvim] Command error: Cannot read property 'on' of undefined

and the size of the tabnin's binary is only 1.7MB.
here is my cocinfo :

## versions

vim version: vim - vi improved 8.1 (2018 may 18, compiled jul 31 2019 10:22:31)
node version: v10.16.0
coc.nvim version: 0.0.73-baa3b1f169
term: dumb
platform: linux

## messages
messages maintainer: bram moolenaar <[email protected]>
"~/.vim/vimrc" 354l, 8389c
[coc.nvim] error: uncaught exception: error: spawn /home/zxr/.config/coc/extensions/coc-tabnine-data/binaries/2.0.4/x86_64-unknown-linux-gnu/TabNine EACCES
[coc.nvim] error:     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
[coc.nvim] error:     at onErrorNT (internal/child_process.js:415:16)
[coc.nvim] error:     at process._tickCallback (internal/process/next_tick.js:63:19)
[coc.nvim] Command error: Cannot read property 'on' of undefined

Add support to Freebsd OS

Hi,

The tabnine binary for linux working good with freebsd. So, Could you please add support to freebsd.

Clean old TabNine binaries

TabNine updates quite frequently, and this could leave lots of old binaries in coc-tabnine-data.
I suggest cleaning old TabNine binaries after downloading a new version.

TabNine::version not working

When trying to perform the version test by typing in TabNine::version I get TabNine to complete, but not version and the version info is not displayed.

Moreover, my config shows version 1.0.10, which is outdated.

Unable to configure TabNine

Hey 👋,

I'm getting coc-tabnine to install and it downloads the 2.0.4 binary. The autocomplete works fine but I'm unable to properly configure it, license key / beta access etc. CocCommand tabnine.openConfig just gives me an empty JSON file and TabNine::config does nothing.

I'm very confused on how I'm supposed to configure TabNine / coc-tabnine. All help appreciated! ❤️

Cannot open :Command tabnine.openConfig

hi.

I install coc.nvim and coc-tabnine and execute CocCommand tabnine.openConfig.
But cannot open TabNine's config(nothing response).

I tried Tabnine with deoplete.
It can use Tabnine.

Please teach me how to setting.

env

OS : MacOS Mojave
NVIM v0.5.0-23-gafd576ee9

minimal setting

if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
        \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
call plug#end()

Conflict with coc-java

tabnine-conflict-java

  1. type System
  2. use <c-j> to select one provide by [LS]
  3. press <tab>
  4. there is trailing chars "yst"

work as expected when remove coc-tabnine

using:
vim version: NVIM v0.4.0-2921-gf3cb52977
node version: v10.16.2
coc.nvim version: 0.0.74
os: mac

Support new TabNine 2.0.2

Deep TabNine

This plugin only supports version 1.x, even when I attempt to force an update.

If you need any help with this, perhaps I can be useful here - let me know.

Need to update the download process to use the latest version of TabNine

TabNine has updated there download script last year November dl_binaries.sh

Mainly updated the url to check version and download.

version="$(curl -sS https://update.tabnine.com/bundles/version)"

# https://github.com/codota/TabNine/blob/c6c2ee071a12461bb45e6367af5b4d4e71f25e5b/dl_binaries.sh#L6
    curl -sS https://update.tabnine.com/bundles/$path/TabNine.zip > binaries/$path/TabNine.zip

# https://github.com/codota/TabNine/blob/c6c2ee071a12461bb45e6367af5b4d4e71f25e5b/dl_binaries.sh#L21

https://update.tabnine.com/bundles/version and https://update.tabnine.com/version will get different versions. The version applicable to M1 chip must use the updated version. The present version will get a 403 error.

CleanShot 2021-01-19 at 19 30 04

The updated version also needs to modify the download path, which needs to be decompressed after downloading. I tried to adjust the url and add extract:'unzip' to the download function, but found that the main TabNine binary will be deleted after the program runs. There may be path-related issues that require additional adjustments.

Error: spawn UNKNOWN when use command "tabnine.openconfig"

I have installed tabnine use command "CocInstall".
And i got this when using "CocCommand tabnine.openConfig".

2020-02-23T10:02:06.186 INFO (pid:9272) [plugin] - coc 0.0.74-bc017b02e6 initialized with node: v12.16.0

2020-02-23T10:02:06.310 INFO (pid:9272) [model-extension] - Loading info of coc-json.

2020-02-23T10:02:06.321 INFO (pid:9272) [model-fetch] - fetch: http://registry.npm.taobao.org/coc-json

2020-02-23T10:02:06.352 INFO (pid:9272) [model-extension] - Loading info of coc-pyls.

2020-02-23T10:02:06.354 INFO (pid:9272) [model-fetch] - fetch: http://registry.npm.taobao.org/coc-pyls

2020-02-23T10:02:06.354 INFO (pid:9272) [model-extension] - Loading info of coc-tabnine.

2020-02-23T10:02:06.358 INFO (pid:9272) [model-fetch] - fetch: http://registry.npm.taobao.org/coc-tabnine

2020-02-23T10:02:06.432 INFO (pid:9272) [model-extension] - Extension coc-json is up to date.

2020-02-23T10:02:06.483 INFO (pid:9272) [model-extension] - Extension coc-pyls is up to date.

2020-02-23T10:02:06.488 INFO (pid:9272) [model-extension] - Extension coc-tabnine is up to date.

2020-02-23T10:02:25.774 INFO (pid:9272) [completion-complete] - Results from: around

2020-02-23T10:02:28.467 INFO (pid:9272) [completion-complete] - Results from: around

2020-02-23T10:02:44.368 ERROR (pid:9272) [commands] - Error: spawn UNKNOWN
    at ChildProcess.spawn (internal/child_process.js:407:11)
    at Object.spawn (child_process.js:548:9)
    at TabNine.restartChild (C:\Users\SouthAngel\AppData\Local\coc\extensions\node_modules\coc-tabnine\lib\index.js:385:45)
    at C:\Users\SouthAngel\AppData\Local\coc\extensions\node_modules\coc-tabnine\lib\index.js:352:26
    at new Promise (<anonymous>)
    at TabNine.requestUnlocked (C:\Users\SouthAngel\AppData\Local\coc\extensions\node_modules\coc-tabnine\lib\index.js:349:16)
    at TabNine.<anonymous> (C:\Users\SouthAngel\AppData\Local\coc\extensions\node_modules\coc-tabnine\lib\index.js:336:35)
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\SouthAngel\AppData\Local\coc\extensions\node_modules\coc-tabnine\lib\index.js:95:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Error while installing 404

CocInfo

## versions

vim version: NVIM v0.4.0-dev
node version: v12.6.0
coc.nvim version: 0.0.73-6c34420615
term: iTerm.app
platform: darwin

## Messages

Error messages

## Messages9 lines yanked
[coc.nvim] Error on install tabnine: Error: Invalid response from https://registry.npmjs.org/tabnine: 404

Network Check

  • ladder work well
  • internet connect checked

check url

https://registry.npmjs.org/tabnine not found

Proxy semantic completions back to tabnine

Allowing CoC to communicate semantic completions back to TabNine from other language servers would allow TabNine to learn better and provide better completions. For this to work, CoC would have to be able to act as a language server proxy of sorts.

coc_nvim_1.fetch is not a function

The following error happens just after the coc-tabnine installation.

[coc.nvim] Installed extension: coc-tabnine
[coc.nvim] Error on active extension coc-tabnine: TypeError: coc_nvim_1.fetch is not a function

thinking of buying a license

Hi chemzqm:

Is there a way to add my license?
My own project size is larger than 400KB. Is there a way to add the purchased license?

Best

failed to install, at GetAddrInfoReqWrap.onlookup

Hi,

I tried to use the ":CocInstall coc-tabnine" command to install this plugin and met following error

at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)

Seems like network issue. As for the network status, CocInstall works fine for other plugins like ":CocInstall coc-word" and My vim is also able to install tabnine-vim[1].

Do you have any suggestions?

[1] tabnine-vim: https://github.com/zxqfl/tabnine-vim

Imcomplete completion

Sometimes tabnine gives the completion of a whole sentence, but coc only completes the first word of it.
批注 2019-08-09 102944

local deep model not working on linux

Hi there. I'm using coc with neovim on my Linux machine for c++ development.

I'm a pro tabnine subscriber and would like to use the local model. But this doesn't seem to be working.

Is there any way I can get logging info from the TabNine engine?

Note: coc-tabnine works on my mac with the same config, etc.

🐛 installing on aarch64 (raspberry pi 4)

Hi!

What happens

When I try to install coc-tabnine on my pi 4 (aarch64) the following error occurs:

[coc.nvim] Download error Invalid response from https://update.tabnine.com/bundles/3.5.35/aarch64-unknown-linux-musl/TabNine.zip: 403      

A little more logs:

Using npm from: /usr/local/bin/npm                                                                                                 
      c Get info from https://registry.npmjs.org/                                                                                          
~       Downloading from https://registry.npmjs.org/coc-tabnine/-/coc-tabnine-1.3.4.tgz                                                    
~       Download progress 3.3%                                                                                                             
~       Download progress 8.4%                                                                                                             
~       Download progress 13.6%                                                                                                            
~       Download progress 18.8%                                                                                                            
~       Download progress 24.0%                                                                                                            
~       Download progress 29.2%                                                                                                            
~       Download progress 34.3%                                                                                                            
~       Download progress 39.5%                                                                                                            
~       Download progress 44.7%                                                                                                            
~       Download progress 49.9%                                                                                                            
~       Download progress 55.1%                                                                                                            
~       Download progress 60.3%                                                                                                            
~       Download progress 65.4%                                                                                                            
~       Download progress 70.6%                                                                                                            
~       Download progress 75.8%                                                                                                            
~       Download progress 81.0%                                                                                                            
~       Download progress 86.2%                                                                                                            
~       Download progress 91.3%                                                                                                            
~       Download progress 96.5%                                                                                                            
~       Download progress 100.0%                                                                                                           
~       Extension download at /tmp/vlAqRol/coc-tabnine-IJ6v6c                                                                              
~       Update package.json at /home/42/.config/coc/extensions/package.json                                                            
~       Installed extension [email protected] at /home/42/.config/coc/extensions/node_modules/coc-tabnine 

My vim version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug  4 2021 08:04:26)
Included patches: 1-3281
Compiled by 42@42
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
+balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
+browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     +perl              +title
+channel           +ipv6              +persistent_undo   +toolbar
+cindent           +job               +popupwin          +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          +ruby              +wildmenu
+cursorbind        +lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con_gui    +mksession         +smartindent       +X11
+diff              +modify_fname      -sodium            -xfontset
+digraphs          +mouse             -sound             +xim
+dnd               +mouseshape        +spell             +xpm
-ebcdic            +mouse_dec         +startuptime       +xsmp_interact
+emacs_tags        -mouse_gpm         +statusline        +xterm_clipboard
+eval              -mouse_jsbterm     -sun_workshop      -xterm_save
+ex_extra          +mouse_netterm     +syntax            
+extra_search      +mouse_sgr         +tag_binary        
-farsi             -mouse_sysmouse    -tag_old_static  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.