Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"# encoding: utf-8" header raises an exception in debugger #2

Open
alexbix opened this issue Jun 30, 2010 · 0 comments
Open

"# encoding: utf-8" header raises an exception in debugger #2

alexbix opened this issue Jun 30, 2010 · 0 comments

Comments

@alexbix
Copy link

alexbix commented Jun 30, 2010

I'm running:
- Ubuntu 10.04
- NetBeans IDE 6.9
- ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux] compiled from sources
- and the following gems:
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
archive-tar-minitar (0.5.2)
columnize (0.3.1)
linecache19 (0.5.11)
rack (1.2.1, 1.1.0)
rails (2.3.8)
rake (0.8.7)
ruby-debug-base19 (0.11.23)
ruby-debug-ide19 (0.4.12)
ruby_core_source (0.1.4)
rubygems-update (1.3.7)

Adding "# encoding: utf-8" at the top of the .rb file allows me to use non ASCII characters in the code, which runs smoothly. Unfortunately, the debugger raises the following exception:

Fast Debugger (ruby-debug-ide 0.4.9) listens on :57854
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_load'
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_program'
        /usr/local/lib/ruby/gems/1.9.1/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:87:in `<top (required)>'
        /usr/local/bin/rdebug-ide:19:in `load'
        /usr/local/bin/rdebug-ide:19:in `<main>'
Uncaught exception: /home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: invalid multibyte char (US-ASCII)
/home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: invalid multibyte char (US-ASCII)
/home/alex/NetBeansProjects/RubyApplication1/lib/main.rb:94: syntax error, unexpected $end, expecting keyword_end
  puts "L'utente non è autorizzato!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant