iftheshoefritz
iftheshoefritz

Reputation: 6129

IDEA Ruby plugin code inspection cannot see gem

Code inspection in the IntelliJ IDEA editor reports a LoadError "no such file to load" on the code

require 'state_machine'

The gem is installed locally. From the command line:

~$ echo $RUBYOPT 
rubygems
~$ irb
irb(main):001:0> require 'state_machine'
=> true

So Ruby and Rubygems are playing nicely together. The IDEA Ruby plugin's project settings even lists the gem, so why can't the editor see it?

Ruby version 1.8.7, IntelliJ IDEA 10.5.4.

Upvotes: 0

Views: 1065

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401965

This gem must be specified in the Gemfile, refer to help.

Upvotes: 1

Related Questions