Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Arvicco
RE: gem installs, but does not work properly [ reply ]  
2009-10-09 09:37
Other gems using win32console, such as Rspec, also fail under Ruby 1.9.1 with similar error messages. :( So for now we're stuck with colorizing console output via Cygwin for Ruby 1.9.1 under Windows...

By: Arvicco
RE: gem installs, but does not work properly [ reply ]  
2009-09-27 10:15
Sorry, I'm not sure how to go about creating a test case for this, the problem can be reproduced like this:

1. Install ruby 1.9.1 - I used Ruby installer (http://rubyforge.org/frs/download.php/62213/rubyinstaller-1.9.1-p243-preview2.exe)
2. > gem install cucumber
3. > gem install win32console
4. > cucumber --color

Just running cucumber command makes it fail as I described above. However, after uninstalling win32console cucumber is running fine - just without colors in output under Windows :(

My platform is Windows XP Professional SP3, but i got the same failure on Win XP Home as well...

By: Justin Bailey
RE: gem installs, but does not work properly [ reply ]  
2009-09-26 06:23
Could you provide a test case I can run? Something small and self-contained, please.

By: Arvicco
gem installs, but does not work properly [ reply ]  
2009-09-26 05:55
With Ruby 1.9.1 - gem installs, but does not work properly. Such as, running cucumber with --color options results in failure (uninstalling win32console restores normal output):

C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require': C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: invalid multibyte char (US-ASCII) (SyntaxError)
C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: invalid multibyte char (US-ASCII)
C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/win32console-1.2.0-x86-mingw32/lib/Win32/Console/ANSI.rb:325: syntax error, unexpected $end, expecting ')'
s.tr!("АБВГДЕЖЗИЙКЛНОПРСТУФХЦЧШЩЪЫЭЮЯБ...
^
from C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require'
from C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/cucumber-0.3.103/lib/cucumber/formatter/ansicolor.rb:7:in `<top (required)>'