[IDEA] MACの変更 '.vmoptions'により、IDEAの起動に失敗します



Mac Modification



アイデアバージョン:「2019.3」

質問:



IDEAの 'ヘルプ| [カスタムVMオプションの編集]メニューで、[。vmoptions]構成が変更されました(ファイルパスが正しく変更されていません)。何度も再起動した後、ソフトウェアを開くことができませんでした。再インストールソフトウェアをアンインストールした後でも、問題は再発します。

1。「。vmoptions」の公式説明

JVMオプションとプラットフォームプロパティの構成 上記の文書を研究することによって、私は見つけました



1)IDEAには2つの「.vmoptions」ファイルがあります

VM options are loaded from the IDE_HOMEin[bits][.exe].vmoptions file or from the copy of this file in the config directory (if it exists). Please note that .vmoptions file from the config directory has the priority over the original file in the bin directory.

VMオプションは 'からIDE_HOME bin [bits] [。exe] .vmoptions'ファイルまたはconfigディレクトリにある.vmoptionsのコピーロードされました。 configディレクトリの.vmoptionsファイルの実行優先度は、Ideaインストールパスの下のbinディレクトリの元のファイルよりも高いことに注意してください。

2) 'ヘルプ| [カスタムVMオプションの編集]メニューは、[構成]の下のコピーファイルを編集します



Mac OS X Specifics Don't edit .vmoptions and .properties files directly, it will violate the application signature, always make a copy of the files under IDE configuration directory and edit the copy instead. See this answer for details. The original file is located in /Applications/.app/Contents/bin folder (/Applications/.app/bin for older IDE versions).

Mac用の手順:
'.vmoptions'ファイルと '.properties'ファイルを直接編集しないでください(元のファイルは/Applications/.app/Contents/binフォルダーにあります。古いIDEバージョンの場合は/Applications/.app/binです)。これはアプリケーションの署名に違反します。常にIDE構成ディレクトリにファイルのコピーを作成してから、そのコピーを編集してください。つまり、編集は 'ヘルプ| [カスタムVMオプションの編集]メニュー。

3)Mac OSConfigコピーファイルアドレス

Configuration (idea.config.path): ~/Library/Preferences/

要約すると、IDEAを再インストールしても、ソフトウェアは開きません。 「カスタムVMオプションの編集」は、「〜/ Library / Preferences /」のコピーを編集します。

2..vmoptionsの「コピーファイル」を削除します

上記のように、「/ User / username / Library / Preferences /」パスの下に、「IntelliJIdea」に関連するファイルが見つかりませんでした。 。 。

隠しファイルの理由を考慮すると、Finderで表示すると、ディレクトリは次のようになります。

'.vmoptions'ファイルを削除し、IDEAを再起動します。