cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Config breaks when selecting 'store as project file'.

Open NathanielArmer opened this issue 3 years ago • 8 comments

Expected Behavior

Create a Cloud Run Config (e.g. to run locally, or deploy to cloud run). Click store as project file.

I expect a project file to be created that contains the config, and can be used to run/deploy my cloud run project.

Actual Behavior

A project file is created, but the 'builder' section of the config is lost, breaking the config.

Additional Information

  • IDE type (e.g. IntelliJ, Pycharm): Rider.
  • IDE version: 2021.1.2
  • Cloud Code version (Settings > Plugins > Cloud Code): 21.6.1
  • Cloud SDK (Settings > Cloud Code > Cloud SDK)
    • Are you allowing the plugin to manage the Cloud SDK: Not Sure.
    • Version of the Cloud SDK: Don't seem to have one?
    •       Google Cloud SDK 345.0.0
            bq 2.0.69
            core 2021.06.11
            gsutil 4.63
      
  • Operating System: OSX 11.4 (20F71)

NathanielArmer avatar Jul 29 '21 22:07 NathanielArmer

Thanks for the report @NathanielArmer! We're actively looking into the issue and will update with further questions/updates as necessary.

grmoon avatar Jul 30 '21 14:07 grmoon

Kamino cloned this issue to GoogleCloudPlatform/cloud-code-intellij-internal

grmoon avatar Jul 30 '21 15:07 grmoon

@NathanielArmer we have identified the root cause of this issue as an issue with the Rider platform code. We have filed an issue with JetBrains that can be tracked here.

Pending their response/fix, a workaround that we have found is to save the run configuration as a project file to a location other than the default .run directory. Specifically, you can save the run configuration to a non-hidden directory in your project and things should work as expected.

grmoon avatar Aug 02 '21 21:08 grmoon

@grmoon Thanks so much!

I tried making my configs in a non-hidden directory and it appears to work! Unfortunately Rider can't find them after closing the solution... but that's likely an entirely separate issue.

I appreciate your efforts, and look forward to the .run dir fix when the JetBrains teams has a resolution.

NathanielArmer avatar Aug 02 '21 23:08 NathanielArmer

@grmoon https://youtrack.jetbrains.com/issue/RIDER-66002 marked Fixed, anything changed for us in this issue?

ivanporty avatar Nov 03 '21 20:11 ivanporty

@grmoon https://youtrack.jetbrains.com/issue/RIDER-66002 marked Fixed, anything changed for us in this issue?

based on the resolution in the YouTrack issue, it looks like we'll need to implement the new com.intellij.baseDirectorySuggester extension point for 2021.3 and test in Rider before we can mark it as resolved.

grmoon avatar Nov 03 '21 20:11 grmoon

Setting priority to p3. Will triage as part of backlog grooming

emmanuelbaah avatar Feb 08 '22 16:02 emmanuelbaah

The team is still looking into this

peterlin741 avatar Aug 24 '22 14:08 peterlin741

Based on further investigation, this issue is not a high priority. WIll close for now.

ruomengz avatar Nov 08 '22 15:11 ruomengz