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 130459 - Running specs doesn't show output
Summary: Running specs doesn't show output
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Testing (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 21:43 UTC by timhaines
Modified: 2011-06-06 00:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timhaines 2008-03-18 21:43:35 UTC
On win XP, Netbeans daily build 200803171203, Rspec 1.1.3, Rails 2.0.1

I've just tried running an simple example as per the screen cast
(http://www.netbeans.tv/screencasts/Nick-Sieger-Uses-RSpec-with-the-NetBeans-Ruby-Support-305/) but no output is shown
after the spec has finished running.  To start with I only had rspec installed as rails plugins, but have also now
installed it as a gem incase Netbeans relies on that.  

I've added a few specs though and was running them from the command line with rake.  All worked.  I tried to run them in
Netbeans, and was eventually shown some deprecation warnings where the spec output should be.  So the specs are running,
just not showing the output.  No red/green bar appears either.
Comment 1 Erno Mononen 2008-03-20 16:24:14 UTC
I tried to reproduce this on Windows, but no success. Which version of Ruby/JRuby are you using?
Comment 2 timhaines 2008-03-21 00:36:02 UTC
ruby v 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]
and sorry, it's Rails 2.0.2 - but I doubt that effects it.

Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_NZ (nb)
Userdir: C:\Documents and Settings\Tim\.netbeans\dev

I did have the redgreen gem installed and I thought that might have been interfering.  I've removed it though, and the
problem remains.
Comment 3 Erno Mononen 2008-03-21 13:42:02 UTC
Unfortunately I still can't reproduce. Could you please try with the latest daily build and a clean user dir and see 
whether that would resolve the issue? Build 200803171203 has some oddities as the repository was a bit messed up around 
that time due to an incorrect merge. If that doesn't help, could you attach a minimal Rails project where this is 
reproducible for you? Thanks in advance!
Comment 4 timhaines 2008-03-21 21:40:36 UTC
I just stumbled across the solution to this problem.  See the last 3 or 4 comments here ->
http://rspec.lighthouseapp.com/projects/5645/tickets/80-15670-win32-autotest-colour-script-rspec-win32console-no-output#ticket-80-12

updating win32console resolved it:

gem update win32console

I don't know what this means for netbeans - perhaps it should warn if a newer version of win32console isn't available?
Comment 5 Erno Mononen 2008-03-23 22:54:06 UTC
Thanks for following up on this and for the pointer. A warning sounds reasonable, I'll look into that. 
Comment 6 ericArmstrongAtLongJump 2011-06-06 00:41:05 UTC
I have the same issue, in a different context.
I'm in Windows 7, NetBeans 7, with Ruby192 as the language platform.
Specs run fine in the command shell, but show no output when run in NetBeans.

"Navigate > Go to Test" goes to the spec file, so that much of the environment is
set up correctly. 

I've done the following, in various combinations:
    Tools > gem install rspec in NetBeans
    gem install rspec from the command shell
    Tools > gem install win32console in NetBeans
    gem install wind32console from the command shell

At the moment, Tools > gems shows me what's available, but Installed no
longer shows me what's present. (It's possible that the gem installs from
the command line throw it off so it no longer syncs properly.)

Unfortunately, the link given in this bug report is not an open project. A digest would be helpful!
Comment 7 ericArmstrongAtLongJump 2011-06-06 00:55:24 UTC
Update:
  1. gem uninstall of rspec and win32console from the command line fixed NB's
     inability to create a list of installed gems, so that feature is working
     once again.

  2. Win32console keeps showing an available update, but updating produces the
     message "nothing to update".

  3. While "navigate to test" goes to the right file, the "Test File" option
     produces the error, "could not find the spec executable".

  4. From other pages on the web, it appears to be invoking an older version
     of rspec, where the command was called 'spec', instead of 'rspec'. But
     there is no later version of rspec listed (I have 2.6.0) and no updates
     are available.

  5. Is it possible that I need to uninstall rspec from the command line (so
     as to include dependencies, if that works) and install rspec2? (There
     seem to be several reports of difficulties with that version in NB, so 
     I've avoided it.)