carymrobbins / intellij-haskforce

Haskell plugin for IntelliJ IDEA
http://carymrobbins.github.io/intellij-haskforce/
Apache License 2.0
486 stars 39 forks source link

Shouldn't the .iml file be in .idea/? #222

Open orome opened 8 years ago

orome commented 8 years ago

For other projects I've built using the IDE, I have the .iml file tucked away in the .idea/ directory. But if I try that here my project isn't recognized. Is this normal?

carymrobbins commented 8 years ago

Originally in IntelliJ, .iml files were inside the module directory. It seems that newer versions of IntelliJ instead put them in the .idea/ directory. HaskForce still currently puts them (and assumes they are) in the module directory.

What do you mean by the "project isn't recognized"? Is there a specific error message that you receive?

orome commented 8 years ago

If I move it to the .idea/ directory, the project isn't recognized as a project (e.g., no modules are recognized). This isn't the case with other projects where I do the same (move the .iml manually).

carymrobbins commented 8 years ago

Yes, HaskForce associates the .iml files directly with their module directories, so it expects them to be in their respective roots. This could change, but would require some work.