Open ajpalkovic opened 13 years ago
Drats. I haven't tested Bdoc on windows. I'll try and get to it soon, or if you want to dive down, maybe you can patch it for me :-) Bdoc's code is super simple.
Similar problem here on OS X:
(erb):167:in concat
: incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from (erb):167:in generate_index'
@polarblau what ver of ruby are you on? also... what ver of erb?
@polarblau... scratch the erb ver... forgot that's part of the stdlib
Yep, got me confused there for a sec ;) — Ruby is 1.9.2p136 .
Updated and pushed v0.3.3. Thanks guys!
Closing now, but please let me know if you still see this issue.
Bad news:
C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/lib/bdoc.rb:10:in <top (required)>': uninitialized constant Object::VERSION (NameError) from <internal:lib/rubygems/custom_require>:29:in
require'
from internal:lib/rubygems/custom_require:29:in require' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/bin/bdoc:3:in
<top
(required)>'
from C:/Dev/Ruby192/bin/bdoc:19:in load' from C:/Dev/Ruby192/bin/bdoc:19:in
You need to change VERSION to RUBY_VERSION on line 10. But even after I did that, the same error is thrown.
On Mon, Mar 14, 2011 at 6:08 PM, manalang < reply@reply.github.com>wrote:
Closing now, but please let me know if you still see this issue.
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873130
My bad... I should have tested on win before I pushed it. I did, however, push 0.3.4 (just now) which fixes the problem. This time I tested it on XP/ 1.9.1. Sorry about that.
On Mon, Mar 14, 2011 at 3:50 PM, ajpalkovic < reply@reply.github.com>wrote:
Bad news:
C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/lib/bdoc.rb:10:in
<top (required)>': uninitialized constant Object::VERSION (NameError) from <internal:lib/rubygems/custom_require>:29:in
require' from internal:lib/rubygems/custom_require:29:inrequire' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/bin/bdoc:3:in
<top (required)>' from C:/Dev/Ruby192/bin/bdoc:19:inload' from C:/Dev/Ruby192/bin/bdoc:19:in
' You need to change VERSION to RUBY_VERSION on line 10. But even after I did that, the same error is thrown.
On Mon, Mar 14, 2011 at 6:08 PM, manalang < reply@reply.github.com>wrote:
Closing now, but please let me know if you still see this issue.
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873130
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873323
Yeah, it still didn't work. I added this line after like 57: index.force_encoding('IBM437') that fixes it for me, but I doubt that is correct for everyone.
Also there is a bug in the program. It says that I do not have the documentation for rails/activerecord etc installed. I have teh docs for 3.0.3 installed, but when I installed rails 3.0.4 and 3.0.5 I did not install the docs again cuz it is slow. It should at least pick up the old version of the docs and show them.
On Mon, Mar 14, 2011 at 6:52 PM, manalang < reply@reply.github.com>wrote:
My bad... I should have tested on win before I pushed it. I did, however, push 0.3.4 (just now) which fixes the problem. This time I tested it on XP/ 1.9.1. Sorry about that.
On Mon, Mar 14, 2011 at 3:50 PM, ajpalkovic < reply@reply.github.com>wrote:
Bad news:
C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/lib/bdoc.rb:10:in
<top (required)>': uninitialized constant Object::VERSION (NameError) from <internal:lib/rubygems/custom_require>:29:in
require' from internal:lib/rubygems/custom_require:29:inrequire' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.3/bin/bdoc:3:in
<top (required)>' from C:/Dev/Ruby192/bin/bdoc:19:inload' from C:/Dev/Ruby192/bin/bdoc:19:in
' You need to change VERSION to RUBY_VERSION on line 10. But even after I did that, the same error is thrown.
On Mon, Mar 14, 2011 at 6:08 PM, manalang < reply@reply.github.com>wrote:
Closing now, but please let me know if you still see this issue.
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873130
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873323
Reply to this email directly or view it on GitHub: https://github.com/manalang/bdoc/issues/5#comment_873337
would you mind sending me a list of the gems you have installed? one of your gems has encoding that bdoc is having a hard time converting.
Problem seems to persist after update to 0.3.5. Here are the gems in question:
abstract (1.0.0)
actionmailer (3.0.5, 3.0.0)
actionpack (3.0.5, 3.0.0)
activemodel (3.0.5, 3.0.0)
activerecord (3.0.5, 3.0.0)
activeresource (3.0.5, 3.0.0)
activesupport (3.0.5, 3.0.0)
arel (2.0.9, 1.0.1)
autotest (4.4.6)
autotest-growl (0.2.9)
autotest-rails (4.1.0)
barista (1.0.0)
bcrypt-ruby (2.1.4, 2.1.3)
bdoc (0.3.5, 0.3.2)
builder (2.1.2)
bundler (1.0.10)
capybara (0.4.0)
celerity (0.8.8)
childprocess (0.1.7)
coffee-script (2.1.3, 2.1.1)
coffee-script-source (1.0.1, 1.0.0)
configuration (1.2.0)
cucumber (0.10.0)
cucumber-rails (0.3.2)
culerity (0.2.15)
database_cleaner (0.6.4, 0.6.0)
devise (1.1.7, 1.1.5)
devise_invitable (0.3.6, 0.3.5)
diff-lcs (1.1.2)
dragonfly (0.8.2, 0.8.1)
email_spec (1.1.1)
erubis (2.6.6)
factory_girl (1.3.3, 1.3.2)
factory_girl_rails (1.0.1, 1.0)
ffi (0.6.3)
gherkin (2.3.3)
haml (3.0.25, 2.2.24)
hanna (0.1.12)
hirb (0.4.0)
hpricot (0.8.4, 0.8.3)
i18n (0.5.0, 0.4.2)
jasmine (1.0.1.1)
json (1.4.6)
json_pure (1.5.1, 1.4.6)
launchy (0.4.0, 0.3.7)
mail (2.2.15, 2.2.13)
meta_where (1.0.4)
mime-types (1.16)
multi_json (0.0.5)
nokogiri (1.4.4)
pickle (0.4.4)
polyglot (0.3.1)
rack (1.2.1)
rack-cache (1.0)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (3.0.5, 3.0.0)
railties (3.0.5, 3.0.0)
rake (0.8.7)
rdoc (2.3.0)
rspec (2.5.0, 2.4.0)
rspec-core (2.5.1, 2.4.0)
rspec-expectations (2.5.0, 2.4.0)
rspec-mocks (2.5.0, 2.4.0)
rspec-rails (2.5.0, 2.4.1)
ruby_parser (2.0.6, 2.0.5)
rubyzip (0.9.4)
selenium-client (1.2.18)
selenium-rc (2.3.2, 2.2.4)
selenium-webdriver (0.1.3)
sexp_processor (3.0.5)
shoulda (2.11.3)
spork (0.9.0.rc4, 0.9.0.rc2)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3, 1.3.2)
term-ansicolor (1.0.5)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.24, 0.3.23)
warden (1.0.3)
watchr (0.7)
webrat (0.7.3)
wirble (0.1.3)
xpath (0.1.3)
yard (0.6.4)
ZenTest (4.4.2)
@polarblau, I just installed all of the gems you specified above (with rdocs) on 1.9.2-p180 (osx) and could not repro. Are you still getting:
(erb):167:in concat
: incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
from (erb):167:in generate_index'
If so, I wonder if it's 1.9.1 related.
Yes, I'm still getting the error when trying to run bdoc
. But as mentioned, this is running on 1.9.2 using RVM and a gemset.
I get this exception immediately after running 'bdoc' on windows: I have the latest version of the ruby 1.9.2 windows installer.
(erb):167:in'
concat': incompatible character encodings: IBM437 and UTF-8 (Encoding::CompatibilityError) from (erb):167:in
generate_index' from C:/Dev/Ruby192/lib/ruby/1.9.1/erb.rb:753:ineval' from C:/Dev/Ruby192/lib/ruby/1.9.1/erb.rb:753:in
result' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.2/lib/bdoc.rb:50:ingenerate_index' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.2/lib/bdoc.rb:56:in
open' from C:/Dev/Ruby192/lib/ruby/gems/1.9.1/gems/bdoc-0.3.2/bin/bdoc:4:in<top (required)>' from C:/Dev/Ruby192/bin/bdoc:19:in
load' from C:/Dev/Ruby192/bin/bdoc:19:in `