cannot find reference - NSWindow

I created a RubyMotion project from my existing RubyMotion project files. But RubyMine is saying 'cannot find' for all the Mac OS SDK references.  (see attached screenshot)

I searched the preferences/settings and I couldn't find a single setting related to RubyMotion. Why might this not be working, and what types of things might I try changing to fix it? Thanks!



Attachment(s):
Screen Shot 2014-12-07 at 12.26.01 PM.png
3 comments
Comment actions Permalink

Could you please check if the Ruby SDK is selected for the project in the 'Settings | Languages & Frameworks | RubySDK and Gems'?

0
Comment actions Permalink

The Ruby SDK is set. References to ruby classes like 'File' are found. It's only the RubyMotion references that cannot be found.



Attachment(s):
Screen Shot 2014-12-08 at 10.13.54 AM.png
0
Comment actions Permalink

I eventually fixed this on my own by adding the following line to my .idea/<project_name>.iml file:

    <orderEntry type="library" scope="PROVIDED" name="RubyMotion Library" level="application" />

I added it inside this section:

  <component name="NewModuleRootManager">

I noticed that this line was present in the .iml file of a RubyMotion project created from scratch, but not in my project, which was created from an existing code base.

I think this is a bug in RubyMine. When creating a RubyMotion project from existing code, the '.iml' file is not created properly.

It would be nice if there was a place in the settings where it would show whether or not your project is a RubyMotion project or not, then I wouldn't have had to dig into the project files with a text editor.

0

Please sign in to leave a comment.