katahik
katahik

Reputation: 477

How do I remove the "library root" setting from a directory?

I use RubyMine.

When I created a project, a directory was automatically set to the "library root" as shown below.
enter image description here

I would like to remove this library root, but I could not find a way to do so in my search.
(I also tried the method in the following article, but it did not solve my case)

The environment settings (project configuration) are as follows enter image description here

If you know how to unlock the LIBRARY route, I would appreciate it if you could let me know.

Upvotes: 2

Views: 693

Answers (4)

Dennis Nedry
Dennis Nedry

Reputation: 4777

I am working on a pretty large rails application that uses multiple engines nested inside each other. The only way to solve the issue was to edit the .idea/<your_project_name>.iml.

More specificly I had to remove all the <excluded>-nodes.

They look something like this:

    <excluded>
      <root url="file://$MODULE_DIR$/foo/bin" />
      ...
    </excluded>

Remove them and then restart Rubymine.

Upvotes: 0

Galley
Galley

Reputation: 633

  • Go to Project Structure (Press CMD + ; on MacOS)
  • Select Platform Setting - SDKs.
  • Click your SDK name you are using.
  • Check if the directory make as "library root" is under Classpath. Remove it if yes.

Upvotes: 1

Ryan
Ryan

Reputation: 1

First, make sure that the ancestor of the 'library root' folder is marked as 'excluded.'

Second, use the 'Repair IDE' under the 'File' tab to reindex all the files.

  • Step 1: Rescan Project Indexes
  • Step 2: Reopen Project
  • Step 3: Drop Shared Indexes
  • Step 4: Reindex Project

Last, wait for all the steps to be finished. Then the 'library root' label should disappear.

Upvotes: -1

katahik
katahik

Reputation: 477

I was able to change it by modifying .idea/.〇〇.iml

Upvotes: 0

Related Questions