Giter Site home page Giter Site logo

codota / tabnine-vscode Goto Github PK

View Code? Open in Web Editor NEW
1.3K 1.3K 167.0 1.43 GB

Visual Studio Code client for Tabnine. https://marketplace.visualstudio.com/items?itemName=TabNine.tabnine-vscode

Home Page: https://www.tabnine.com/install/vscodeֿ

License: MIT License

TypeScript 98.85% JavaScript 1.15%
artificial-intelligence autocomplete bash c cpp golang gpt-2 java javascript lua php python ruby rust swift typescript vscode vscode-extension

tabnine-vscode's Introduction

Github Repo VSCode Plugin Youtube Demo Video Twitter Follow Gitpod ready-to-code

AI assistant for software developers

Note: This extension is NOT for Tabnine Enterprise self-hosted customers.

This extension is for Tabnine’s Starter (free), Pro and Enterprise SaaS users only.

Tabnine Enterprise users with the self-hosted setup should use the Tabnine Enterprise extension in the VSCode Marketplace.

Learn more about Tabnine Enterprise and self hosting options here, or talk to a Tabnine Enterprise expert

Code faster with AI code completions

Tabnine main completions

Ask away, Tabnine Chat is here to answer (Beta)

Want to join the Beta? Sign up here

Tabnine Chat_discover_and_learn

Quick menu:

What’s Tabnine
Supported languages, frameworks, and IDEs
Code privacy
Tabnine Chat (Beta)
Tabnine Pro
Tabnine Enterprise
FAQ

What’s Tabnine

Tabnine is an AI code assistant that makes you a better developer. Tabnine will increase your development velocity with real-time code completions, chat, and code generation in all the most popular coding languages and IDEs.

Whether you call it IntelliSense, intelliCode, autocomplete, AI-assisted code completion, AI-powered code completion, AI copilot, AI code snippets, code suggestion, code prediction, code hinting, content assist, unit test generation or documentation generation, using Tabnine can massively impact your coding velocity, significantly cutting down your coding time.

Under the hood / Tabnine technology

Tabnine is powered by multiple language-specialized machine learning models that were pre-trained from the ground up on code. All of Tabnine’s AI models are trained on open-source code with permissive licenses. Tabnine's AI completions can be run on a developer's laptop, on a server behind your firewall, or in the cloud.

Complete code privacy

Your code always remains private.

Tabnine NEVER stores or shares any of your code. Any action that shares your code with the Tabnine servers for the purpose of private code models (part of enterprise) requires explicit opt-in. Tabnine does not retain any user code beyond the immediate time frame required for training models. Private code models created by Tabnine Enterprise are only accessible by your team members.

Trained on open-source code with permissive licenses

Tabnine only uses open-source code with permissive licenses for our Public Code trained AI model (MIT, MIT-0, Apache-2.0, BSD-2-Clause, BSD-3-Clause, Unlicense, CC0-1.0, CC-BY-3.0, CC-BY-4.0, RSA-MD, 0BSD, WTFPL, ISC). Whether you’re using Tabnine’s Pro plan or our Basic plan, your code, and AI data are NEVER used to train any models other than private code models.
Learn more

Tabnine Chat (Beta)

Tabnine Chat is a private and secure AI assistant that’s been trained on permissible open-source code only, and is always available to answer any of your questions right in your IDE.

With Tabnine Chat you can basically ask any question regarding code, for example, you can generate code that performs a specific task, generate tests for specific code, generate documentation for existing code, explain the purpose of legacy code, and way more.

Chat_unit_test

Want to join the Beta? Sign up here

Tabnine Pro - whole line, full function, and natural language to code completions

You’re in control - As you type, Tabnine Pro serves whole-line, full-function, and even natural language to code completions. You can accept your whole line completion or keep typing to get more real-time alternatives that keep adapting to your code context.
Start a Free Tabnine Pro 14-day trial

Whole line completions - Tabnine serves whole line completions as you code and you can complete an entire line of code with a single keystroke.
whole-line-completion

Full-function completions - With just a hint, Tabnine generates your entire function without ever having to exit your editor.
full-function-completion

Natural language to code completions - Describe the script or function you’re looking for, and Tabnine will suggest the right code for you to use.
natural-language-to-code

Start a free trial

Tabnine Enterprise

Everything Tabnine Pro & much more - The perfect solution for businesses with custom needs:

Automate Remote Knowledge Sharing - Share knowledge effortlessly across countries and time zones. Tabnine learns your code patterns, providing expert guidance to every member of your team at any time of day.

Improve Code Quality & Consistency - Tabnine Improves code consistency across your entire project, suggesting completions that align with your best practices for code that’s easier to read, manage, and maintain.

Accelerate Developer Onboarding - Tabnine’s AI assistant helps speed new team members through the onboarding process with instant inline coding guidance minimizing the training burden placed on senior developers.

Reduce Code Review Iterations - Your Tabnine AI assistant will help you get the right code the first time. Tabnine provides code guidance that’s consistent with your team’s best practices, saving costly and frustrating code review iterations.

Self-hosting - Host Tabnine locally to comply with your business’ security requirements.

Private code repository models - Tabnine Enterprise offers custom models based on multiple repositories. Connect your GitHub/GitLab/Bitbucket repositories and train your own private AI model to get personalized code completions that match your coding style & patterns.

Contact us for more information

Supported languages, frameworks, and IDEs

supported-languages

FAQ

Something not working the way you hoped? Tabnine Support is always happy to help. Feel free to contact us anytime at [email protected]

Recommended by developers everywhere:

William Candillon Tweet

Imed Boumalek Tweet

ramnivas Tweet

bob paskar Tweet

Nick Radford Tweet

Hugues BR Tweet

JohnyTheCarrot Tweet

Donald E Fredrick Tweet

Joshua Kelly Tweet

JDerek Braid Tweet


tabnine-vscode's People

Contributors

amirbilu avatar amircodota avatar aravindvnair99 avatar assapir avatar avichay77 avatar avnerbarr avatar bilucodota avatar bl-ue avatar boaz-codota avatar dependabot[bot] avatar dimacodota avatar github-actions[bot] avatar izumicypherx avatar jackfranklin avatar kevmo314 avatar mikekosulin avatar ofekby avatar shaiahr avatar shakedbr-tabnine avatar talcodota avatar yahave avatar yairco1990 avatar yanir-codota avatar yonidavidson avatar yonip23 avatar yotamfromcodota avatar zxqfl 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabnine-vscode's Issues

TabNine spawning hundreds of Python processes via pyls

After maybe half an hour of using the v1.0.3 TabNine extension for Python editing, my process tree looks like this:

image

Right now there's about 300 processes total in there, but my highscore is 1000+ before I noticed. Almost all of them are children of pyls.

TabNine commands doesn't work

After extension installation (and vscode reloading), when I try to open config by TabNine::config nothing happens.

win10, vs code v. 1.37.1

can't active

I buy a license . and I want to use it in my development.
I use vscode remote to dev. so the plug must install in the dev server machine.
but the machine connect to internet use the proxy with a white list controll by company
so I can't active the plug.
Has any way to solve the problem? thanks

coc.nvim source

It would be awesome to have TabNine integration with coc.nvim, though I'm not familiar enough with TabNine to know how it would work. If it implements LSP it probably wouldn't be too much work.

Cannot Connect

The TabNine information shows that the Activate is "No". And it always tell me "Establishing connection to TabNine Cloud..."

image
image

Language server unexpectedly quit

OS X 10.14.1
VSCode 1.30.0
TabNine 1.0.4
Platform IDE 1.6.0

When coding a notification that the language server has stopped appears. Follow suggestion to do a restart and problem usually re-appears within a few minutes. Not sure of any log files or further info m=needed to resolve, just let me know.

tabnine and auto import can not both work

first, thanks for the awesome tool.

the auto import feature for typescript can not work when upgrades vscode to 1.37.0.
the feature is ok when i disable the tabnite extension, so the tabnine seems to have compatibility issues for the latest vscode.

Sorry, the architecture 'ia32' is not supported by TabNine.

Hi there,

I am using VSCode with Windows 10 x64:

image

After installing TabNine successfully, I tried to type something at the editor, but nothing happened.

Check the console to find the following error:

[Extension Host] Error setting up request: Error: Sorry, the architecture 'ia32' is not supported by TabNine.

image

I wonder if the architecture detection algorithm has an error, or why is this?

Tooltip cuts off

Hello,

When using the vscode version of the tool, it's not possible to read the entire autocomplete suggestion, and it's also not possible to scroll it.

How should such cases be handled?
Thanks!

Try using vscode-python language server instead of installing pyls?

TabNine is utterly fantastic, and it's great to see it using LSP for semantic completion. However, installing pyls is an odd choice when inside VSCode: most Python users will already have vscode-python installed (it's the single most popular VSCode extension) and it comes with its own language server, one that has considerably more work going into it than Palantir's.

Is it possible to default to using vscode-python's language server?

TabNine blocks access to directories

It may be hard to reproduce, close if you decide not to give it a try. I can not provide all required sources to reproduce.

My problem: I have installed tabnine extension to VS Code (all's up to date) and since then, I have problem with accessing some of my directories. Let it be explained in steps. (Windows 10 here)

  1. TabNine is enabled
  2. I use tasks to call some python scripts (mostly reading, moving and deleting files) based on the file I am already editing.
  3. Sometimes, my scripts won't end properly, due to lacking permission to remove the file (created by them).
  4. The fun begins:
  • For the file created (by the scripts), I can not delete it or view it. Windows tells me that I have not correct permission (that's weird) and I need administrator permission from myself (even though I have created this files, no admn privileges was given to python). There is no access to the file and no script with admin privileges can modify the file in any way.
  • After about a hour, the issue is gone.
  • Closing VS Code make the problem disappear.
  • Killing TabNine process only also helps.
  • When TabNine (or VS Code) killed, the file disappears.

Summary:
What bothers me most is windows saying that I have not permission to my own folder. It is clearly not explaining what is happening with the files and what is a reason of this behavior.

[BUG][SEMANTIC] Failed to install ruby semantic support

System info

VS Code

Version: 1.37.1
Commit: f06011ac164ae4dc8e753a3fe7f9549844d15e35
Date: 2019-08-15T16:16:34.800Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 18.7.0

User ruby version manager: rbenv

log

[2019-08-31][01:20:05][lsp::language_server_transport][ERROR] install error: Custom { kind: Other, error: "Output { status: ExitStatus(ExitStatus(256)), stdout: \"\", stderr: \"ERROR: While executing gem ... (Gem::FilePermissionError)\\n You don\\\'t have write permissions for the /Library/Ruby/Gems/2.3.0 directory.\\n\" }" }

Diagnostic

Basically the correct gem executable is set by $PATH. So my guess is the TabNine process does not inherit the $PATH env variable. (Tried "start vscode from the terminal" trick but the TabNine still can't get the correct $PATH.

Language server error: Failed making directory even after creating parent directories

So in VS Code, I opened a new directory /tmp/vscode-tabnine and created a file myfile.cpp in it with this content:

int main(int argc, char const *argv[])
{

  return 0;
}

But typing TabNine:: in line 3 complains that "The language server exited unexpectedly." TabNine::restart doesn't help.
image

The log from TabNine::config complains about some directory creation failing:

[2019-08-03][13:10:02][lsp::language_server_transport][ERROR] Language server error: �[0m�[1m�[91mStack trace: 5 0x5584adcb7d3a _start + 42 4 0x7f9b1833eb97 __libc_start_main + 231 3 0x5584adcacac2 main + 3618 2 0x5584add30853 LanguageServerMain(std::string const&) + 115 1 0x5584add2f8a1 RunQueryDbThread(std::string const&) + 1441 0 0x5584ade6534a /usr/local/bin/cquery(+0x22b34a) [0x5584ade6534a]�[0m �[0m�[1m�[91m( 0.492s) [querydb ] platform.cc:86 | Failed making directory for /tmp/vscode-tabnine/myfile.cpp/.cquery_cache/@tmp@[email protected] even after creating parent directories�[0m
[2019-08-03][13:10:02][lsp::controller][INFO] Language server exited

This happens in every directory. I installed cquery according to their wiki (installed it to /usr/local/). I also tried to set <config_dir>/TabNine.toml with command = "/usr/local/bin/cquery", but that has the same result.

How can I enable semantic completion for TabNine?

Here is the full TabNine log
[2019-08-03][13:10:00][updater][INFO] Current version is 2.0.4, remote has version 2.0.4.
[2019-08-03][13:10:00][frontend][INFO] Started.
[2019-08-03][13:10:00][lunar_transport::controller][INFO] TabNine Cloud is disabled, communication thread is sleeping until configuration change...
[2019-08-03][13:10:00][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:01][lsp::session][INFO] Spawning controller for route Route { language: "cpp", root: AbsolutePath { path: "/tmp/vscode-tabnine/myfile.cpp", uri: "file:///tmp/vscode-tabnine/myfile.cpp" } }
[2019-08-03][13:10:01][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:10:01][lsp::low_level_language_server][INFO] Calling LSP method `DidOpenTextDocument`
[2019-08-03][13:10:01][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:01][lsp::language_server_transport][INFO] Starting language server: `/usr/local/bin/cquery --init={"cacheDirectory": "${project_root}/.cquery_cache"}`
[2019-08-03][13:10:01][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:01][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:01][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:10:02][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:10:02][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:02][lsp::language_server_transport][ERROR] Language server error: �[0m�[1m�[91mStack trace: 5 0x5584adcb7d3a _start + 42 4 0x7f9b1833eb97 __libc_start_main + 231 3 0x5584adcacac2 main + 3618 2 0x5584add30853 LanguageServerMain(std::string const&) + 115 1 0x5584add2f8a1 RunQueryDbThread(std::string const&) + 1441 0 0x5584ade6534a /usr/local/bin/cquery(+0x22b34a) [0x5584ade6534a]�[0m �[0m�[1m�[91m( 0.492s) [querydb ] platform.cc:86 | Failed making directory for /tmp/vscode-tabnine/myfile.cpp/.cquery_cache/@tmp@[email protected] even after creating parent directories�[0m
[2019-08-03][13:10:02][lsp::controller][INFO] Language server exited
[2019-08-03][13:10:02][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:02][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:04][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:04][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:04][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:28][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:28][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:28][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:10:32][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:32][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:32][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:44][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:44][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:44][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:48][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:48][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:48][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:10:58][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:10:58][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:10:58][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:11:01][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:11:01][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:11:01][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:11:01][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:11:01][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:11:01][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:11:01][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:11:01][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:11:01][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:11:01][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:11:01][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:11:01][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:13:37][server][DEBUG] [autocomplete] 4 ms
[2019-08-03][13:13:38][lsp::low_level_language_server][INFO] Calling LSP method `DidChangeTextDocument`
[2019-08-03][13:13:38][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:38][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:38][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:38][server][DEBUG] [autocomplete] 5 ms
[2019-08-03][13:13:38][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:38][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:38][server][DEBUG] [autocomplete] 4 ms
[2019-08-03][13:13:38][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:38][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:38][server][DEBUG] [autocomplete] 3 ms
[2019-08-03][13:13:38][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:38][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:38][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:13:39][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:39][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:39][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:13:39][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:39][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:39][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:13:39][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:39][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:39][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:13:40][lsp::low_level_language_server][INFO] Calling LSP method `DidChangeTextDocument`
[2019-08-03][13:13:40][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:40][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:40][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:40][server][DEBUG] [autocomplete] 5 ms
[2019-08-03][13:13:40][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:40][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:40][server][DEBUG] [autocomplete] 3 ms
[2019-08-03][13:13:40][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:40][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:40][server][DEBUG] [autocomplete] 6 ms
[2019-08-03][13:13:40][server][DEBUG] [autocomplete] 6 ms
[2019-08-03][13:13:40][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:40][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:40][lunar_transport::controller][INFO] TabNine Cloud is disabled, communication thread is sleeping until configuration change...
[2019-08-03][13:13:43][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:13:45][lsp::session][INFO] Spawning controller for route Route { language: "cpp", root: AbsolutePath { path: "/tmp/vscode-tabnine/myfile.cpp", uri: "file:///tmp/vscode-tabnine/myfile.cpp" } }
[2019-08-03][13:13:45][lsp::language_server_transport][INFO] Starting language server: `/usr/local/bin/cquery --init={"cacheDirectory": "${project_root}/.cquery_cache"}`
[2019-08-03][13:13:45][lsp::low_level_language_server][INFO] Calling LSP method `DidOpenTextDocument`
[2019-08-03][13:13:45][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:45][server][DEBUG] [autocomplete] 11 ms
[2019-08-03][13:13:45][lsp::language_server_transport][ERROR] Language server error: �[0m�[1m�[91mStack trace: 5 0x556b83f7ad3a _start + 42 4 0x7f7011542b97 __libc_start_main + 231 3 0x556b83f6fac2 main + 3618 2 0x556b83ff3853 LanguageServerMain(std::string const&) + 115 1 0x556b83ff28a1 RunQueryDbThread(std::string const&) + 1441 0 0x556b8412834a /usr/local/bin/cquery(+0x22b34a) [0x556b8412834a]�[0m �[0m�[1m�[91m( 0.465s) [querydb ] platform.cc:86 | Failed making directory for /tmp/vscode-tabnine/myfile.cpp/.cquery_cache/@tmp@[email protected] even after creating parent directories�[0m
[2019-08-03][13:13:45][lsp::controller][INFO] Language server exited
[2019-08-03][13:13:46][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:13:46][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:13:46][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 5 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 11 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 3 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:13][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:13][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:14:14][lsp::low_level_language_server][INFO] Calling LSP method `DidChangeTextDocument`
[2019-08-03][13:14:14][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:14][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:14][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:14][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:14:14][lsp::low_level_language_server][INFO] Calling LSP method `DidChangeTextDocument`
[2019-08-03][13:14:14][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:14][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:14][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:14][server][DEBUG] [autocomplete] 3 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 4 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 4 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 6 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 2 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 1 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 0 ms
[2019-08-03][13:14:15][ui::http_server][ERROR] Could not start server on 5555: Io(Os { code: 98, kind: AddrInUse, message: "Address already in use" })
[2019-08-03][13:14:15][ui::http_server][INFO] Started config server at V4(127.0.0.1:45877).
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 41 ms
[2019-08-03][13:14:15][lsp::low_level_language_server][INFO] Calling LSP method `Completion`
[2019-08-03][13:14:15][lsp::low_level_language_server][ERROR] send error: "SendError(..)"
[2019-08-03][13:14:15][server][DEBUG] [autocomplete] 52 ms

Multi-cursor support

At the moment when are presented with suggestions, upon selecting one, only the first selection is populated. It would be nice if all selections were populated in the cases where you are using multiple cursors.

Not able to insert next suggestion using tab

How can I insert next suggestion by pressing tab like in Sublime Text? I could cycle through all the suggestions using tab only in Sublime Text, but however I couldn't get it to work in VScode for TapNine. It works when other language autocompleter provides suggestions, but when there is only TapNine, when I first press tab it inserts the best suggestion, and tab again it won't insert the next suggestion but instead inserts '\t'. Is there a way to resolve this issue?

TabNine still works when "Snippets Prevent Quick Suggestions" setting is turned on.

The VSCode setting editor.suggest.snippetsPreventQuickSuggestions is intended to preempt the usage of Tab key. When this setting is turned on, Tab is used for jumping from current stop position to next stop position. Completion functionality should be disabled now. But I found that when this setting is turned on, TabNine still works, and hence occupies the Tab key. I wonder if this is a bug or an intended feature?

Not Available for Visual Studio Community/Pro/Enterprise

Just adding this here so I can follow it for when it's released for regular (non-Code) Visual Studio. Guessing I'm not the only one who's interested.

(for those who don't use Visual Studio, the Code edition is nothing like regular Visual Studio, with a subset of features and very little overlap in terms of infrastructure).

Inserted placeholders are not accessible

When editing python code (with Python extension ms-python.python installed and activated) some of completions are inserted with placeholder strings like ${1:filename} etc. This strings suggest that they are to be navigated by pressing <tab>, yet this does not happen. I also have vscodevim.vim plugin enabled, which can interfere with this.

Can these placeholders be turned off somehow?

Wrong version installed (1.0.1)

image

1.0.1 this is the only version i get.
using ext install TabNine.tabnine-vscode i get the same version.

FORGET IT, IT WORKS, ONLY THE VERSION SHOWN IS WRONG

Windows 10 64bit flow integration and config loading

Just wanted to leave this here, which flow will not point to the right path on Windows 10 64bit.
I managed to get flow lsp working by using this configuration:

[language.javascript]
command = "C:\\Users\\dev\\AppData\\Roaming\\npm\\flow.cmd"
args = ["lsp"]
install = [["npm", "install", "-g", "flow-bin"]]

On config loading, it seems that TabNine treats files as folders when trying to look for a root / config file, and it's trying to open all the **/./.tabnineroot paths.

Thank you for your work, this is awesome!

Extra closing brace in string

I noticed that an extra closing brace is added with some suggestions unnecessarily

Screenshot 2019-07-26 at 11 31 11

Screenshot 2019-07-26 at 11 35 38

Screenshot 2019-07-26 at 11 35 50

Screenshot 2019-07-26 at 11 35 55

I would expect the end result to be ${encodeURI(file)}

Conflicts with vscode's own TS/JS intellisense

Without TabNine:
image

With TabNine:
image
with TabNine enabled (+semantic completion with flow), vscode only give suggestions from TabNine. but I can manually trigger a list containing all suggestions with Control+space

Expected behavior:
The completion list should contain all suggestions from TabNine and other sources when typing on-the-fly.

How do I disable it for SCSS?

I wish I can disable it in some file formats that I have other auto suggesters that I like more, especially in css.

[Feature request] Closing brackets

For example. I write elem and it correctly suggests to me elements.push(. I just wish it also had the closing bracket (elements.push()). Without this I'm skeptical about if this thing actually saves time as I now need to think extra about what I'm seeing. Normal autocomplete is not as good at guessing, but at gives me what I expect.

EDIT

I've got a better example.

  1. I have <button></button>
  2. I write <button onC></button>
  3. it very awesomly completes that to <button onClick={() =></button>
  4. Now I must type >} just to close brackets. Result: <button onClick={() => }></button>

but notice how much brain power it takes to figure out what brackets are missing. This particual example is specially crazy as the => symbol is very much what is expected so my brain goes "why did it remove the >? But actually the > belongs to the <button> tag already..

EDIT2

I just now noticed, that the caret is left at the end of the => so <button onClick={() =>|HERE|</button>. Which confirms my (wrong) suspicion, that autocomplete added the => and removed a >.

bad cursor placement with parentheses

consider the following code:

hello = "world!"

print(hello)

with the native autocompleter, after typing print(h, hello will be in suggetions. When I hit Tab, I will see the following:

p r i n t ( h e l l o )
                     ^

caret indicates cursor placement.
At that point, before the closing paren, if I hit ) on my keyboard, the closing paren is overwritten and I see this:

p r i n t ( h e l l o )
                       ^

With TabNine's completion, at the same point, if I hit ), another closing paren is inserted:

p r i n t ( h e l l o ) )
                       ^

This makes using completions very painful.

Weird suggestions

I installed this plugin today and it has been working fine until I jumped into another project.

Getting the following suggestions, and I don't know where they're coming from:

screenshot 2018-11-07 at 17 15 34

TabNine semantic installation on windows

So even after the install of the language-server (atleast for html, css, scss and js ones)

The semantic completion still fails to work properly and shows the install failed error.

This isssue is on Windows.

Not working on vscode

Bought a license but can't seem to activate it, does not autocomplete the version. It seems to work on Sublime.

suggestions are messed up

I noticed this problem some days ago, before that it worked well. Say I have a variable call "distance". If I type the beginning of it, "di", Tabnine suggests "distance". If I hit Enter on it, the result becomes "didistance", so I need to jump back and correct it manually.

appears to break snippets support completely

I haven't historically used snippets a lot, but I was going through all my extensions and realized that I had a few snippet extensions that I could've been using, but really haven't been. I went to try them out, and noticed that snippet support was not working at all. Uninstalling tab nine fixed it, and all my snippets work now.

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.