- This topic has 7 replies, 3 voices, and was last updated 17 years, 6 months ago by myquji.
-
AuthorPosts
-
rogue_devMemberI just installed Eclipse 3.2 and ME 5.0.1GA (Pro)
In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
Source Folders: 2
Packages: 260
Classes/Interfaces: 1095
LOC: 122831I closed the properties, then opened it again. This time is showed (note the classes count):
Source Folders: 2
Packages: 260
Classes/Interfaces: 260
LOC: 122831Ok…, so I ran the Update again:
Source Folders: 2
Packages: 260
Classes/Interfaces: 109
LOC: 122831This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.
Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.
Also, could you report on the JSP’s?
Brian FernandesModeratorThe class count changing like that is really strange. The values in the file are only updated on demand, did you notice if the “Last Updated” time had changed?
The 109 instead of 1096 issue might have been a visual issue caused by the text being clipped – if you close and open the page does it still say 109? We’ll look into this one.
I’ll forward the JSP request to the management, would would you like to see reported – just the number of JSPs or more?
Best,
Brian.
rogue_devMemberYes, the last updated time has changed.
If it was just a clipping issue, why did it report correctly the first time?
If I close/open, then the class count goes back to 260, which is the package count.
As for JSP reporting, hmm…
The number of directories, files (JSP/HTML), fragments (JSPF), and a raw line count?
Of course someone WILL ask for a more “intelligent” LOC 🙂
rogue_devMemberWhere is this persisted? I could look at the raw information, maybe delete it and see if it reports correctly.
rogue_devMemberOk, I found the file it contains
#Mon Sep 25 11:29:13 PDT 2006 clsCnt=260 eclipse.preferences.version=1 locCnt=122844 pkgCnt=260 sTime=Sep 25 2006 11\:29\:13 srcCnt=2
I renamed the file, then went back to the stats screen. All the values were 0 and the date was n/a.
When I ran Update I got the right values, that is the class count showed as 1096.
When I looked into the file, the class count was 260. I ran update again and it showed 109 classes, but the file still showed 260 classes.
I played around a little manually changing the class count in the file, then re-opening the stats. There seems to be some threshold that triggers the bad count. It could be set higher than 260 (such as 1234), but it seems to ignore lower numbers than the previous count.
I could narrow it down more, but hey, you have the source code 🙂
Brian FernandesModeratorThanks for all that extra detail – I checked this myself and found something odd going on – thanks for pointing it out.
We’ll try to get this fixed by 5.0.3, though I don’t think any JSP statistics will be in.
Thanks again,
Brian.
myqujiMember@rogue_dev wrote:
I just installed Eclipse 3.2 and ME 5.0.1GA (Pro)
In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
Source Folders: 2
Packages: 260
Classes/Interfaces: 1095
LOC: 122831I closed the properties, then opened it again. This time is showed (note the classes count):
Source Folders: 2
Packages: 260
Classes/Interfaces: 260
LOC: 122831Ok…, so I ran the Update again:
Source Folders: 2
Packages: 260
Classes/Interfaces: 109
LOC: 122831This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.
Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.
Also, could you report on the JSP’s?
myqujiMember@rogue_dev wrote:
I just installed Eclipse 3.2 and ME 5.0.1GA (Pro)
In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
Source Folders: 2
Packages: 260
Classes/Interfaces: 1095
LOC: 122831I closed the properties, then opened it again. This time is showed (note the classes count):
Source Folders: 2
Packages: 260
Classes/Interfaces: 260
LOC: 122831Ok…, so I ran the Update again:
Source Folders: 2
Packages: 260
Classes/Interfaces: 109
LOC: 122831This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.
Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.
Also, could you report on the JSP’s?
-
AuthorPosts