GoogleCloudPlatform / google-cloud-eclipse

Google Cloud Platform plugin for Eclipse
Apache License 2.0
86 stars 49 forks source link

Run As > Run on Server need not refresh server adapter list #251

Open elharo opened 8 years ago

elharo commented 8 years ago

This may be out of scope for the plugin, i.e. possibly an issue with WTP, but if there's any way we can avoid refreshing the server adapter list when we Run As > Run on Server, that would save on the order of a minute of the user's time per run.

image

elharo commented 8 years ago

Probably related to this show downloadable server adapters preference and adjustable by user:

image

elharo commented 8 years ago

Per @briandealwis "The server refreshing behaviour is a very annoying Eclipse WTP behaviour. You can disable it from by opening Windows > Preferences > Server and then changing 'Update cache frequency' to 'Manual'. They're changing this for the next release (Oxygen)."

briandealwis commented 8 years ago

Sadly WTP's Server UI uses old-style preferences which can't be overridden with -pluginCustomization. The only way to change this is either via the Preferences UI described above, or by putting the following content in ${workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.server.ui.prefs before launching:

eclipse.preferences.version=1
cache-frequency=0
elharo commented 6 years ago

@briandealwis Is this obsolete now that Mars is gone?

elharo commented 6 years ago

Still seems to happen in Oxygen.

briandealwis commented 6 years ago

I cannot recall what made me think they were changing the default. I think our Run As > App Engine provides an acceptable workaround for this issue. I think the only real solution is to enhance the WTP wizard to grey out the cached servers during their update, and make the server update not block the dialog.