GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
420 stars 112 forks source link

Extension isn't working with Rancher Desktop #917

Closed progvb closed 4 weeks ago

progvb commented 5 months ago

Same as https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/830 - the issue still persists even with the latest version:

Version information

Cloud Code Extension version: v2.13.0

VSCode version: 1.91.0

OS: Windows 11

Cloud SDK: 482.0.0 (2024-06-25)

Skaffold: N/A

Kubectl: N/A

Description:

Repro step:

  1. Open a project with Apigee X proxies in VS Code.
  2. Go to APIGEE tab in CLOUD CODE extension. Under emulators you will see "❗ Listing failed due to Docker errors".
image

See https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/830#issuecomment-1927150135 and https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/830#issuecomment-2146482030 as well.

CC: @ametelski

progvb commented 3 months ago

Rancher Desktop 1.15.0 has been released. I've updated my system to use it. I also updated to the latest Cloud Code extension version (2.16.0).

Unfortunately, the Cloud Code extension still doesn't work with Rancher Desktop (any version from the past 2 years).

witodev commented 3 months ago

Same problem, looks like plugin is searching for Docker Desktop.exe: Screenshot 2024-08-09 120433

glouischandra commented 2 months ago

Hello @progvb are you running vscode in WSL or directly in Windows? If directly on Windows, if you have Docker Desktop installed or you run docker in some other way?

progvb commented 2 months ago

@glouischandra

are you running vscode in WSL or directly in Windows? If directly on Windows, if you have Docker Desktop installed or you run docker in some other way?

No (to both questions).

I'm running VS Code directly in Windows.

I can't run Docker Desktop on my machine - it's prohibited by the company policy. We must use Rancher Desktop instead.

The extension stopped working with Rancher Desktop in version 1.22.0 (July 2023). It never got fixed since then, please see issue #830 as well.

I've updated gcloud components, Cloud Code extension, VS Code, Rancher Desktop to the latest versions, but still getting the same error message:

image

I'm running on:

AlbertoMonteiro commented 1 month ago

@progvb did you found any workaround?

I am facing same issue as you, Windows + Rancher Desktop

AlbertoMonteiro commented 1 month ago

@progvb Fun fac, I opened VS Code from my WSL Ubuntu, and the emulator worked.

image

But in Windows, it required the Docker Desktop

image

progvb commented 1 month ago

@AlbertoMonteiro

Thank you for sharing your workaround.

Running VSCode from WSL Ubuntu did seem to solve the "Cannot find path to Docker Desktop.exe in registry" issue!

maxrandolph commented 4 weeks ago

Hi @progvb, could you update your extension to the latest version (2.20.0) and see if this issue is persisting? This should be fixed in today's release.

AlbertoMonteiro commented 4 weeks ago

@maxrandolph

I am with the newest version but it didn't change, same error.

image

progvb commented 4 weeks ago

@maxrandolph

Thank you for the update. Unfortunately this is not working on my machine.

image

I've opened a new issue #955 since this one was closed.