Hello,
I use MoreUnit since a long time, and i have today a strange behaviour. Each time i save my (Java) project, a lot of "Update MoreUnit Annotations" tasks are launched (visible in Progress View), and freeze a little Eclipse.
I work on a project which use a lot lombok annotations.
My eclipse and plugins version :
Eclipse IDE for C/C++ Developers 4.4.1.20150109-0740 epp.package.cpp null
m2e-wtp - Maven Integration for WTP 1.1.0.20140611-1646 org.eclipse.m2e.wtp.feature.feature.group Eclipse.org - m2e-wtp
MoreUnit For Java 3.0.5 org.moreunit.feature.group MoreUnit.org
MoreUnit For Java: Mock Support 3.0.5 org.moreunit.mock.feature.group MoreUnit.org
MoreUnit Light 3.0.5 org.moreunit.light.feature.group MoreUnit.org
TestNG 6.8.6.20141201_2240 org.testng.eclipse.feature.group Cedric Beust
YEdit Feature 1.0.16 org.dadacoalition.yedit.feature.group YEdit Project
Lombok v1.16.0
Eclipse
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Hi Antoine,
Could you please try editing+saving in turn a file making use of Lombok, and one that doesn't? Is the behavior observable in both cases?
Thanks in advance
Hi Nicolas,
No, in fact it means there is no connection between lombok and this problem.
When i put focus on my java file I have one "Update MoreUnit Annotations" task, if I save my java file, two tasks are launched.
But what this task do ?
The task is responsible for annotating methods having tests with a green marker.
With Jconsole, I found where the problem come from :
I have a lot of thread which wait here :
Worker-42 [897] (RUNNABLE)
java.io.WinNTFileSystem.getBooleanAttributes line: not available [native method]
java.io.File.exists line: not available
lombok.core.configuration.FileSystemSourceCache.sourcesForJavaFile line: 55
lombok.core.LombokConfiguration$3.createResolver line: 72
lombok.core.LombokConfiguration.read line: 66
lombok.core.AST.readConfiguration line: 426
lombok.core.handlers.HandlerUtil.toAccessorName line: 289
lombok.core.handlers.HandlerUtil.toAllAccessorNames line: 359
.....
org.moreunit.util.SearchTools.search line: 44
org.moreunit.util.SearchTools.searchFor line: 36
org.moreunit.matching.CorrespondingTypeSearcher.findPotentialTargets line: 73
org.moreunit.matching.CorrespondingTypeSearcher.getMatches line: 57
org.moreunit.elements.TypeFacade.getCorrespondingClasses line: 207
org.moreunit.elements.ClassTypeFacade.getCorrespondingTestCases line: 78
org.moreunit.elements.ClassTypeFacade.hasTestCase line: 179
org.moreunit.decorator.UnitDecorator.decorate line: 54
....
And that's a problem not only for moreunit or eclipse, but for others IDE too on Windows.
https://www.google.fr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=java.io.WinNTFileSystem.getBooleanAttributes+eclipse
I didn't find wet a solution.
:-(
May I close the issue? Anyway, due to some other problems (https://sourceforge.net/p/moreunit/bugs/135/ for instance) I think MoreUnit will stop annotating methods by default (but it has to be discussed a bit yet).
Sure, thks for your help !