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.

Bug 106525 - [DEBUGGER] jruby debugger does not work on windows
Summary: [DEBUGGER] jruby debugger does not work on windows
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks: 106361
  Show dependency tree
 
Reported: 2007-06-13 15:43 UTC by Tomas Danek
Modified: 2007-07-03 14:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (102.02 KB, text/plain)
2007-06-21 16:59 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2007-06-13 15:43:58 UTC
Product Version: NetBeans IDE Dev (Build 200706130000) Java: 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104 System:
Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Tomas\.netbeans\dev
-------------------------------
- create ruby app
- select default jruby  interpreter
- put BP on line with puts
- f5 -> after 20 seconds you get dialog "ruby process finished...."
Comment 1 Martin Krauskopf 2007-06-13 16:17:24 UTC
Will look at it as soon as I have Windows machine access.
Comment 2 Martin Krauskopf 2007-06-18 08:35:19 UTC
The problem is that JRuby interpreter is not able to handle e.g.:

jruby -I"c:\some path\abcd" hello.rb

there has to be a space after '-I', like this:

jruby -I "c:\some path\abcd" hello.rb

Will have time to fix it this evening (will have Windows access). Probably bug in handling parameter in JRuby
interpreter's windows scripts (.bat) since "jruby -h" is OK with *not* using the fateful space.
Comment 3 Martin Krauskopf 2007-06-18 21:32:31 UTC
Fixed. Canonical paths were not used in the backend.

debugger/src/org/netbeans/modules/ruby/debugger/RubyDebugger.java;
new revision: 1.33; previous revision: 1.32
external/debug-commons-java-0.7.3.jar;
new revision: 1.5; previous revision: 1.4
Comment 4 Tomas Danek 2007-06-21 15:42:21 UTC
Martine, did you test this fix? I'm reproducing it using those steps on 20070621 on my XP:(
Comment 5 Tomas Danek 2007-06-21 16:16:24 UTC
(Build 070621)

FINE [org.rubyforge.debugcommons.Util]: Running [basedir: C:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication12\lib]: "E:\tmp\netbeans\ruby1\jruby-1.0\bin\jruby.bat -IC:\Documents and
Settings\Tomas\My Documents\NetBeansProjects\RubyApplication12\lib -IC:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication12\test -I E:\tmp\netbeans\ruby1\ruby\debug-commons-0.9.4 -r C:\Documents and
Settings\Tomas\Local Settings\Temp\classic-debug38216.rb -r C:\Documents and Settings\Tomas\Local
Settings\Temp\io-synchronizer38217.rb -r classic-debug.rb C:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication12\lib\main.rb"

however i am not able to run manually from command line, i'm geting "The input line too long" from win console:(
Comment 6 Martin Krauskopf 2007-06-21 16:43:26 UTC
Yup, I did test it. Will do again. Might be bug in that paired -Ivalue. But in the end I thought I did not have the
problem with that. Will double-check....
Comment 7 Martin Krauskopf 2007-06-21 16:55:40 UTC
It works for on my Windows machine, also XP with the latest pieces. Could you attach your message log to see whether the
problem is different from the previous one. Thanks.
Comment 8 Tomas Danek 2007-06-21 16:59:43 UTC
Created attachment 44201 [details]
log file
Comment 9 Martin Krauskopf 2007-06-21 17:06:35 UTC
Seems to be still the same problem. We will have to investigate on your machine directly.
Comment 10 Tomas Danek 2007-06-25 14:49:53 UTC
Cannot reproduce now, on some build from m10 branch. Strange. Jirko, you were able to reproduce few days ago (as me),
can you help me to verify it in final m10 build, just for sure?
Comment 11 Martin Krauskopf 2007-06-25 14:53:34 UTC
It could be the case that the process was not started up in 10s. I adjusted the message in the backend to be at least
little less confusing.

external/debug-commons-java-0.7.3.jar;
new revision: 1.6; previous revision: 1.5
debug-commons-java/manifest.mf;
new revision: 1.16; previous revision: 1.15
debugger/nbproject/project.xml;
new revision: 1.27; previous revision: 1.26
Comment 12 Peter Pis 2007-06-26 08:57:14 UTC
To Reporter: Could you please verify this issue for M10? Thanks.
Comment 13 Tomas Danek 2007-06-26 14:32:01 UTC
cannot reproduce in M10 - verified.
Product Version: NetBeans IDE 6.0M10 (build 200706251444) Java: 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Tomas\.netbeans\6.0m10
Comment 14 Jiri Kovalsky 2007-07-03 13:53:48 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 15 Jiri Kovalsky 2007-07-03 14:36:08 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.