TabNine icon indicating copy to clipboard operation
TabNine copied to clipboard

Why is this a recommendation for every object I make?

Open EzequielDM opened this issue 4 years ago • 4 comments

please complete the following information:

  • OS version: Windows 10
  • Editor: vscode
  • Editor version: 1.60.2
  • Programming language: ts
  • TabNine extension version: 3.4.27
  • Engine version (could be located within Tabnine Hub): 3.6.8-40

Issue Details: Almost every time I open curly brackets, it suggests "teardown" and I have no idea what that's supposed to be and why, no matter the context, it shows "teardown" as a suggestion. On the other files after writing some code it stopped showing "teardown" as an option, but on new files, it still likes "teardown" a lot.

Example

gz#6870

EzequielDM avatar Sep 24 '21 08:09 EzequielDM

Also, complementing with more examples.

Example 2

It doesn't seem to care where it's or what context, if it's the second object inside an array, it shows "teardown"

Example 3

EzequielDM avatar Sep 24 '21 08:09 EzequielDM

To figure out the cause, you need to locate your binary files and run the engine directly.

On Tabnine Hub, scroll down to the Engine file path, and find the Tabnine file path. Try to run the following command from the terminal using the right path:

PATH_TO_ENGINE/TabNine.cmd --log_to_stderr

Also, there are logs at: C:\Users\{UserName}\AppData\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\{Binary_Version}\x86_64-pc-windows-gnu/

Would you please collect the output to a file and share it with us?

maya-tabnine avatar Sep 30 '21 13:09 maya-tabnine

I have the same:

image

Unfortunately I've the free version where this cannot be changed in the settings.

@maya-tabnine I've tried your recommendation, but it doesn't use that engine in VSCode... I tried again by disabling the Tabnine extension but that doesn't show me (suprise suprise) any tabnine autocomplete. In both cases the logs are not changed when doing that. How do I run the engine in VSCode with the extra parameter? Thx!

jaques-sam avatar Dec 15 '21 10:12 jaques-sam

I've found some kind of workaround by adding this to my settings file, but of course that's not the ultimate solution as a lot of program structures use the curly brace:

    "tabnine.disable_line_regex": ["{"],

jaques-sam avatar Dec 15 '21 10:12 jaques-sam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 03 '22 09:10 stale[bot]