Satadru Biswas Satadru Biswas - 4 months ago 36x
Java Question

Case sensitive files in IntelliJ Idea on Mac OSX

My java project has files which have same name but different cases ( & I have setup a case sensitive file system on my mac and am able to view/edit them via CLI. However, Intellij Idea does not regard them as different and compilation fails. How can I fix Intellij Idea to honor cases for a file name?



I filed a support request at JetBrains. Here is the answer:

add "" to bin/ file ( ), perform File | Invalidate Caches and restart the IDE.

It solved the issue for me.

update: 2015-02-14 / Idea 14.0.3

It is no longer sufficient to add the property to the file. Add to "Settings | ... | Java Compiler | Additional command line parameters".