Closed vesperusiak closed 2 years ago
hi @vesperusiak thanks for reporting. Is this still happening?
You mentioned:
configurations work ok on different machine
So I'm wondering maybe if this was a transient error.
If you can still reproduce, could you maybe share relevant snippets from the IDE logs? You can access them from the Help menu: Help > Show Log in Editor
, and then trigger this failure and hopefully there should be some information in the logs.
The issue is solved. The problem was that I installed gcloud outside the Goland, it somehow broke the tool. Before writing this issue I removed the outside gcloud installation so in logs i found only calls to non existing gcloud installation. Cleanup after old installation and reinstall of the tool helped.
@etanshaul There is another thing. I uninstalled gcloud, followed all steps here: https://cloud.google.com/sdk/docs/uninstall-cloud-sdk and installed it again in different folder. The cloud code still tries to use the old version though (in old location). From where the Cloud Code takes gcloud location? I would like to change the entry there.
hey @vesperusiak. Yeah, by default Cloud Code will use its own managed dependencies.
However, you can update this in the Preferences under Tools > Cloud Code > Dependencies:
To use your own Cloud SDK installation, select Use a custom local isntallation
and browse to it.
Ok, so i selected Use a custom local installation
, used a new one, existing installation, but it still uses the old one. The error msg says:
error executing access token command "/Users/idego/Documents/google-cloud-sdk/bin/gcloud config config-helper --format=json": err=fork/exec /Users/idego/Documents/google-cloud-sdk/bin/gcloud: no such file or directory output= stderr=
the error pops up when i try to run/debug with cloud code: Kubernetes config at stage when it starts deploy.
Hi @vesperusiak I'm a little confused what the expected behavior is, vs what you are seeing. The path you pasted in the error message looks like a custom path. This is not the managed Cloud SDK path (which seems correct because you chose not to allow the plugin to manage the Cloud SDK). Is this not the path that you entered under "Use a custom local installation"?
Could you share the path you entered in the settings so we can compare to the error message?
Sure, the path that i entered is /Users/idego/google-cloud-sdk
.
Thank you. That is odd. I will try to reproduce this.
Silly question. But if you go back into your settings, to view the path saved under Use a custom local installation
, does it show the one under ~/google-cloud-sdk
or ~/Documents/google-cloud-sdk
?
I cannot reproduce this. I'm asking the above in case something didn't get persisted and saved properly, due to a bug maybe.
When I go back and view It shows one under ~/google-cloud-sdk.
I have this same issue on IntelliJ IDEA 2021.2.4 (Ultimate Edition). It tells me to select a profile, but that dropdown is greyed out. The plugin was installed from within IntelliJ in my case though. I have tried reinstalling the plugin anyway, but to no avail. Currently therefore on version 22.4.2-212 of the plugin, though the problem started appearing before (not sure exactly from what version on)
Expected Behavior
After choosing the scaffold configuration in the dialog. I can choose a deployment profile.
Actual Behavior
When I choose a configuration (configurations work ok on different machine) nothing happens. There is a message: "Invalid Data: Select or create a skaffold profile on the Build/Deploy tab". I cannot select/add profile even though configuration was choosen.
Additional Information
Feel free to deviate from this template as needed, especially if you are submitting a feature request.