GoogleCloudPlatform / cloud-code-intellij

Plugin to support the Google Cloud Platform in IntelliJ IDEA - Docs and Issues Repository
Apache License 2.0
319 stars 59 forks source link

[Workaround] GAE Standard Web JSP Project fails to deploy on new instance of Intellij Ultimate.2022.2.2 clean install/plugin download #3101

Open sweeney1 opened 2 years ago

sweeney1 commented 2 years ago

Expected Behavior

Expect to launch the new project and deploy to local "Google App Engine Standard Local Server"

Steps.
Clean install of Intellij 2022.2.2 - Windows 10 Installed, selected Java 8 JRE Download latest G Code Cloud Plugin on first launch Chose Java EE (Legacy) and Web facets in intellij, as described here: https://www.jetbrains.com/help/idea/getting-started-with-google-app-engine.html Chose Maven Build Clean, install build working Tried to run on "Google App Engine Standard Local Server",

EXPECTED: Build and deploy to local Jetty server and launch Hello World index.jsp in browser on port 8080.

Actual Behavior

Deployment starts and then immediately starts downloading "Managed Google Cloud SDK - Installing app-engine-java" This process downloads, then fails .

Additional Information

Feel free to deviate from this template as needed, especially if you are submitting a feature request.

ivanporty commented 2 years ago

Hi @sweeney1 thank you for your report! It seems this could be related to long paths on Windows. Could you please try enabling them using these instructions here https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later, and then try to restart IDE and deploy AppEngine again - this should attempt to install the component again. Please let us know if this helps.

sweeney1 commented 2 years ago

Thank you very much that was the issue. Working fine now. I suspect Intellij People need to set this registry entry on install by default. I Opened a ticket with them as well and will update it but maybe you need to tell them so this isn't an issue going forward using IJ. Thanks again.

ivanporty commented 2 years ago

Great news @sweeney1, thanks for quick reply and confirmation. We will keep this issue open for other users to find an answer in case there are problems, and look for better solutions in the meanwhile.