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 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: Linux User Comments: dkmd_nielsen: Attempting to debug into a method by calling the method's alias name. It's been a while since I've encountered this error. The method is new. The project just initialized a Mercurial database. These module changes are not yet committed. There is nothing really new about this project I'm working on, except the above. GUEST: Waiting for variables to display di97msgd: I use the following: Netbeans 8.0.1 CentOS ruby-debug-ide-0.4.23.beta9 When stopping at breakpoint the following exception occurs in Netbeans: java.lang.IllegalStateException: Unexpected event. Expecting variable end tag.value at org.rubyforge.debugcommons.reader.XmlStreamReader.ensureEndTag(XmlStreamReader.java:41) at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:90) at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48) at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105) 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) [catch] at org.rubyforge.debugcommons.ReadersSupport$XPPLoop.run(ReadersSupport.java:271) GUEST: NetBeans IDE 6.0.1, debugging an application. I was attempting to look at the local variables window. It disappeared, and this error popped up. GUEST: I was debugging a Ruby project. I called debug on a Unit Test class, with a breakpoint in a method of a singleton class (called from within a test case method). The debugger stopped execution at the break point (as expected), but when I clicked on the tab to view the local variables, it gave me the waiting prompt for a while, and then the debugger closed with the above exception. Stacktrace: java.lang.IllegalStateException: Unexpected event. Expecting variable end tag.value at org.rubyforge.debugcommons.reader.XmlStreamReader.ensureEndTag(XmlStreamReader.java:41) at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:90) at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48) at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105) at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156) at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116)
Created attachment 149662 [details] stacktrace
I reported this error to the author, Oleg Sukhodolsky os97673 on GitHub, of the ruby-debug-ide gem and he replied: "We have extended the protocol (variable node contains value sub-node) which is supposed to be compatible from xml point of view but debugcommons (which is used by Netbeans) is not prepared for this change. So you should either use 0.4.23.beta1 or ask Netbeans team to fix debugcommons (I will be happy to help them if they need such help)" https://github.com/ruby-debug/ruby-debug-ide/issues/61
Is there anything more you need from me? Regards Mats