Stream.forEach() and try to evaluate something in the debug consolejava test runner - can't evaluate.log

maybe it more has to do w/ lambda's? 馃



Also, the debugger variables window is able to see the values:

@spottedmahn thanks for reaching out. It looks like a bug to me. @testforstephen please take a look.
The upstream jdt has the same error on inspecting variable in the lambda expression. Need take a look at the upstream jdt first.
upstream jdt is https://github.com/eclipse/eclipse.jdt.debug? 馃
Apologies for slightly hijacking this issue, but i have a very similar issue and want to check if it is same/related. When trying to evaluate in generic code, all evaluations fail with "Cannot evaluate because of a compilation error(s): Evaluations must contain either an expression or a block of well-formed statements". This is not a lambda, it's just a plain method of a (generic) type. I tried a trivial example and expressions worked with generics, so does this sound like the same bug ?
Any update on this issue? This is adding a lot of friction for me while debugging.
The upstream has added the support for the lambda support in 2020-03 release, and already integrated to the debugger extension. See the upstream issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=560392
@puremourning @noel-yap Could you please open a new bug for your issue? Also please add the code snippet to explain your scenario.
@akaroml @testforstephen - any idea when that eclipse fix will be incorporated with vs code extension / tools? Also, looking at the issue on the eclipse site it appears that working with streams it's still not fixed.
Debugger 0.27.0 just released today, the fix should be already there. Could you try again?
BTW, you also need update Language Support for Java by Red Hat extension to latest version 0.64.1.

Obviously, this problem is still unresolved, sad.
Hi all,
I've the same issue trying to evaluating expression in a Tomcat application. Do you know how to solve it?
Thanks,
Most helpful comment
Obviously, this problem is still unresolved, sad.