Syntax Error in 2.0.2: Readline Library

I'm using the Ruby 'Readline' library, which is described in the PickAxe book as an 'interface to GNU Readline library'

The relevant code looks like:
  require 'readline'
  include Readline
  cmd = readline("prompt > ", true)

RubyMine has problems with this code:
- says it can't locate "include 'readline'"
- can't jump to the Readline method definition using Ctrl-B
- shows a red syntax error under 'cmd=readline...'

I'm using:
RubyMine 2.0.2
Ruby 1.8.7
Ubuntu Jaunty

1 comment
Comment actions Permalink

Hi Andy,

Ruby ships readline library as a binary files, and RubyMine uses generated stubs to extract symbols information from builtin native library.
Accidentaly RubyMine doesn't have a stub generated for readline.
I've created an issue for this:
Feel free to track progress of it.

Best regards,


Please sign in to leave a comment.