codota / tabnine-vscode

Visual Studio Code client for Tabnine. https://marketplace.visualstudio.com/items?itemName=TabNine.tabnine-vscode
https://www.tabnine.com/install/vscodeֿ
MIT License
1.36k stars 176 forks source link

Wrong roaming appdata location !!!promised to fix, but didn't happen!!! #1025

Closed mniesen closed 1 year ago

mniesen commented 1 year ago

please complete the following information:

Issue Details: Tabnine doesn't install properly. This is because the appdata path is wrong. Your using not using %appdata% as an environment variable but rather assuming that roaming appdata will be located on the C drive. In Windows you can use something called folder redirection, this allow for example to place the roaming appdata folder on a network drive. This is the case on my pc. When installing tabnine it creates a folder C:\fldrredir$\{username}\AppData\Roaming\..

fldrredir${username}\AppData\Roaming\ = the folder on a network drive where my roaming appdata is actually stored {username} = actually my username is here

Tabnine assumes that in C:\fldrredir$\{username}\AppData\Roaming\.. my vscode folder is located which is not the case. As a result I get errors that tabnine thinks that my internet connetion isn't working properly.

gz#21289

(related to Zendesk ticket #21289)

yonip23 commented 1 year ago

Hi @mniesen, thanks for reaching out! I appreciate your help with the investigation of the issue, but I suspect this might not be the case - As far as I can tell, we're using Windows' KNOWNFOLDERID called FOLDERID_RoamingAppData: image

Are you using a proxy / remote machine / any kind of setup that might require some additional steps to set up an internet connection properly?

Also, can you please attach the following data for us to troubleshoot your issue:

  1. Your Tabnine engine logs
  2. Your config file

You can find the how-to's here If you don't feel comfortable sharing it here, you can send it to support@tabnine.com, and we'll continue the discussion there.

Kind regards, Yoni

mniesen commented 1 year ago

Hi @yonip23

My roaming appdata location is under \\theNameOfTheServer\fldrredir$\AppData\Roaming\ not on my C: drive. In the picture you sent me on the row of default path they use %userprofile%. This is not correct, the roaming appdata folder doesn't need to be under the user's profile folder. In the programs that I built I used %APPDATA% (in nodejs process.env.appdata) which should be the same. So perhaps there is a fault on Microsoft's website? In the logfile attachted I saw that somethimes "\\\\theNameOfTheServer\\fldrredir$\\myRealUsername\\AppData\\Roaming\\TabNine\4.4.243\\TabNine-deep-local.lockce94127b" was used (this is the correct path). But on the beginning of the file \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\ was used (which is not the correct path). This is something I believe is also wrong: \\\\?\\C:\\fldrredir$\\myRealUsername\\AppData\\Roaming\\Code\\User\\globalStorage\\ Could their be a problem with the backslashes in my path?

Note: The name of the server is replaced with theNameOfTheServer and my username with myRealUsername

yonip23 commented 1 year ago

Thank you for sharing your logs, and the details you provided are indeed helpful 🙂

Can you please try setting an environment variable called TABNINE_BINARIES_DIR to the desired location? I believe it should be \\\\theNameOfTheServer\\fldrredir$\\myRealUsername\\AppData\\Roaming\\Code\\User\\globalStorage\\tabnine.tabnine-vscode\\binaries\\4.4.243\\x86_64-pc-windows-gnu\\

Then, please do the following:

  1. close your IDE
  2. kill all Tabnine processes (any of these if exists: TabNine, TabNine-deep-local, TabNine-deep-cloud, WD-TabNine)
  3. Start your IDE

Let me know if this is of any help.

Kind regards, Yoni

mniesen commented 1 year ago

Do I have to remove the extension before doing this and install it again afterwards?

yonip23 commented 1 year ago

No need to uninstall and re-install - just follow the provided steps 🙂

mniesen commented 1 year ago

I set the environment variable and did the instructions, unfortunately without any success. Note: the version of the binaries changed to 4.4.249 so I used this in the environment variable instead of 4.4.243.

yonip23 commented 1 year ago

Can you please attach your binary and IDE logs? IDE logs are available in Help -> Toggle Dev Tools -> console

I've opened an internal issue with your case, and our team will take a look and prioritize your issue. We're sorry for the inconvenience, and thank you for reporting!

mniesen commented 1 year ago

By binary do you mean the contents of the binaries folder?

yonip23 commented 1 year ago

I mean the log file similar to the one you attached earlier - tabnine_rCURRENT.log-xxx - please attach all of these log files (xxx is the process id, so every time you re-run your vscode a different log file will be created)

mniesen commented 1 year ago

-18864_rCURRENT.log binaries.zip

yonip23 commented 1 year ago

I'm sorry for not getting back to you sooner. Can you attach your IDE log file as well? IDE logs are available in Help -> Toggle Dev Tools -> console

To get the relevant logs, please restart your IDE - you should see a log line that starts with "spawning binary with command:". Please attach all the logs you can get once you see this log line.

Kind regards.

mniesen commented 1 year ago

Help -> Toggle Dev Tools -> console

after installing

console.ts:137 [Extension Host] spawning binary with command:  \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.4.273\x86_64-pc-windows-gnu\TabNine.exe  args:  --client=vscode --no-lsp=true --log-file-path=h:\desktop\-4816 --client-metadata clientVersion=1.76.2 pluginVersion=3.6.43 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Default Dark+ Experimental vscode-theme-kind=Dark vscode-machine-id=d6eaafe42bd98d542bc14b65868b32233cd85bf88022ca10779385ebe05be213 vscode-is-new-app-install=false vscode-session-id=6c87f975-7fa2-4541-b8f7-236dea1bd8f81679379894821 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true ide-restart-counter=0

console.ts:137 [Extension Host] capabilities resolved immediately

console.ts:137 [Extension Host] No storagePath, languagetool-languageserver logging disabled.

console.ts:137 [Extension Host] Creating server

Here is the log file associated with this launch.

after restarting vscode

console.ts:137 [Extension Host] spawning binary with command:  \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.4.273\x86_64-pc-windows-gnu\TabNine.exe  args:  --print-version

console.ts:137 [Extension Host] spawning binary with command:  \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.4.273\x86_64-pc-windows-gnu\TabNine.exe  args:  --client=vscode --no-lsp=true --log-file-path=h:\desktop\-19352 --client-metadata clientVersion=1.76.2 pluginVersion=3.6.43 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-remote-name=undefined vscode-extension-kind=1 vscode-theme-name=Default Dark+ Experimental vscode-theme-kind=Dark vscode-machine-id=d6eaafe42bd98d542bc14b65868b32233cd85bf88022ca10779385ebe05be213 vscode-is-new-app-install=false vscode-session-id=db41a66a-daad-4aaa-82a8-7fe16113b9dd1679380107434 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true ide-restart-counter=0

console.ts:137 [Extension Host] activating extension

console.ts:137 [Extension Host] starting language server

log.ts:404   ERR [Extension Host] validating \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.4.273\x86_64-pc-windows-gnu\TabNine.exe timeout

console.ts:137 [Extension Host] validating \fldrredir$\myRealUsername\AppData\Roaming\Code\User\globalStorage\tabnine.tabnine-vscode\binaries\4.4.273\x86_64-pc-windows-gnu\TabNine.exe timeout

console.ts:137 [Extension Host] Express server listening on port: 50229

Here is the log file associated with this launch.

yonip23 commented 1 year ago

Thank you. It looks like we have an issue in the vscode plugin, where we misinterpret the path in case it's not a local path. I'll take it with my team and we'll prioritize a fix for this.

Kind regards

stale[bot] commented 1 year ago

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.

mniesen commented 1 year ago

I can still confirm that the problem is not solved, therefore I hope this problem will not we marked as stale. Two months ago there was mentioned that this would be prioritized.

mniesen commented 1 year ago

I can still confirm that the problem is not solved, therefore I hope this problem will not we marked as stale. Two months ago there was mentioned that this would be prioritized.

yonip23 commented 1 year ago

@mniesen We're sorry for the inconvenience. We added this bug to our backlog and will work on it as soon as possible. I hope you understand that we're working on many other features and bug fixes and we try to prioritize everything in the best interest of our user base 💜 I pinged my teammates regarding this issue again, and hopefully, your issue will be pushed up the backlog soon.

Kind regards