GoogleCloudPlatform / cloud-code-vscode

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

Skaffold error using VSCode and Google Cloud SDK on Windows 11 #944

Open stanleypendergraft opened 1 month ago

stanleypendergraft commented 1 month ago

Environment: (Hint: "Report Extension Issue on Github" command will fill these out for you.)

Version information

Cloud Code Extension version: v2.19.0

VSCode version: 1.93.1

OS: Microsoft Windows 11 Enterprise version 10.0.22631 Build 22631

Cloud SDK: Google Cloud SDK 497.0.0 alpha 2024.10.11 beta 2024.10.11 bq 2.1.9 core 2024.10.11 gcloud-crc32c 1.0.0 gke-gcloud-auth-plugin 0.5.9 gsutil 5.31 kubectl 1.30.5 minikube 1.34.0 skaffold 2.13.1

Description:
Error. Output detail tab. Problems with spaces in path. Running skaffold command: cmd.exe /c C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe init --artifact {"image":"hello-world-1","builder":"Docker","payload":{"path":"Dockerfile"}} --kubernetes-manifest C:\Windows\Temp\cloud-code-cloud-run-bnDO0T\pods_and_services.yaml --filename C:\Windows\Temp\cloud-code-cloud-run-bnDO0T\skaffold.yaml --force 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

Repro step: Running hello world .NET:Cloud run application in Cloud Emulator. Output tab. Starting to run the app using configuration 'Cloud Run: Run/Debug Locally' from .vscode/launch.json... To view more detailed logs, go to Output channel : "Cloud Run: Run/Debug Locally - Detailed" Dependency check started Dependency check succeeded 'C:\Program' is not recognized as an internal or external command, operable program or batch file. 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

slde12 commented 1 month ago

Thanks for the feedback, this is currently under our investigation.

SyntheticTV commented 3 weeks ago

I am having the same issue.

Windows 11 Home

C:\Program Files (x86)\Google\Cloud SDK>gcloud --version Google Cloud SDK 499.0.0 alpha 2024.10.25 beta 2024.10.25 bq 2.1.9 core 2024.10.25 gcloud-crc32c 1.0.0 gke-gcloud-auth-plugin 0.5.9 gsutil 5.31 kubectl 1.30.5 minikube 1.34.0 skaffold 2.13.1

Docker Desktop 4.32.0 (157355) Engine: Version: 27.0.3 API version: 1.46 (minimum version 1.24) Go version: go1.21.11

I don't know if this is relevant but I reinstalled both Google Cloud SDK and Docker and when installing I did see that when installing Cloud SDK it says that kubectl is already in path at C:\Program Files\Docker\Docker\resources\bin\kubectl

Running skaffold command: cmd.exe /c C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\skaffold.exe init --artifact {"image":"synAI","builder":"Buildpacks","payload":{"path":"package.json","builder":"gcr.io/buildpacks/builder:v1"}} --kubernetes-manifest C:\Users\DELETEDFORPOST\AppData\Local\Temp\cloud-code-cloud-run-384QVG\pods_and_services.yaml --filename C:\Users\DELETEDFORPOST\AppData\Local\Temp\cloud-code-cloud-run-384QVG\skaffold.yaml --force 'C:\Program' is not recognized as an internal or external command, operable program or batch file.