Re: [groovy-user] Stack Trace Filtering in Eclipse

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Stack Trace Filtering in Eclipse

Andrew Eisenberg
Groovy-Eclipse does not automatically add the extra stack trace
filters to the JUnit preference pane.  I'm not even sure if it should.
 Maybe org.codehaus.groovy would be reasonable to add, but
groovy.lang, probably not.

It's easy enough for people to add their own regex filters to the Java
-> JUnit preference page, and exactly what should be filtered seems to
be a bit of a personal choice, so I'm not convinced that we should be
doing anything automatically here (although I am open to discussion).

Note that this is an entirely unrelated setting to the graying out
that we do during debugging.

--a

ps- this discussion should continue on the eclipse-plugin-user mailing list.

On Sat, Oct 9, 2010 at 6:57 AM, René Scheibe
<[hidden email]> wrote:

> Hi,
>
> I was wondering why I still see a stack trace in the JUnit view like
> below, even if the "Filter Stack Trace" is enabled.
> Only the "java.lang" and "sun.reflect" entries disappear.
> I am using the default Groovy Debugger settings that include
> "org.codehaus.groovy" and "groovy.lang".
>
> Having a look at the JUnit settings, the Groovy patterns are not contained.
> I guess the question is, if the Groovy plugin should add its patterns to
> the JUnit stack trace filter patterns.
> I vote for it. :-)
>
> groovy.lang.MissingPropertyException: No such property: type for class:
> OverallTest
>    at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)
>    at
> org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:239)
>    at
> OverallTest$_everything_closure3_closure7.doCall(OverallTest.groovy:105)
>    at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>    at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
>    at groovy.lang.Closure.call(Closure.java:276)
>    at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForMapEntry(DefaultGroovyMethods.java:2434)
>    at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1227)
>    at org.codehaus.groovy.runtime.dgm$110.invoke(Unknown Source)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
>    at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
>    at OverallTest$_everything_closure3.doCall(OverallTest.groovy:102)
>    at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
>    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
>    at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
>    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
>    at groovy.lang.Closure.call(Closure.java:276)
>    at groovy.lang.Closure.call(Closure.java:289)
>    at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1198)
>    at
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1174)
>    at org.codehaus.groovy.runtime.dgm$109.invoke(Unknown Source)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
>    at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
>    at OverallTest.everything(OverallTest.groovy:67)
>    at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>    at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>    at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>    at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>    at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>    at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>    at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
>    at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>    at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
> Cheers,
> René
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email