FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Helpf with rspec rails using autospec on windows using drb

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
mikev



Joined: 19 Oct 2009
Posts: 3

PostPosted: Mon Oct 19, 2009 3:48 pm    Post subject: Helpf with rspec rails using autospec on windows using drb Reply with quote

I'm trying to run autospec using ruby script/spec_server on windows with netbeans 6.7.1. Installed rspec and rspec rails as gems, both are version 1.3.1. Installed rspec-rails first and let it force rspec to be installed. Ran ruby script/generate rspec and let it overwrite all files. If I don't include --drb in my options file the specs run correctly. When I do include --drb I get the following exception. Is there a different way to run the specs without the need to start a new rails server instance each time?

(druby://127.0.0.1:8989) C:/InstantRailsAS4/rails_apps/cidr/spec/spec_helper.rb:19: undefined method `use_transactional_fixtures=' for #<Spec::Runner::Configuration:0xe12b840> (NoMethodError)
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner.rb:41:in `configure'
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/rails_apps/cidr/spec/spec_helper.rb:15
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load'
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in'
from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load'
from (druby://127.0.0.1:8989) script/spec_server:97:in `run'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/drb_command_line.rb:17:in `run'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:199:in `parse_drb'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:130:in `order!'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner.rb:51:in `options'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:6:in `run'
from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5

Another problem is that when I run an individual spec by right click and select 'test file' I get the following exception. This is when autospec is not running for the project.


C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:157:in `add_to_suites': undefined method `name' for #<Spec::Example::ExampleProxy:0xbf477b0> (NoMethodError)
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:153:in `reject!'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:153:in `add_to_suites'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:67:in `parse_args'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:60:in `loop'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:60:in `parse_args'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:168:in `run_mediator'
from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:211

Finished in 0.0 seconds.
0 tests, 0 failures, 0 errors
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue Oct 20, 2009 11:28 am    Post subject: Helpf with rspec rails using autospec on windows using drb Reply with quote

Hello,

I'm afraid using the --drb switch indeed does not work too well with
NB's test runner (reported also as
http://www.netbeans.org/issues/show_bug.cgi?id=153461). I can't now
think of any workaround for this, but I'll try to get this fixed for 6.8.

Erno

mikev wrote:
Quote:
I'm trying to run autospec using ruby script/spec_server on windows with netbeans 6.7.1. Installed rspec and rspec rails as gems, both are version 1.3.1. Installed rspec-rails first and let it force rspec to be installed. Ran ruby script/generate rspec and let it overwrite all files. If I don't include --drb in my options file the specs run correctly. When I do include --drb I get the following exception. Is there a different way to run the specs without the need to start a new rails server instance each time?



(druby://127.0.0.1:8989) C:/InstantRailsAS4/rails_apps/cidr/spec/spec_helper.rb:19: undefined method `use_transactional_fixtures=' for #<Spec::Runner::Configuration:0xe12b840> (NoMethodError)

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner.rb:41:in `configure'

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/rails_apps/cidr/spec/spec_helper.rb:15

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load_without_new_constant_marking'

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load'

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in'

from (druby://127.0.0.1:8989) C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:145:in `load'

from (druby://127.0.0.1:8989) script/spec_server:97:in `run'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/drb_command_line.rb:17:in `run'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:199:in `parse_drb'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/option_parser.rb:130:in `order!'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner.rb:51:in `options'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:6:in `run'

from C:/InstantRailsAS4/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5



Another problem is that when I run an individual spec by right click and select 'test file' I get the following exception. This is when autospec is not running for the project.





C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:157:in `add_to_suites': undefined method `name' for #<Spec::Example::ExampleProxy:0xbf477b0> (NoMethodError)

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:153:in `reject!'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:153:in `add_to_suites'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:67:in `parse_args'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:60:in `loop'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:60:in `parse_args'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:168:in `run_mediator'

from C:/Program Files/NetBeans 6.7.1/ruby2/nb_test_mediator.rb:211



Finished in 0.0 seconds.

0 tests, 0 failures, 0 errors











Back to top
J
Posted via mailing list.





PostPosted: Thu Oct 22, 2009 4:11 pm    Post subject: NB6.8M2: cannot create rails project with webrick on OSX Reply with quote

Hi!

Yeah, the subject says it all ...

Works well on Windows....



/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/
ruby2/jruby-1.3.1/bin/rails:19:in `load': No such file to load -- "/
Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/
ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/rails-2.2.2/bin/
rails" (LoadError)
from /Applications/NetBeans/NetBeans 6.8 M2.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1/bin/rails:19
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Thu Oct 22, 2009 6:28 pm    Post subject: NB6.8M2: cannot create rails project with webrick on OSX Reply with quote

Hi J
Back to top
J
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 7:16 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

Again, the subject says it.

When starting to debug ruby projects, the corresponding tab in the
output window. But the session stops immediately without any message.

Works well on Windows.

- J
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 7:38 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

J
Back to top
J
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 8:01 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Port number in project properties:4010
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Checking port: 4010. Ports in use: []
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Connecting to 4010, using http validation: false
FINE [org.netbeans.modules.ruby.debugger.RubyDebugger]: Running fast
debugger...
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Running
[basedir: /Users/joergp/innoq/hopcom/svn/trunk/hopcomshop]: "/
Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/
ruby2/jruby-1.3.1/bin/jruby -J-Djruby.reflection=true -J-
Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -r /private/var/
folders/uC/uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/io-
synchronizer2747742818892774940.rb /Applications/NetBeans/NetBeans 6.8
M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide
_0.4.6_ -p 53465 --xml-debug -- script/server webrick --port 4010"
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Environment:
{GEM_PATH=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8, SHELL=/bin/
bash, JAVA_MAIN_CLASS_41452=org.netbeans.Main, TMPDIR=/var/folders/uC/
uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/, JAVA_HOME=/System/Library/
Frameworks/JavaVM.framework/Versions/1.6.0/Home, SHLVL=1, CLASSPATH=$
{file.reference.mysql-connector-java-5.1.6-bin.jar},
__CF_USER_TEXT_ENCODING=0x1F5:0:0, PATH=/usr/bin:/bin:/usr/sbin:/sbin,
GEM_HOME=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/
NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8, COMMAND_MODE=unix2003,
APP_NAME_41452=NetBeans, DISPLAY=/tmp/launch-XLyM8f/:0, USER=joergp,
JRUBY_HOME=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1, PWD=/, APP_ICON_41452=/
Applications/NetBeans/NetBeans 6.8 M2.app/Contents/MacOS/../Resources/
NetBeans/bin/../nb6.8/netbeans.icns, HOME=/Users/joergp,
LOGNAME=joergp, JRUBY_BASE=/Applications/NetBeans/NetBeans 6.8 M2.app/
Contents/Resources/NetBeans/ruby2/jruby-1.3.1, J2D_PIXMAPS=shared,
Apple_PubSub_Socket_Render=/tmp/launch-J7JJaB/Render, _=/System/
Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java,
SSH_AUTH_SOCK=/tmp/launch-ZjlLM5/Listeners}
INFO [org.netbeans.api.extexecution.ExecutionService]
java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
Caused: java.io.IOException: Cannot run program "/Applications/
NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/
jruby-1.3.1/bin/jruby" (in directory "/Users/joergp/innoq/hopcom/svn/
trunk/hopcomshop"): error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at
org
.rubyforge
.debugcommons
.RubyDebuggerFactory.startDebugger(RubyDebuggerFactory.java:233)
at
org
.rubyforge
.debugcommons
.RubyDebuggerFactory.startRubyDebug(RubyDebuggerFactory.java:159)
at
org
.netbeans
.modules.ruby.debugger.RubyDebugger.startDebugging(RubyDebugger.java:
257)
at
org
.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:
137)
Caused: java.lang.RuntimeException
at
org
.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:
146)
at
org
.netbeans
.modules
.ruby
.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:121)
at
org
.netbeans
.modules
.ruby
.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:66)
at org.netbeans.api.extexecution.ExecutionService
$3.call(ExecutionService.java:254)
at org.netbeans.api.extexecution.ExecutionService
$3.call(ExecutionService.java:230)
at java.util.concurrent.FutureTask
$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:637)
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Server startup failed, server type is:
org.netbeans.modules.ruby.railsprojects.server.WEBrick@a6d072b7
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Could not start
org.netbeans.modules.ruby.railsprojects.server.WEBrick@a6d072b7 in 0
seconds, current server status is NOT_STARTED

On 23.10.2009, at 09:37, Erno Mononen wrote:

Quote:


J
Back to top
J
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 8:08 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

For comparison, this is the log for NB6.7 debugging the same project:

FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Port number in project properties:4010
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Checking port: 4010. Ports in use: []
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Connecting to 4010, using http validation: false
FINE [org.netbeans.modules.ruby.debugger.RubyDebugger]: Running fast
debugger...
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Running
[basedir: /Users/joergp/innoq/hopcom/svn/trunk/hopcomshop]: "/
Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/
ruby2/jruby-1.2.0/bin/jruby -J-Djruby.reflection=true -J-
Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -r /private/var/
folders/uC/uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/io-
synchronizer8900438854702574383.rb /Applications/NetBeans/NetBeans
6.7.app/Contents/Resources/NetBeans/ruby2/jruby-1.2.0/bin/rdebug-ide
_0.4.5_ -p 53482 --xml-debug -- script/server webrick --port 4010"
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Environment:
{GEM_PATH=/Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/
NetBeans/ruby2/jruby-1.2.0/lib/ruby/gems/1.8, SHELL=/bin/bash, TMPDIR=/
var/folders/uC/uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/, JAVA_HOME=/System/
Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home, SHLVL=1,
JAVA_MAIN_CLASS_42314=org.netbeans.Main, APP_ICON_42314=/Applications/
NetBeans/NetBeans 6.7.app/Contents/MacOS/../Resources/NetBeans/bin/../
nb6.7/netbeans.icns, APP_NAME_42314=NetBeans, CLASSPATH=$
{file.reference.mysql-connector-java-5.1.6-bin.jar},
__CF_USER_TEXT_ENCODING=0x1F5:0:0, PATH=/usr/bin:/bin:/usr/sbin:/sbin,
GEM_HOME=/Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/
NetBeans/ruby2/jruby-1.2.0/lib/ruby/gems/1.8, COMMAND_MODE=unix2003,
DISPLAY=/tmp/launch-XLyM8f/:0, USER=joergp, JRUBY_HOME=/Applications/
NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/ruby2/
jruby-1.2.0, PWD=/, HOME=/Users/joergp, LOGNAME=joergp, JRUBY_BASE=/
Applications/NetBeans/NetBeans 6.7.app/Contents/Resources/NetBeans/
ruby2/jruby-1.2.0, J2D_PIXMAPS=shared, Apple_PubSub_Socket_Render=/tmp/
launch-J7JJaB/Render, _=/System/Library/Frameworks/JavaVM.framework/
Versions/1.6/Home/bin/java, SSH_AUTH_SOCK=/tmp/launch-ZjlLM5/Listeners}
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Proxy target:
RubyDebugTarget@1103494837[baseDir: /Users/joergp/innoq/hopcom/svn/
trunk/hopcomshop, debuggedFile: script/server, port: 53482]
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(29)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(2Cool
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(27)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(26)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(25)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(24)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(23)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect
to localhost:53482. Trying again...(22)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Successfully
attached to localhost:53482
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Sending command
debugger: start
FINE [org.rubyforge.debugcommons.ReadersSupport]: Starting
ReadersSupport readloop: class
org.rubyforge.debugcommons.ReadersSupport command loop
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Waiting for
breakpoints.
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message
debug='true'>Starting command read loop</message>
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message
debug='true'>Processing: start</message>
FINEST [org.rubyforge.debugcommons.Util]: Received message: <message
debug='true'>Starting: running program script</message>
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Identified
org.netbeans.modules.ruby.railsprojects.server.WEBrick@f8d096f3 as
running
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Identified
org.netbeans.modules.ruby.railsprojects.server.WEBrick@f8d096f3 as
running
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsServerManager]:
Server org.netbeans.modules.ruby.railsprojects.server.WEBrick@f8d096f3
started in 17 seconds.
FINE
[org.netbeans.modules.ruby.railsprojects.server.RailsUrlDisplayer]:
Opening URL: http://localhost:4010/



On 23.10.2009, at 09:37, Erno Mononen wrote:

Quote:


J
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 12:02 pm    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

J
Back to top
J
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 6:47 pm    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

Interesting ... NO file in /Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin has the x-bit set except for 'rails'.


I set the bit for 'jruby' and get one step farther...






FINE [org.netbeans.modules.ruby.debugger.RubyDebugger]: Running fast debugger...
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Running [basedir: /Users/joergp/innoq/hopcom/svn/trunk/hopcomshop]: "/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -r /private/var/folders/uC/uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/io-synchronizer8532587747911415780.rb /Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide _0.4.6_ -p 52505 --xml-debug -- script/server webrick --port 4010"
FINE [org.rubyforge.debugcommons.RubyDebuggerFactory]: Environment: {GEM_PATH=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8, SHELL=/bin/bash, TMPDIR=/var/folders/uC/uCs2q1SNGca16rJdH9QrHk+++TI/-Tmp-/, JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home, SHLVL=1, CLASSPATH=${file.reference.mysql-connector-java-5.1.6-bin.jar}, __CF_USER_TEXT_ENCODING=0x1F5:0:0, PATH=/usr/bin:/bin:/usr/sbin:/sbin, GEM_HOME=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8, COMMAND_MODE=unix2003, DISPLAY=/tmp/launch-nL9vtj/:0, USER=joergp, JRUBY_HOME=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1, JAVA_MAIN_CLASS_1566=org.netbeans.Main, PWD=/, HOME=/Users/joergp, LOGNAME=joergp, JRUBY_BASE=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1, APP_NAME_1566=NetBeans, J2D_PIXMAPS=shared, Apple_PubSub_Socket_Render=/tmp/launch-wMlXe7/Render, _=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java, SSH_AUTH_SOCK=/tmp/launch-Jskzqq/Listeners, APP_ICON_1566=/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/MacOS/../Resources/NetBeans/bin/../nb6.8/netbeans.icns}
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Proxy target: RubyDebugTarget@1538883332[baseDir: /Users/joergp/innoq/hopcom/svn/trunk/hopcomshop, debuggedFile: script/server, port: 52505]
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(29)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(2Cool
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(27)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(26)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(25)
FINEST [org.rubyforge.debugcommons.RubyDebuggerProxy]: Cannot connect to 127.0.0.1:52505. Trying again...(24)
SEVERE [org.rubyforge.debugcommons.Util]: Error Output:
/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide:19:in `load': No such file to load -- "/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.6/bin/rdebug-ide" (LoadError)
from /Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide:19
FINE [org.rubyforge.debugcommons.RubyDebuggerProxy]: Destroying process: RubyDebugTarget@1538883332[baseDir: /Users/joergp/innoq/hopcom/svn/trunk/hopcomshop, debuggedFile: script/server, port: 52505]
INFO [org.netbeans.api.extexecution.ExecutionService]
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:525)
at java.net.Socket.connect(Socket.java:475)
at java.net.Socket.<init>(Socket.java:372)
at java.net.Socket.<init>(Socket.java:186)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:494)
Caused: org.rubyforge.debugcommons.RubyDebuggerException: Cannot connect to the debugged process at port 52505 in 15s:
Error Output:
/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide:19:in `load': No such file to load -- "/Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.6/bin/rdebug-ide" (LoadError)
from /Applications/NetBeans/NetBeans 6.8 M2.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide:19
at org.rubyforge.debugcommons.RubyDebuggerProxy.failWithInfo(RubyDebuggerProxy.java:527)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:510)
at org.rubyforge.debugcommons.RubyDebuggerProxy.getCommandSocket(RubyDebuggerProxy.java:319)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attachToRubyDebug(RubyDebuggerProxy.java:161)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:124)
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:139)
Caused: java.lang.RuntimeException
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:149)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:121)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:66)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:254)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:230)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:637)






On 23.10.2009, at 14:02, Erno Mononen wrote:
Quote:
J
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Fri Oct 23, 2009 10:00 pm    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

J
Back to top
J
Posted via mailing list.





PostPosted: Sat Oct 24, 2009 12:02 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

But why only on OSX? Why does it work on Windows?

Yes, upgrading to 1.3.5 solves this issue (with some manual help Smile )
but causes another one .... which I assume no longer is an IDE issue
but an jruby/OSX issue, so this is the wrong list.



Fast Debugger (ruby-debug-ide 0.4.6) listens on localhost:53444
public org.jruby.runtime.builtin.IRubyObject
org
.jruby
.RubyString
.op_plus(org.jruby.runtime.ThreadContext,org.jruby.RubyString)
sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0':
java.lang.IllegalArgumentException: argument type mismatch
(NativeException)
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
from sun/reflect/DelegatingMethodAccessorImpl.java:25:in
`invoke'
from java/lang/reflect/Method.java:597:in `invoke'
from org/jruby/internal/runtime/methods/
ReflectedJavaMethod.java:145:in `call'
from org/jruby/internal/runtime/methods/DynamicMethod.java:
168:in `call'
from org/jruby/internal/runtime/methods/DynamicMethod.java:
164:in `call'
from org/jruby/runtime/callsite/CachingCallSite.java:278:in
`cacheAndCall'
from org/jruby/runtime/callsite/CachingCallSite.java:117:in
`call'
... 62 levels...
from /Applications/NetBeans/NetBeans 6.8 Beta.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/ruby-debug-
ide-0.4.6/bin/rdebug-ide:82
from /Applications/NetBeans/NetBeans 6.8 Beta.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/ruby-debug-
ide-0.4.6/bin/rdebug-ide:19:in `load'
from /Applications/NetBeans/NetBeans 6.8 Beta.app/Contents/
Resources/NetBeans/ruby2/jruby-1.3.1/bin/rdebug-ide:19
Complete Java stackTrace

On 23.10.2009, at 21:53, Erno Mononen wrote:

Quote:
J
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Mon Oct 26, 2009 8:50 am    Post subject: NB6.8M2: cannot debug ruby projects on OSX Reply with quote

J
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB