|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
Helpf with rspec rails using autospec on windows using drbI'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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Helpf with rspec rails using autospec on windows using drbHello, 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: > 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 > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
NB6.8M2: cannot create rails project with webrick on OSXHi!
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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot create rails project with webrick on OSXHi Jörg,
This is due to a bug in RubyGems, more spefically: http://rubyforge.org/tracker/index.php?func=detail&aid=25935&group_id=126&atid=575 Updating rubygems to 1.3.5 should fix it: gem update --system So for the built-in JRuby that would be: <nb_install_dir>/ruby2/jruby-1.3.1/bin/jruby -S gem update --system HTH, Erno Jörg Plewe wrote: > 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
NB6.8M2: cannot debug ruby projects on OSXAgain, 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örg -- Jörg Plewe innoQ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXJörg Plewe wrote: > 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. Could you please turn on detailed logging (http://wiki.netbeans.org/FaqRubyNBLogging67 -- enable it for the debugger too), reproduce the problem and send the log then? Thanks, Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXFINE [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: > > > Jörg Plewe wrote: >> 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. > > Could you please turn on detailed logging (http://wiki.netbeans.org/FaqRubyNBLogging67 > -- enable it for the debugger too), reproduce the problem and send > the log then? > > Thanks, > Erno > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > -- Jörg Plewe innoQ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXFor 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...(28) 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: > > > Jörg Plewe wrote: >> 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. > > Could you please turn on detailed logging (http://wiki.netbeans.org/FaqRubyNBLogging67 > -- enable it for the debugger too), reproduce the problem and send > the log then? > > Thanks, > Erno > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > -- Jörg Plewe innoQ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXJörg Plewe wrote:
> > 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 Seems to be a problem with permissions. Does the user you use for running NB have read/write/execute access on the NB installation folder and its subfolders)? I'd recommend installing NB as the same user as you use for running it, otherwise you might run into more such issues. Cheers, Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXInteresting ... 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...(28) 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:
-- Jörg Plewe innoQ |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXJörg Plewe wrote:
> 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'. Possibly a bug in the NB installer, reinstalling might help (if not, please file an issue for this or let me know the exact procedure how you installed NB and I'll file the issue for you). > > I set the bit for 'jruby' and get one step farther... <snip> > > 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) This seems to be the RubyGems issue I mentioned earlier, so upgrading RubyGems to 1.3.5 should help (if you did that already, it seems that the upgrade may not have been successful). You could also workaround it by installing NB to a directory without spaces in the path (or just simply rename the installation folder and update the shortcut). I know it is a rather major issue, in 6.8 final we can hopefully bundle upgraded RubyGems for a better out-of-the-box experience. Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXBut why only on OSX? Why does it work on Windows?
Yes, upgrading to 1.3.5 solves this issue (with some manual help :) ) 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: > Jörg Plewe wrote: >> 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'. > > Possibly a bug in the NB installer, reinstalling might help (if not, > please file an issue for this or let me know the exact procedure how > you installed NB and I'll file the issue for you). > >> >> I set the bit for 'jruby' and get one step farther... > <snip> >> >> 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) > > This seems to be the RubyGems issue I mentioned earlier, so > upgrading RubyGems to 1.3.5 should help (if you did that already, it > seems that the upgrade may not have been successful). You could also > workaround it by installing NB to a directory without spaces in the > path (or just simply rename the installation folder and update the > shortcut). I know it is a rather major issue, in 6.8 final we can > hopefully bundle upgraded RubyGems for a better out-of-the-box > experience. > > Erno > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > -- Jörg Plewe innoQ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: NB6.8M2: cannot debug ruby projects on OSXJörg Plewe wrote:
> But why only on OSX? Why does it work on Windows? I don't know really, I think the permissions bits are usually correctly set also on OS X (or at least I'm not aware of this being a widespread problem), something on your setup triggers the bug. > > Yes, upgrading to 1.3.5 solves this issue (with some manual help :) ) > but causes another one .... which I assume no longer is an IDE issue > but an jruby/OSX issue, so this is the wrong list. Yes, that looks like a JRuby issue. If you don't get any replies here, you might want to try asking on the JRuby users list (http://kenai.com/projects/jruby/pages/MailingLists). Cheers, Erno --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |