JetBrain系列IDE提示Filesystem Case-Sensitivity Mismatch的解決




解決方法[1]


1. 用文本編輯器修改APP包文件中的屬性文件(不推薦)

打開終端輸入下面的命令,vi可替換為對應的文本編輯器

vi /Applications/{appFolder}/Contents/bin/idea.properties

也可以右鍵對應的的APP,點擊顯示包內容Show Package Contents,然后在Contents/bin/找到idea.properties文件打開
在最后一行加入

idea.case.sensitive.fs=true

2. 復制或新建屬性文件到APP的啟動目錄,添加對應的屬性項(推薦)

IDE_HOME/bin/ 復制 idea.properties 文件到 ~/Library/Preferences/<appFolder>/目錄 ,或者直接新建名稱為idea.properties 的文件

  • IDE_HOME/bin/ 為對應的APP的包文件的路徑:

對PhpStorm2018.2版本來說,目錄是: /Applications/PhpStorm/Contents/bin/idea.properties
對PyCharm2018.2版本來說,目錄是: /Applications/PyCharm/Contents/bin/idea.properties

  • ~/Library/Preferences/<appFolder>/為對應IDE的啟動目錄,如果是自定義的啟動目錄,則按照自定義的啟動目錄選擇即可,默認的啟動目錄:

對PhpStorm2018.2版本來說,目錄是: ~/Library/Preferences/PhpStorm2018.2/
對PyCharm2018.2版本來說,目錄是: ~/Library/Preferences/PyCharm2018.2/

如果是復制,建議清空該文件的內容,在該文件中添加

idea.case.sensitive.fs=true

也可以打開終端執行

vi ~/Library/Preferences/<appFolder>/idea.properties 
或
cp IDE_HOME/bin/idea.properties ~/Library/Preferences/<appFolder>/idea.properties
然后
echo 'idea.case.sensitive.fs=true' > ~/Library/Preferences/<appFolder>/idea.properties
# PhpStorm2018.2對應的命令為
vi ~/Library/Preferences/PhpStorm2018.2/idea.properties

cp /Applications/PhpStorm/Contents/bin/idea.properties ~/Library/Preferences/PhpStorm2018.2/idea.properties

echo 'idea.case.sensitive.fs=true' > ~/Library/Preferences/PhpStorm2018.2/idea.properties

然后重啟IDE即可看到效果。


  1. http://confluence-prod.aws.intellij.net/display/IDEADEV/Filesystem+Case-Sensitivity+Mismatch ↩︎


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM