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 141895 - open a grails project cost a long time.
Summary: open a grails project cost a long time.
Status: RESOLVED DUPLICATE of bug 180230
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker with 2 votes (vote)
Assignee: Petr Hejl
URL:
Keywords: PERFORMANCE
: 141896 142004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-28 15:49 UTC by java0_0
Modified: 2012-01-04 16:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
my grails project (28.64 KB, text/plain)
2008-07-28 16:03 UTC, java0_0
Details
the state bar (18.51 KB, image/jpeg)
2008-07-28 16:06 UTC, java0_0
Details
my grails project that has delete lib and plugins (2.88 MB, application/x-compressed)
2008-08-06 15:11 UTC, java0_0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description java0_0 2008-07-28 15:49:00 UTC
It it cost me half an hour when I open a grails project that contain a lot of Controller and Domain class.
These Controller and Domain class  I not put them in the  root package but sub package.

The state bar show the follow infomation all the time :
Indexing D:\(my project path)
Scanning D:\(my project path)
Comment 1 java0_0 2008-07-28 16:03:22 UTC
Created attachment 65814 [details]
my grails project
Comment 2 java0_0 2008-07-28 16:06:54 UTC
Created attachment 65815 [details]
the state bar
Comment 3 martin_adamek 2008-07-28 19:47:16 UTC
*** Issue 141896 has been marked as a duplicate of this issue. ***
Comment 4 martin_adamek 2008-07-28 19:51:04 UTC
Can you count all groovy files in your project? How many of them you have. And also what si the average number of line in those files?
Comment 5 martin_adamek 2008-07-28 19:53:24 UTC
Also, if controller is in graduate directory, is it in code marked as class located in graduate package? I mean, if it has in class this statement:
package graduate
Comment 6 java0_0 2008-07-29 03:04:21 UTC
1. It has 275 groovy files in my  project,the average number of line in those files is 65.
2. Yes,it has this statement : package graduate

btw,I can open this project quickly use other IDE.
Comment 7 martin_adamek 2008-08-06 07:37:00 UTC
*** Issue 142004 has been marked as a duplicate of this issue. ***
Comment 8 martin_adamek 2008-08-06 07:40:34 UTC
Hmm, I tried to create bigger project with hundreds of groovy classes but scanning took about 36 seconds. I know there have been some issues in 
infrastructure, that should be fixed now, can you please try latest nightly build?
Comment 9 java0_0 2008-08-06 13:56:33 UTC
martin_adamek,thanks for your attention on the issues.
I try the latest nightly build 200808060201,but the issues all the same.
The scaning of the source folders takes half an hour.
Comment 10 martin_adamek 2008-08-06 13:59:37 UTC
I guess that you cannot attach your project here, is that right?
Comment 11 java0_0 2008-08-06 14:22:46 UTC
I am try attach my project but fail,the network speed is so low that I cann't upload.
I will try soon.
Comment 12 java0_0 2008-08-06 15:11:14 UTC
Created attachment 66703 [details]
my grails project that has delete lib and plugins
Comment 13 martin_adamek 2008-08-13 21:12:48 UTC
Ok, now I am able to reproduce it and I am investigating.
Comment 14 martin_adamek 2008-09-05 11:38:03 UTC
Ugly bug in NB infrastructure causing recompilation of all source on every startup is fixed and that means 2nd and all other starts of IDE are fast now. 
Remaining problem is the initial scan in fresh IDE, which takes really long time. I'll try to do something about it.
Comment 15 Petr Hejl 2008-12-11 10:30:49 UTC
This should be fixed together with rewrite to parsing API. It is the same area. The parsing API can help a lot.
Comment 16 Petr Hejl 2009-03-17 09:23:22 UTC
Now we have the parsing API merged. We should try to achieve further optimization.
Comment 17 Martin Janicek 2012-01-04 16:00:46 UTC

*** This bug has been marked as a duplicate of bug 180230 ***