gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.56k stars 1.2k forks source link

Support using Tabnine with Gitpod #8776

Open smacintyre opened 2 years ago

smacintyre commented 2 years ago

Is your feature request related to a problem? Please describe

Last year GitPod claimed that TabNine would work with Gitpod. However, it still doesn't. I cannot authenticate and use the pro features I'm paying for.

image

If I try to login, I get redirect to 127.0.0.1:5555:

image

It's really frustrating that this was announced 6 months ago but tabnine still isn't supported.

Describe the behaviour you'd like

I can authenticate so I can my Tabnine features.

axonasif commented 2 years ago

You can use Open in vscode option in Gitpod and maybe you will be able to login then but I guess that's not what you want since you will have to use VSCODE locally then.

smacintyre commented 2 years ago

@axonasif Running local completely defeats the point and value of gitpod. It should work in gitpod directly.

mustard-mh commented 2 years ago

@smacintyre This is because Tabnine server behaves like this. Can't resolve it, but we can temp resolve it

  1. click Sign in with Tabnine to xxx port 5555 will start listening
  2. Tabnine will open a tab link to 127.0.0.1:5555/xxxxx to auth back
  3. Run $ curl -L <tabnine_auth_back_url> in browser code terminal to get our auth info

~3. Open port in browser code like image below, copy its URL like https://5555-gitpodio-templatetypescr-hpp3558c4lo.ws-us38.gitpod.io/home~ ~4. Paste https://5555-gitpodio-templatetypescr-hpp3558c4lo.ws-us38.gitpod.io to all tab redirect to 127.0.0.1:5555 in step2 (I do this twice~

Then we got Tabnine login succeed

~Open Port~ Succeed
image image
mustard-mh commented 2 years ago

~Can we hook hosts like 127.0.0.1 localhost in simple browser service worker, so that users can simply paste auth back URL to login?~

Not correct behavior

cc @jeanp413

mustard-mh commented 2 years ago

Maybe we can file an issue to Tabnine, to ask if they want to use polling instead of auth back. Because it does not work in code browser (Github Codespaces included)

cc @jeanp413 @smacintyre

smacintyre commented 2 years ago

@mustard-mh Since, as per the blog post, Gitpod is partnered with Tabnine, I assume you have channels for escalating this. I mean, it's within both company's interest to have Tabnine working in Gitpod. The customer base overlaps.

Thank you for looking into this.

mustard-mh commented 2 years ago

@smacintyre I see, we can run curl -L <tabnine_auth_back_url> in browser code to auth back, it's a simple temp solution for now 😄

Gitpod is partnered with Tabnine, I assume you have channels for escalating this.

I'll ask if we are and we have 🙏

loujaybee commented 2 years ago

@mustard-mh Since, as per the blog post, Gitpod is partnered with Tabnine, I assume you have channels for escalating this. I mean, it's within both company's interest to have Tabnine working in Gitpod. The customer base overlaps.

We appreciate your patience, @smacintyre, we're speaking with the Tabnine folks now to try and resolve.

Relates to:

loujaybee commented 2 years ago

So, some changes were added by @dimacodota https://github.com/codota/tabnine-vscode/pull/801 to try and address the issue, however I still have issues with the sidebar not authenticating properly still.

stale[bot] commented 2 years 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.