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 171589 - [68cat] [ruby] Rake debugging fails to launch rake task
Summary: [68cat] [ruby] Rake debugging fails to launch rake task
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-07 05:34 UTC by esmithbss
Modified: 2009-09-25 14:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project file where problem initially discovered. (78.57 KB, text/plain)
2009-09-07 05:35 UTC, esmithbss
Details
IDE Log File (100.03 KB, text/plain)
2009-09-07 05:37 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-09-07 05:34:28 UTC
[ BUILD # : 200909040632 ]
[ JDK VERSION : 1.6.* ]

When attempting to launch a rake task, if the debug flag is set, the
rake task fails to launch properly.
Comment 1 esmithbss 2009-09-07 05:35:39 UTC
Created attachment 87188 [details]
Project file where problem initially discovered.
Comment 2 esmithbss 2009-09-07 05:37:09 UTC
Created attachment 87189 [details]
IDE Log File
Comment 3 Erno Mononen 2009-09-08 11:33:24 UTC
Hmm, works for me with the attached project. One difference that I spotted is that I'm running on JDK 
6. I'll test this with JDK 7 too, though it is not likely to be the culprit if debugging otherwise works for you.
Comment 4 Erno Mononen 2009-09-09 11:40:06 UTC
No luck in reproducing this with jkd 7 either. Does this happen to you only with this project, and only when debugging 
rake tasks? Also, could you try whether running the IDE with the following params would help:

-J-Djava.net.preferIPv6Addresses=true -J-Djava.net.preferIPv4Stack=false
Comment 5 esmithbss 2009-09-09 16:42:56 UTC
This is happening for this project only at this point, but it is consistent for this project.

I created the project as an example for the bug it is numbered after and discovered this during my project rake test.

I have unloaded, reloaded, rebooted, etc... And it cosistently fails on me but only for this project. 
Comment 6 Erno Mononen 2009-09-25 14:26:57 UTC
Unfortunately I still haven't had much luck in reproducing this. Could you please try checking the backend 
functionality as follows:

In terminal 1, in the project directory (of course you need to change the paths):

Issue166285$: /home/erno/work/ruby-main/nbbuild/netbeans/ruby2/jruby-1.3.1/bin/jruby --debug -S rdebug-ide -p 1234 -d 
-- /home/erno/work/ruby-main/nbbuild/netbeans/ruby2/jruby-1.3.1/bin/rake breakpoint:start_test

Then once the debugger is listening, in terminal 2 (also in the project directory):

Issue166285$$: telnet localhost 1234

b lib/breakpoint_test/put_breakpoint_here.rb:7

start

--
and see if the breakpoint gets hit. As an example here's the output for me:

Issue166285$: telnet localhost 1234
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
b lib/breakpoint_test/put_breakpoint_here.rb:7
<breakpointAdded no="1" location="/home/erno/work/tmp/Issue166285/lib/breakpoint_test/put_breakpoint_here.rb:7"/>start
<breakpoint file="/home/erno/work/tmp/Issue166285/lib/breakpoint_test/put_breakpoint_here.rb" line="7" threadId="1"/>c
Connection closed by foreign host.

Please let me know whether that works for you.