Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`tabnine.disable_line_regex` does not work

See original GitHub issue

Please complete the following information:

  • OS version: Ubuntu
Linux CADENZA-JOSHUA 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:        20.04
Codename:       focal
  • Editor version 1.67.0
  • Programming language: tsx
  • TabNine extension version: 3.5.45

If the issue is related to TabNine failure, please provide log files:

Type TabNine::config in your editor, the logs are located at the bottom of the page

^^^ I followed these instructions, but do not see the logs on the “Tabnine Hub” page.

Editor console logs:

Help -> Toggle Developer Tools

Logs matching tabnine:

CRITI Extension 'TabNine.tabnine-vscode CANNOT USE these API proposals 'inlineCompletions'. You MUST start in extension development mode or use the --enable-proposed-api command line flag
log.ts:313   ERR [Extension Host] validating /home/joshua/.vscode-server/data/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.6/x86_64-unknown-linux-musl/TabNine timeout
console.ts:137 [Extension Host] validating /home/joshua/.vscode-server/data/User/globalStorage/tabnine.tabnine-vscode/binaries/4.4.6/x86_64-unknown-linux-musl/TabNine timeout
E @ console.ts:137

Issue Details:

What I Did

I followed the instructions in the Settings configuration description and set tabnine.disable_line_regex to an array including "require" like so:

    "tabnine.experimentalAutoImports": true,
    "tabnine.disable_line_regex": ["require"]

What I Expected

I expected Tabnine to be disabled when I’m typing in a line that included the word require (as the description for that setting says).

What Happened

When typing in the following line, Tabnine still showed tab-completable suggestions (suggested document as an auto complete):

const require = d

I tried other regexes that also didn’t work.


Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

talcodotacommented, May 12, 2022

We are currently working on a fix. Thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable TabNine extension for only one language?
I set mine to "tabnine.disabledLanguagesIds": [ "txt", "html"] . It works for me. Share.
Read more >
Disable Tabnine for specific file types
Tabnine Pro users can easily disable Tabnine for specific file types. Reach Tabnine Hub by typing 'tabnine::config' and set the extensions ...
Read more >
How to use matches method in java.util.regex.Pattern - Tabnine
Determines whether this string matches a given regular expression. ... PatternSyntaxException if the syntax of the supplied regular expression is not valid.
Read more >
How to turn off inline completions? - Tabnine
Set “inline_suggestions_mode” to false. Then Tabnine will work without inline suggestions but with the dropdown suggestion.
Read more >
How to use RichEmbed function in js - Javascript - Tabnine
async run(message, args, level, settings, texts) { // eslint-disable-line ... could not be found, or they simply may not have sent any messages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found