GithubHelp home page GithubHelp logo

codota / tabnine-sublime Goto Github PK

View Code? Open in Web Editor NEW
190.0 18.0 36.0 1.06 GB

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

Home Page: https://www.tabnine.com/install/sublime

License: MIT License

Python 98.48% Shell 1.52%
sublime autocomplete gpt-2 artificial-intelligence javascript python rust typescript php ruby

tabnine-sublime's Introduction

Github Repo Youtube Demo Video Twitter Follow

Tabnine - AI Code Completion

Tabnine is an AI-powered code completion extension trusted by millions of developers around the world. Whether you’re just getting started as a developer or if you’ve been doing it for decades, Tabnine will help you code twice as fast with half the keystrokes – all in your favorite IDE.

The Right Tool for The Job

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, or content assist, you probably already know that it can save you tons of time, easily cutting your keystrokes in half.

Powered by sophisticated machine learning models trained on billions of lines of trusted Open Source code from GitHub, Tabnine is the most advanced AI-powered code completion copilot available today. And like GitHub, it is an essential tool for professional developers.

With and without Tabnine Java

Tabnine works with all major programming languages including:

Python Javascript Java
extended JS React PHP
Typescript C Header Bash
ML Swift Ruby
Perl Rust SQL
Vue F# Scala
Julia TOML Shell
YMAL C / C++/ C# HTML
Lua Markdown Haskell
Go Objective C JSON
CSS / SCSS Angular Kotlin

Our Vision

Knowing that most of the code generated today has been created before begs the question - what if developers didn’t need to remember it, search for it, and type it again?

Learning from the past, focusing on the future, that’s the bedrock Tabnine is built on. Our AI-powered code completion tool embodies that vision by harnessing the collective achievements of every qualified piece of open source code ever written and serving that knowledge to our users in the form of code completion suggestions. As we move forward, Tabnine’s AI will play a valuable role in shaping the entire software development lifecycle.

Tabnine’s AI studies mountains of publicly available open source code and combines that with knowledge of your specific project and preferences creating code suggestions customized just for you. That saves you tons of keystrokes, and tons of time, all while keeping you aligned with best practices, and avoiding frustrating typos.

Pick the Plan that Works Best for You!

Tabnine Basic Tabnine’s Basic AI-powered code completion model is a fantastic time-saving tool for any developer. The Basic plan has plenty of free daily code completion suggestions to get you started, with no cost, no credit card, and no commitment.

Tabnine Pro Supercharge your AI code completion suggestions with our advanced ML model, unlock unlimited code suggestions, customize your experience, and get priority support. Experience the power of Tabnine Pro today!

Easy Installation on Sublime

See full instructions here

Investing In Our Community

FREE Tabnine Student Plan We know that tuition, books, rent, and food can get crazy expensive, that’s why Tabnine helps support the community and the dev superstars of tomorrow with a 100% free Tabnine Student license with all our Pro perks renewable for as long as you are a student.

Join the Tabnine Student Program for free

FAQ

Got a question? We’ve got the answer - Check out our FAQ page

Tabnine Support

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

Privacy

Your privacy is paramount, that’s why Tabnine uses a dual model design. While the public GPT-2 model works its magic continuously scanning hundreds of millions of trusted open source parameters, a second separate model runs locally on your machine keeping your code 100% private.

In addition, the local model focuses on learning your personal and project coding preferences, constantly improving the quality and accuracy of your code suggestions. Always separate. Always secure. Always private.

Find out more about how we keep your code private here

Tabnine Hub

A quick click on Tabnine on your IDE status bar takes you directly to your Tabnine Hub where you can easily update and manage all your account options and customize your suggestion preferences.

Usage

Tabnine is a textual autocomplete extension. When you type a specific string in your editor, you will be shown the Tabnine completion dialog box with suggestions for completing the code you’ve begun typing.

Deep Completion

Deep Tabnine is trained on millions of files from GitHub. During training, Tabnine’s goal is to predict the next token given the tokens that came before. To achieve this goal, Tabnine learns complex behavior, such as type inference in dynamically typed languages.

Deep Tabnine can use subtle clues that are difficult for traditional tools to access. For example, the return type of app.get_user() is assumed to be an object with setter methods, while the return type of app.get_users() is assumed to be a list.

Deep Tabnine is based on GPT-2, which uses the Transformers Network Architecture. This architecture was first developed to solve problems in natural language processing. Although modeling code and modeling natural language might appear to be unrelated tasks, modeling code requires understanding English in some unexpected ways.

  • Tabnine Indexes your entire project and determines which files to ignore by reading your .gitignore
  • Tabnine cuts your number of keystrokes in half and eliminates unnecessary typos
  • Tabnine works right out of the box ensuring frictionless installation and configuration
  • Tabnine offers code completion suggestions in less than 10 milliseconds

Commuinities

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

auto_complete: false


The Tabnine sublime plugin disables sublime's built in autocomplete.
It does that, because sublime's builtin autocomplete does not support all the features required by Tabnine.
If you ever uninstall Tabnine, remember to re-enable it.

Development:


In order to work with plugin source code, don’t forget to install pre-commit dependency. After checking out source code, go to repo folder and run

pip install -r requirements-dev.txt

Note:


A note on licensing: this repo includes source code as well as packaged Tabnine binaries. The MIT license only applies to the source code, not the binaries. The binaries are covered by the Tabnine Terms of Use.

tabnine-sublime's People

Contributors

amircodota avatar ayush--s avatar bilucodota avatar boaz-codota avatar dimacodota avatar github-actions[bot] avatar noahgorny avatar yahave 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

tabnine-sublime's Issues

TabNine not working for c++

I install TabNine in sublime, the TabNine works fine with python,
but it doesn't work with c++ (it is not doing anything at all with c++ code)
How can I fix it ?

Error on autocomplete window popup

I'm greeted with a bit of an error spam every time the autocomplete window pops up:

startup, version: 3184 osx x64 channel: dev
...
reloading plugin TabNine.TabNine
plugins loaded
TabNine: starting version 1.0.10
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 462, in run_callback
    expr()
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 586, in <lambda>
    run_callback('on_selection_modified', callback, lambda: callback.on_selection_modified(v))
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 134, in on_selection_modified
    self.on_any_event(view)
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 155, in on_any_event
    ) = self.get_before(view, AUTOCOMPLETE_CHAR_LIMIT)
  File "/Users/philip/Library/Application Support/Sublime Text 3/Packages/TabNine/TabNine.py", line 125, in get_before
    loc = view.sel()[0].begin()
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 649, in __getitem__
    raise IndexError()
IndexError

Sometimes the autocomplete window also appears in the wrong location, but I haven't been able to reproduce this issue consistently.

With kind regards,
Philip Trauner

Cannot install due to invalid certificate

When trying to install with the recommended steps:

  • Install Package Control by pressing Ctrl+Shift+P (Cmd+Shift+P on OSX) and selecting Install Package Control.
  • Install TabNine by pressing Ctrl+Shift+P (Cmd+Shift+P on OSX) and selecting Package Control: Install Package and then TabNine.

I get the following error:

ignored packages updated to: ["TabNine", "Vintage"]
reloading settings Packages/User/Package Control.sublime-settings
Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:548))) downloading https://codeload.github.com/zxqfl/tabnine-sublime/zip/0.2.2.
error: Package Control

Unable to download TabNine. Please view the console for more details.
ignored packages updated to: ["Vintage"]
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Package Control.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings

v2.5.1 Error with sublime 3 3211

After fresh install of Sublime 3 v3211 and package TabNine 2.5.1,
i got error:
Started TabNine v2.5.1
Failed to communicate with TabNine subprocess: No JSON could be decoded
(i forgot to save the error).
and this goes over and over.
Tried to manually clone repo with 2.5.1, same error.
Issue fixed with installing older version - TabNine v2.2.2 and denying write access to binaries (to stop auto-update). 2.2.2 seems to be working, no error in sublime console.

Stop working

TabNine stops work in my SublimeText 3.2.2 Build 3211
sublime-text console output:

Traceback (most recent call last):
  File "/opt/sublime_text_3/sublime_plugin.py", line 610, in on_selection_modified_async
    callback.on_selection_modified_async(v)
  File "/home/dnomin/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 334, in on_selection_modified_async
    response = tabnine_proc.request(request)
  File "/home/dnomin/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 89, in request
    self.restart_tabnine_proc()
  File "/home/dnomin/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 85, in restart_tabnine_proc
    startupinfo=get_startup_info(sublime.platform()))
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1370, in _execute_child
  File "./python3.3/os.py", line 791, in fsencode
TypeError: expect bytes or str, not NoneType

Binary naming issue

Hey @zxqfl, the latest commit seems to have broken TabNine for me. I am getting errors in the sublime console such as:

Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 627, in on_activated_async
callback.on_activated_async(v)
File "/home/chris/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 237, in on_activated_async
tabnine_proc.request(request)
File "/home/chris/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 89, in request
self.restart_tabnine_proc()
File "/home/chris/.config/sublime-text-3/Packages/TabNine/TabNine.py", line 85, in restart_tabnine_proc
startupinfo=get_startup_info(sublime.platform()))
File "./python3.3/subprocess.py", line 819, in init
File "./python3.3/subprocess.py", line 1370, in _execute_child
File "./python3.3/os.py", line 791, in fsencode
TypeError: expect bytes or str, not NoneType

After a bit of digging I have traced the issue back to the updated binaries, either you have forgotten to rename them from x86_64-unknown-linux-gnu to x86_64-unknown-linux-musl or you have forgotten to change the names of the binaries here. Renaming the binaries found in ~/.config/sublime-text-3/Packages/TabNine/binaries/2.1.22 helped me (linux Ubuntu), hope this helps anyone else having issues!

Some tips I can't understand what these mean

When I type in the code Tabnine its works well, but I don't understand some of the message below the prompt.
Type TabNine::sem to enable semantic completion for Python. This will run the flollowing commands: pip install python-language-server pyls Type TabNine::no_sem to suppress this message To learn more.................
It seems that I haven't finished some settings, but I don't know how to solve this problem. And I don't know where I should type my pip instructions.
Could you give me some advice?
Thank you.

Crazy CPU usage

In the two days since installing tabnine-sublime, I've heard my macbook's fan running on hard three times. Each time, when I checked Activity Monitor, the culprit was TabNine and I've had to kill it. There isn't any related output in the sublime console that I can see.

I have some large repos open, like https://github.com/django/django .

My package dir shows version 2.0.2 of the binary:

$ tree
.
├── Default.sublime-keymap
├── LICENSE
├── Main.sublime-menu
├── Preferences.sublime-settings
├── README.md
├── TabNine.py
├── TabNine.sublime-settings
├── binaries
│   ├── 1.0.7
│   │   ├── i686-apple-darwin
│   │   │   └── TabNine
│   │   ├── i686-pc-windows-gnu
│   │   │   └── TabNine.exe
│   │   ├── i686-unknown-linux-gnu
│   │   │   └── TabNine
│   │   ├── x86_64-apple-darwin
│   │   │   └── TabNine
│   │   ├── x86_64-pc-windows-gnu
│   │   │   └── TabNine.exe
│   │   └── x86_64-unknown-linux-gnu
│   │       └── TabNine
│   └── 2.0.2
│       └── x86_64-apple-darwin
│           └── TabNine
└── package-metadata.json

10 directories, 15 files

Enhancement: close half-open braces, use the snippet system to smartly place the point

Suppose I'm creating a new rust struct, with some derive attributes at the top. I type:

#

And TabNine suggests [derive(Clone, .

This is a good suggestion, but I'm very much used to my editor automatically closing my braces. What I'm suggesting, therefore, is that the following flow occur (█ indicates the suggestion/location of the point; I'm not sure how to indicate this in the UI. Perhaps a highlighted character?)

  • TabNine suggests [derive(Clone, █)]
  • I accept the suggestion. My text buffer is now:
#[derive(Clone, █)]
  • I have the ability to add more attributes, aided by TabNine.
  • The next time I hit <tab>, outside of a completion context, it advances the point outside the next brace. It does this continuously until I'm fully outside the braces:
// <tab>
#[derive(Clone, Default)█]

// <tab>
#[derive(Clone, Default)]█

This can probably be implemented "dumbly", that is, it can use simple syntax analysis that examines the output of TabNine's suggestion, and simply closes all detected half-open braces.

Can't install sublime text 2

Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./TabNine.py", line 28
    self, edit, *,
                 ^
SyntaxError: invalid syntax

Getting this error on install to sublime text 2 on macosx 10.14.5

Only works when "show_definitions" is true

This isn't really a bug, but some users might think this plugin is broken if they have disabled the definition popup.

It's one of the first things I disable in ST3 as it is a bit intrusive :-)

Option to use enter instead?

Great plugin =D
I was wondering whether it's possible to use enter for selecting a match, or even better, abide by ST's current configuration.

Thanks!

Uninstalling TabNine

I love TabNine, unfortunately it often causes unbearable CPU spikes and gets my fan running hot, and customer service has not responded to messages in months, even for paying customers. The ability to quickly turn it on/off is essential. The current TabNine::config does not have that.

I just uninstalled the package, and yet TabNine still lingers on my machine. Would like complete uninstall instructions please.

I can no longer recommend TabNine until we have some communication from the creators.

Question regarding project structure

Hello, I was pretty impressed by Tabnine, looking into including it to my toolchain.

However, I have a question regarding my use case.
Typically, I would add several folders (separate git repositories) in a Sublime Text project, all of which I would like to be indexed. For instance,
~/Projects/main-project
~/Projects/lib1
~/Projects/lib2

Will Tabnine show autocomplete suggestions based on the indexing results generated in lib1 and lib2 when I edit the source code in main-project?

It is stated in FAQ that a .tabnine_root file may be placed in the root of the project directory. I did so, placing it in ~/Projects, but got no luck. All repositories have their own .gitignore's.

Sublime Text3 prompt box position

Its prompt is correct, but the position of the prompt box is not correct, such as the performance of the following figure. How can I set it up? I would be grateful if you could tell me.
58de5d473fa64c19590d63881ff6b16
1e2c8bfb792aba31ce31b3777b02580

a problem when installing

I can't finish the installation in sublime.It had a cue when installing that "an error occurred while trying to unzip the package file for TabNine.Please try installing the package again".I had tries several times,and already used another computer to install TabNine,but still that still did nothing.And now I had to believe it was the package that be wrong.

[request] make it possible to change the color of the popup

In Sublime Text I use a light background, that's my preference. The suggestions of TabNine also appear in a popup with light background, and when I edit for instance a normal text file that has no syntax highlighting, it's very hard to see and read the TabNine popup. Is there a way to change the colors of the popup?

Code Snippets and Tabnine

I recently purchased the full version of TabNine and have been using the sublime extension, I am unable to get code snippets to work in conjunction with the program as my autocomplete seems to be overridden by tabnine. I can confirm this by opening a new window where tabnine does not run (no .git) and the code snippet works fine. Was wondering if there was any way to make these two work together.

Weird Long Suggestion

Hiya, I was using TabNine as usual, when suddenly:

*a wild suggestion appeared*
long_suggestion

The full suggestion when applied is:

BBBCCCCCCDDDDDDDDDDDDCCCCCCDDDEEEFFFFFFFFFFFFFFFFFFGGGHHHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHIIIIIIHHHHHHIIIIIIIIIIIIIIIHHHGGGHHHHHHHHHHHHGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGFFFFFFGGGGGGGGGGGGHHHHHHHHHHHHHHHGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJIIIIIIJJJJJJKKKKKKLLLLLLKKKLLLLLLLLLMMMMMMMMMMMMNNNOOOOOOOOOPPPPPPQQQQQQRRRRRRTTTSSSSSSSSSSSSSSSSSSSSSSSSRRRRRRRRRRRRRRRRRRRRRRRRRRRQQQQQQQQQQQQOOOOOONNNNNNMMMLLLLLLLLLLLLKKKKKKLLLKKKJJJJJJJJJIIIHHHHHHHHHGGGHHHHHHGGGHHHGGGHHHGGGHHHGGGGGGHHHHHHIIIHHHHHHJJJIIIHHHHHHIIIJJJKKKIIIKKKLLLLLLLLLLLLMMMMMMMMMNNNOOOPPPOOOPPPPPPPPPPPPQQQRRRRRRRRRRRRSSSSSSSSSTTTTTTUUUTTTUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUWWWVVVUUUVVVVVVVVVWWWWWWWWWWWWWWWXXXXXXXXXXXXXXXXXXYYYYYYXXXXXXXXXYYYXXXWWWWWWWWWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWWWWWWWWVVVVVVVVVVVVVVVVVVVVVVVVVVVUUUTTTTTTTTTTTTTTTSSSSSSSSSRRRRRRRRRRRRRRRRRRRRRQQQQQQPPPPPPPPPPPPPPPOOOOOOOOOOOOOOONNNNNNNNNMMMMMMMMMLLLLLLLLLKKKKKKIIIIIIHHHIIIHHHGGGGGGGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGGGGGGFFFFFFFFFEEEFFFFFFFFFFFFEEEEEEEEEEEEEEEDDDDDDDDDDDDCCCCCCDDDDDDDDDEEEEEEEEEEEEEEEFFFFFFFFFFFFFFFEEEFFFFFFGGGGGGFFFGGGGGGHHHHHHHHHHHHIIIJJJJJJJJJJJJJJJJJJJJJKKKKKKKKKLLLLLLLLLKKKKKKKKKKKKKKKJJJJJJKKKJJJIIIIIIIIIIIIIIIHHHHHHHHHGGGGGGFFFEEEEEEDDDDDDEEEEEEEEEDDDDDDDDDCCCDDDDDDCCCCCCCCCDDDDDDDDDDDDDDDEEEEEEDDDFFFFFFFFFFFFFFFFFFFFFFFFGGGGGGHHHIIIIIIJJJJJJKKKLLLKKKLLLMMMMMMMMMOOONNNNNNNNNNNNMMMNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOONNNNNNPPPNNNOOOPPPOOOOOOPPPPPPPPPOOOPPPOOOOOOOOOPPPPPPPPPPPPQQQRRRRRRRRRRRRQQQQQQRRRQQQQQQQQQRRRRRRRRRRRRRRRRRRSSSRRRSSSRRRRRRSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSQQQRRRRRRRRRRRRSSSSSSRRRSSSRRRRRRRRRRRRRRRRRRQQQQQQQQQQQQQQQPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPOOOOOOOOOOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOONNNNNNNNNNNNPPPPPPOOOOOOOOOOOOOOOOOOOOOOOOPPPPPPPPPQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQPPPPPPOOOOOONNNNNNNNNNNNNNNMMMMMMMMMMMMLLLLLLMMMLLLLLLMMMMMMMMMMMMLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNNNOOOOOOOOOOOOPPPPPPPPPPPPPPPQQQQQQRRRRRRRRRSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTUUUVVVVVVVVVWWWWWWWWWXXXWWWXXXWWWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXWWWWWWWWWWWWWWWXXXXXXXXXXXXXXXWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWVVVVVVVVVVVVVVVVVVVVVVVVWWWWWWUUUTTTTTTTTTTTTTTTSSSTTTTTTVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWXXXWWWXXX

The other one which may be interesting is:

basename_returns_error_when_no_text_segment

My system:

  • Ubuntu 18.04
  • TabNine license activated: yes
  • Using default TabNine settings
  • Sublime text dev build 3180

Not sure if the code is reading memory that it isn't supposed to, but there we go.


No, this is not how I code; TabNine certainly did not learn it from me 🙃.

Go Semantic Completion installation failed on a Mac

My machine: MacBook Pro (MacOS Sierra 10.12.6)
Editor: Sublime Text (Version 3.1.1 Build 3176)
TabNine: Version 1.0.5
Other information: Paid License of TabNine

I tried to run TabNine::sem. It said that the Semantic Completion was enabled. However, when I started to type my Go code, it brought a message in the suggestions drop-down that the installation failed at running this command:

go get -u github.com/sourcegraph/go-langserver

I have manually run this command on my Mac and the thing installed without any errors. Not sure where to go look for errors.

Had to revert back by running TabNine::no_sem

Tab+number can be problematic

Feature Request.

So far I love this extension, but I am noticing some issues with the Tab+# feature. It's not broken, everything is working as expected. However, some times the auto complete will take over when I wish it wouldn't. For Example (in expressjs):

// I start with this:
res.s
// then I'll Tab once for this:
res.status(
// now what I am trying to get is res.status(403)
// but as soon as I hit 4 i might instead get this:
res.status(200).json({})

A lot of autocomplete software has this same "locked in" issue. I think one solution is to maybe allow the user to easily adjust the HotKeys in the config. And maybe have the default be a little more strict like Tab+Crtl+#. I do like the multiple tab presses feature ( Tab+Tab+Tab = Tab+3) i think this has less use cases of being annoying.

Setup:
sublime text 3 build 3207
TabNine version 2.1.11

Explicit invoke of code completion dropdown

It would be great to add the following pieces of functionality to the plugin:

  • being able to configure a delay until the dropdown with suggestions shows (default: 500ms);
  • being able to configure a shortcut that will trigger the code completion dropdowns. (default: ctrl-space)

While the suggestions are valuable, sometimes the constancy of it all becomes a bit much.

v2.5.1 No JSON object could be decoded; failed to add counter 'tot_0': c0000bb9...

After fresh install of Sublime 3 v3211 and package TabNine 2.5.1,
error:
Started TabNine v2.5.1
Failed to communicate with TabNine subprocess: No JSON could be decoded

if i run Sublime Text 3\Packages\TabNine\binaries\2.5.1\x86_64-pc-windows-gnu\TabNine.exe i get

failed to add counter 'tot_0': c0000bb9...
failed to add counter 'tot_1': c0000bb9...
failed to add counter '0_0': c0000bb9...
failed to add counter '0_1': c0000bb9...
failed to add counter '1_0': c0000bb9...
failed to add counter '1_1': c0000bb9...
failed to add counter '2_0': c0000bb9...
failed to add counter '2_1': c0000bb9...
failed to add counter '3_0': c0000bb9...
failed to add counter '3_1': c0000bb9...
failed to add counter '4_0': c0000bb9...
failed to add counter '4_1': c0000bb9...
failed to add counter '5_0': c0000bb9...
failed to add counter '5_1': c0000bb9...
failed to add counter '6_0': c0000bb9...
failed to add counter '6_1': c0000bb9...
failed to add counter '7_0': c0000bb9...
failed to add counter '7_1': c0000bb9...
failed to add counter 'net0_out': c0000bb9...
failed to add counter 'net1_out': c0000bb9...

this issue is similar to: #52 (comment)
from that issue i tried:

  1. latest tabnine binary but i get the same error

  2. correctly returns a json containing 2.5.1 as the version
    tabnine

  3. running cmd as admin but the error persist

  4. correctly shows two process of TabNine.exe

  5. binary 2.3.2 doesnt show the error

  6. binary 2.3.7 shows the error

  7. chml into tabnine.exe version 2.3.7 shows the same error
    tabnine_chml

  8. I have UAC turned off completely since the beginning and i have admin privileges

  9. Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz, 2601 Mhz, 4 cores (2 logical cores per physical)

  10. TabNine.exe --inner doesnt show the error

  11. lodctr /r didnt fix the error, lodctr /q shows everything enabled

  12. restart windows doesnt fix

  13. config web browser window opens most of the time. Sometimes conection gets rejected. (ERR_CONNECTION_REFUSED using chrome)

  14. bitdefender doesnt show anything wrong

https://docs.microsoft.com/en-us/windows/win32/sysmon/counters-add shows the error code

TabNine was unable to install javascript semantic completion backend

Not sure what it means in https://tabnine.com/semantic

  1. image

  2. image

But when I start typing, it shows the below message
image

Is it not working properly? It doesn't show the % like the videos from the blog post

The help page said

If the above steps don't work, check that the language server works when you run it in your terminal.

Which terminal and what language server does this mean???

I can get to the TabNine::config page and find the 2 files in C:\Users\jason_yu\AppData\Roaming\TabNine

But I am not sure what is the equivilance to this step for javascript or any other language other than GO

Assume for the sake of these instructions that you're trying to get go-langserver to work. Use "which go-langserver" in your terminal to find the absolute path to the language server.

which is not working in Sublime's console or cmd or powershell and I am not sure what is the "javascript-langserver"


Sublime Text: Version 3.2.1, Build 3207
OS: Windows 10 1903
npm: 5.6.0

Enhancement: Include gif in readme

Make the proposition/advantage/selling point of TabNine clearer.
Instead of elaborate sales script. What about including a picture or animated gif contrasting the autocompletion with and without TabNine? Include that in the README so it will appear on TabNine's packagecontrol site as well.

Such visual content would immediately communicate what TabNine can do for you.

As an inspiration see how the folks behind Kite do it:
https://youtu.be/bF50YPyUKTQ?t=87

Show percentage for auto suggestion

From the blog post, the auto suggestion shows the percentage for the pop up after the Tab
image

But from my machine, the suggestion in C# files only shows Tab
image

Is there a setting to show that?

The overlay gets stuck on screen

I'm using TabNine with Sublime Text 3 on Linux Mint (tested on XFCE and Cinnamon).

The auto-completion floating overlay will often get stuck on screen, on top of windows unrelated to source code. To hide it I need to bring up Sublime Text and point mouse away, then carefully put it back to background without triggering another overlay. It is very annoying and it made me disable TabNine plugin when I don't absolutely need it, which means I'm less likely to use it.

To me the solution would be to only show auto-completion overlays when text editor is in focus.

Plugin interferes with built-in snippet functionality

To insert a snippet in Sublime, you type a trigger word and press either Tab or Enter. However, it's not possible to use snippets after installing the plugin because it seems to redefine those keys.

I'd expect snippets to work even when the plugin is installed.

Sublime Text

An error occurred while trying to unzip the package file for Tabnine . Please try installing the package again

${project_root} resolves to the current file, not the project folder

TabNine 1.0.10 (free)
Sublime Text 3.1.1, Build 3176
macOS 10.14.2

I am trying to get semantic completion for C++ to work, yet cquery never gets past the initialization. When looking into the log, the following line stands out:
arguments: cquery --init={\"cacheDirectory\":\ \"/Users/me/git/cpphw/read_file.cpp/.cquery_cache\"}

After a few tests, it seems that the default args config for cquery substitutes ${project_root} to the current file name, not the folder it is in or, when having a project opened, the project root folder. Is there any other variable except project_root that could be used as a workaround?

Note that this issue might belong into the main TabNine repo, though I am unsure whether this is a problem restricted to Sublime Text or not.

Bug: TabNine should not displays suggestion in find box

When I type in Where: box, it displays suggestions even though when I hit Tab it doesn't complete the text but just jumps to Replace: box. And the suggestions box keep displaying on top of Find results page after. This is clearly not an intended behavior. Please let me know if there is an easy way to disable suggestions when I'm finding something.
image
image

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.