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.

Bug 142145 - [65cat] "unable to resolve class" error in IDE, but app runs ok
Summary: [65cat] "unable to resolve class" error in IDE, but app runs ok
Status: VERIFIED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 21:39 UTC by goeh
Modified: 2008-10-30 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of error badges (9.09 KB, image/png)
2008-07-29 21:40 UTC, goeh
Details
Grails project with quartz plugin. PingJob.groovy shows error (622.77 KB, application/octet-stream)
2008-07-29 22:49 UTC, goeh
Details
Screenshot of errors in jobs/PingJob.groovy (17.55 KB, image/png)
2008-07-29 22:54 UTC, goeh
Details
A service class not found (9.44 KB, image/png)
2008-08-21 22:52 UTC, goeh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description goeh 2008-07-29 21:39:43 UTC
[ BUILD # : 200807280848 ]
[ JDK VERSION : 1.6.0_06 ]

I get a lot of error badges on lines referencing Groovy classes
(services) defined in plugins.
The application works fine. Even the lines indicated with errors
executes ok. So there is no runtime problem, only editor problem.
The IDE seems to have problem finding classes defined by plugins.

Also Groovy classes in the jobs folder (quartz plugin) cannot find
Groovy classes (domain classes, services, etc.). The jobs executes ok
so this is also just an IDE problem.

I will try to setup a testcase and attach it to the issue.
Comment 1 goeh 2008-07-29 21:40:42 UTC
Created attachment 65988 [details]
Screenshot of error badges
Comment 2 goeh 2008-07-29 22:49:20 UTC
Created attachment 65996 [details]
Grails project with quartz plugin. PingJob.groovy shows error
Comment 3 goeh 2008-07-29 22:54:14 UTC
Created attachment 65997 [details]
Screenshot of errors in jobs/PingJob.groovy
Comment 4 goeh 2008-08-21 22:51:15 UTC
Attaching a screenshot where a service referenced by BootStrap.groovy cannot be found. The application compiles and runs
fine.
Comment 5 goeh 2008-08-21 22:52:24 UTC
Created attachment 68068 [details]
A service class not found
Comment 6 martin_adamek 2008-08-22 13:17:10 UTC
Fixed. Errors should be gone and hyperlink between groovy classes should also work.
http://hg.netbeans.org/main/rev/e8ef5707b0f9
Comment 7 Quality Engineering 2008-08-23 05:20:00 UTC
Integrated into 'main-golden', available in build *200808230201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/e8ef5707b0f9
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #142145: [65cat] "unable to resolve class" error in IDE, but app runs ok
Comment 8 Lukas Jungmann 2008-10-02 11:27:39 UTC
reporter, can I ask you to verify this, please? Thanks.
Comment 9 goeh 2008-10-02 12:17:28 UTC
Verified.
References to services and quartz jobs are no longer displayed with error indicators.

There are still error badges on java source included in the acegi plugin (source root problem?), but I will report that 
in another issue.
Comment 10 Lukas Jungmann 2008-10-02 12:18:18 UTC
Thanks!
Comment 11 goeh 2008-10-02 12:26:59 UTC
The error badges on acegi plugin was some kind of caching problem.
Expanding all nodes and closing them again got rid of the last error badges.

v.