shoes/shoes — Issue #163: uninitialized constant Encoding::US_ASCII installing activerecord gem
Author: atownley
Created: 2011-11-18 11:45:01+00:00
State: open

Hi folks,

I've been googling and didn't see a reference to this particular issue, so I thought I'd ask it here. I'm trying to load the following test Shoes app:

Shoes.setup do
gem 'activerecord'
end

require 'active_record'

class Foo < ActiveRecord::Base; end

Shoes.app do
para "it works"
end

And all seems to start OK, but then I get the following stack trace:

Error in line 0
uninitialized constant Encoding::US_ASCII /Applications/Shoes.app/Contents/MacOS/ruby/lib/uri/common.rb:226:in `escape'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/remote_fetcher.rb:92: in `download'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/dependency_installer.rb:257:in `block in install'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/dependency_installer.rb:247:in `each'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/dependency_installer.rb:247:in `install'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/shoes/setup.rb:132:in `block in start'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/shoes/setup.rb:122:in `each'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/shoes/setup.rb:122:in `start'
/Applications/Shoes.app/Contents/MacOS/ruby/lib/shoes/setup.rb:57:in `block (4 levels) in setup_app'

The gem installation also fails to install on Vista, but the console window is black so I can't see the stack trace. In both cases, this is Policeman from the binary downloads for each platform. The windows one has the video components installed.

BTW, it'd be really handy if you could copy/paste from the console window! :)

Thanks in advance for any help.

Cheers,

ast