How to include unbuilt gems/engines?

I have a rails app that is moving to more of a component architecture which involves extracting out unbuilt engines and gems.  So directory structure looks something like:
- app
- gems/foo
- engines/bar
- spec

My question is how do I get RubyMine to recognize the unbuilt engines and gems as part of the project?  Right now I can only get at those files if I check the box "include non-project Files".  I want it to treat these files as though they are project files, not non-project external files.

Comment actions Permalink

You can add these subdirs as source roots for your project (Settings|Project Structure)

Hope this helps, Oleg.

Comment actions Permalink

Hi Oleg, thanks for the tip.  However, when I go to Project Structure and right-click on a folder, the only two options are to mark the folder as "tests" or "excluded".  There is nothing about adding a source root.  There is an option to add a "content root", but when I tried to do that it complained that "content root being added is located below existing content root.  Content entries should not intersect."  

Comment actions Permalink

Hmm, RubyMine is not ready do work with such infrostructure, but I'd try to exclude these subdirectories and
open them as separate project (in the same window). Though I have to say I'm not sure if this will work correctly :(

Regards, Oleg.


Please sign in to leave a comment.