Code inspection gives false "No such file to load" errors

I've recently installed RM on a second machine and cloned a GitHub repository there.

My application runs exactly the same as on the first machine, but the RM code inspection result is radically different: I get dozens of "No such file to load" errors.

This even though the application runs fine both from the command line and from RM.

In dialog Run/Debug Configurations, I have specified load paths (-I. -I..)in the Ruby arguments.

Does the code inspection not honor the configuration?  Or perhaps it's using a different configuration?

0
Avatar
Permanently deleted user

Hi,

the inspection doesn't check settings for the run configuration (because you may have several with different settings).
You could add the directories to load path in Settings|Project|Project Structure|Load Path.
But I'd prefer to write my app the way it would work w/o such settings (do you really like to add -I in command line every time?)

Regards, Oleg.

0
Avatar
Permanently deleted user

The thing is, this occurs on one machine but not on the other.  Both are running up-to-date code from a GitHub repository.

So, I wonder, how can this be?

0
Avatar
Permanently deleted user

Hi,

is the code available to test the problem?
If not, could you please try to invalidate caches (File|Invalidate Caches) and if after full reindexing the problem will be still reproducible
please provide RubyMine's logs (Help|Show Log in...)

Regards, Oleg.

0
Avatar
Permanently deleted user

I've made the application independent of any ad-hoc load paths, so it now works both in execution and in code inspection.

0

请先登录再写评论。