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.
Build: NetBeans IDE Dev (Build 200905021401) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.27-14-generic, i386 User Comments: esmithbss: Expanding the self variable within the Variables pane for a RoR application. GUEST: Debugging ruby code. Just clicked the step over button. Stacktrace: java.lang.AssertionError: variables(type: END_TAG) encountered at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:67) at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48) at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:96) at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156) at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116) at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
Created attachment 81453 [details] stacktrace
Build: NetBeans IDE Dev (Build 200905071401) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.27-14-generic, i386 User Comments: Stepping through a method within a Ruby On Rails model. Stacktrace: java.lang.AssertionError: variables(type: END_TAG) encountered at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:67) at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48) at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:96) at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156) at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116) at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
Created attachment 81870 [details] stacktrace
Build: NetBeans IDE Dev (Build 200905260201) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.28-12-generic, i386 User Comments: Expanding the self object within the ruby debugger. Stacktrace: java.lang.AssertionError: variables(type: END_TAG) encountered at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:67) at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48) at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:96) at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156) at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116) at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
Created attachment 82838 [details] stacktrace
This also happens when I hold my mouse cursor over an object in the editor pane while debugging. Attaching a log file from instance where debugger died due to trying to examine a variable in this way. Also bumping priority to p1 as this behavior is now a regression in debugger capabilities.
The log file was generated with both extra ruby logging flags enabled in the options panel. As you can see from the log file, this doesn't even generate a stack trace or similar. The debugger just dies.
Created attachment 82840 [details] Log file with extra ruby debugging enabled.
Most likely an issue in the backend; there was one change in the latest version of debug-commons-java that could be causing this. Anyway, I'm not able to reproduce this though, so I'm attaching here a patched version of debug-commons- java that reverts the change - please give it a try if possible (just copy it to <nb_install_dir>ruby2/modules/ext and restart the IDE) and let me know whether that helps. Or if you can provide a sample file / project where this is reproducible that would be enough too. Thanks.
Created attachment 82860 [details] patched debug-commons-java-0.10.0.jar
Waiting for feedback, so marking as incomplete for now.
esmithbss can you please test the fixed .jar?
Created attachment 83083 [details] debug-commons-java with proper fix
Should be properly fixed now in 7f8ea969196c, and I've also attached the updated jar file here. The fix was in debug- commons-java, http://rubyforge.org/pipermail/debug-commons-commits/2009-June/000352.html. Special thanks to mkrauskopf for tracking down the culprit and for reviewing the fix!
Integrated into 'main-golden', will be available in build *200906020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7f8ea969196c User: Erno Mononen <emononen@netbeans.org> Log: #164366: [67cat] AssertionError: variables(type: END_TAG) encountered
The reporter confirmed privately that Erno's patch fixes the problem, should be ported to 6.7. Removing the INCOMPLETE keyword.
7f8ea969196c transplanted to 689c254c9d73 in release67 http://hg.netbeans.org/release67/rev/689c254c9d73
Verified in RC2 build.