This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I couldn't find this issue when I searched, so I will post it. I am behind a corporate proxy, and when I try to use the Grails Plugin dialog, I get a simple error: Plugins list cache does not exist or is broken, recreating ... Plug-ins available in the Grails repository are listed below: ------------------------------------------------------------- Unable to list plug-ins, please check you have a valid internet connection To find more info about plugin type 'grails plugin-info [NAME]' To install type 'grails install-plugin [NAME] [VERSION]' For further info visit http://grails.org/Plugins I can't imagine my internet connectivity being broken (since I'm submitting this bug right now with the computer, but I do believe it is a proxy issue, since I've had problems with this in the past with the Ruby plugin. I have NetBeans set up with the proxy, so getting plugins from NetBeans itself works, as well as using Ruby's Gem utility from NetBeans as well.
Created attachment 66458 [details] this patch loads netbeans proxy prefences before to execute a grails command
Unfortunately this patch won't solve the problem afaik. There is a "grails set-proxy" command that will let you configure the proxy (so this is workaround for the reporter). However this configures the proxy for the whole user's grails environment (not just single project) and I'm afraid it's too expensive and inconsistent to invoke it before every project. To configure proxy we can use JAVA_OPTS env variable, but if the user configured the proxy via set-proxy the latter will be preferred anyway. I'll investigate it bit more but right now I would suggest to detect grails proxy settings and in case there is any such configuration to notify user and let him choose whether he want to delete this configuration (and use the ide settings) or leave the grails settings (overriding those defined in the ide). Such dialog should have option "remember my decision" option. There are also similar options like to offer reconfiguration of grails proxy settings to those configured in the IDE.
So the problem is that we have two proxy settings (grails, ide) and we can't freely choose. In case grails proxy is configured it will be always used no matter what we set in JAVA_OPTS.
I realized that maybe we don't have to introduce bullet proof solution. We can just past IDE proxy settings as JAVA_OPTS. For user that does not know set-proxy this will work as expected. If the user previously used set-proxy he made it consciously and configure the proper values, so it will work as well. If the collision issue became relevant (imo it is corner case now) we can introduce suggested dialog.
Fixed in main 209720b4c0fc.
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/209720b4c0fc User: phejl@netbeans.org Log: #142475 Grails Plugin dialog doesn't work behind a proxy