The editor of netbeans cannot resolve grails plugins classes located in the home. With 'Resolve plugins' nothing happens and the import errors still remain. Tried with grails 1.1 on ubuntu and netbeans 6.7 rc2.
This is strange. Can you provide a steps to reproduce (or the project itself)? For example create project, do this and that. BTW Do the home directory contains the jars? If you have checkout the project you have to run it once to download missing plugins.
I will provide a simple project. In the meanwhile I can say that I have created a simple grails 1.1.1 project (I am using ubuntu 9.04) with netbeans 6.7rc2, added acegi plugin (spring security), tried to use @Secured annotation (import org.codehaus.groovy.grails.plugins.springsecurity.Secured) but the editor marks it as an error but the project runs flawlessy. Thank you.
Created attachment 83773 [details] Project with a test controller with Secured class import with errors
Reproducible.
Fixed in web-main 0441f185a7c8.
Integrated into 'main-golden', will be available in build *200907010200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0441f185a7c8 User: phejl@netbeans.org Log: #167284 Editor doesn't resolve grails plugin classes
This issue has still not been resolved. I am running the latest development build (from yesterday) on Mac OSX 10.6, and my collegue has the same issue on Ubuntu 10.4 on Netbeans 6.9
(In reply to comment #7) > This issue has still not been resolved. I am running the latest development > build (from yesterday) on Mac OSX 10.6, and my collegue has the same issue on > Ubuntu 10.4 on Netbeans 6.9 Just forgot - I am also running Grails 1.3.4
I too am experiencing this issue with Netbeans 6.9/Grails 1.3.4 on Windows XP and with Netbeans 6.9.1 and Grails 1.3.4 on Windows Vista.
Same problem here. Very annoying... Product Version: NetBeans IDE 6.9.1 (Build 201011082200) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307 System: Mac OS X version 10.6.5 running on x86_64; MacRoman; nl_NL (nb) Grails: 1.3.5 Groovy: 1.7.5 I created the project from the command line; also installed the Spring Security Core plugin from the command line (it does show up in the plugins list in NetBeans). Building up the following statement using autocomplete works, but after that it complains that it can not resolve the class. import grails.plugins.springsecurity.Secured // <-- Can not resolve class grails.plugins.springsecurity.Secured The code does compile and run without problems
Additional info. When I type: import grails.plugins.springsecurity.* @Secured('ROLE_ADMIN') the resolve problem on the import goes away, but now it complains about resolving @Secured. When I import another class from the same package, there's no issue: import grails.plugins.springsecurity.SecurityConfigType // works import grails.plugins.springsecurity.DigestAuthPasswordEncoder // works import grails.plugins.springsecurity.Secured // fails to resolve Secured is a public @interface. Maybe that's the issue?
Hi guys, I'm trying to fix the issue but I not able to unpack attached project for some reason. Could anyone provide a similar simple project so I'll be able to reproduce the issue? From the latest comments it seems that the issue is happening only with Grails 1.3.4 / 1.3.5, so it might be already fixed together with issue 206198. (the fix improves classpath resolving for subdirectories)
*** Bug 188611 has been marked as a duplicate of this bug. ***
*** Bug 170517 has been marked as a duplicate of this bug. ***
I've fixed the unpacking problem - I'm able to reproduce the issue even with 206198 fix.
I've been looking around a little bit and the problem is definitely caused by annotation types (doesn't matter if it's spring Secured or some annotation created by user).
Fixed in: http://hg.netbeans.org/web-main/rev/ddd83054b1d4 It should be in the daily build in a few days.. would be great if anyone could confirm it works correctly (I've tried only most basic use case). Thanks in advance
Integrated into 'main-golden', will be available in build *201210090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ddd83054b1d4 User: Martin Janicek <mjanicek@netbeans.org> Log: #167284 - Editor shows error when importing annotation type inside groovy file