Back to Intellij Community

README

native/repair-utility/README.md

2025.3-rc-23.1 KB
Original Source

Repair is the command line utility to troubleshoot startup problems of the IDE.

Repair binary should be launched from the command line if the IDE cannot start.

Usage

repair [aspect] [flags] where

[aspect] is one of

AspectDescription
hashesHashes aspect generates(-g) or checks(-c, default) IDE integrity by inspecting checksums of all installation files.
Hashes aspect returns Warning if some files are missing, or distribution has redundant files inside
logLog aspect inspects idea.log file for exceptions and errors generated by plugins. In case of Warnings, it asks to remove caches and configs.
pluginsPlugins aspect scans all the installed plugins and suggest fixes if some of them are incompatible or require updates.
runtimeRuntime aspect finds the JDK used to start the IDE and checks if it is OK to use. Sets the bundled JDK in case of warnings.
vmoptionsVmoptions aspect finds the .vmoptions file used by the IDE and analyzes its content for suspicious entries. If any of them found, one can edit the file manually, or reset VM options to default.

If no aspects passed, all aspects will be executed one by one.

[flags] are:

FlagDescription
--debugEnable debug
-h , --helpshow help for repair utility
-n, --noOnly check the installation. All the fixes will be skipped.
-y, --yesApply all the suggested fixes automatically
--path [string]path to the IDE (default is the IDE where the script is located)

Help

To show usage overview, execute ./repair --help

To list all available options of an aspect, execute ./repair <aspect> --help

Example

/Applications/IntelliJ IDEA.app/Contents/bin/repair - Checks the current IDE installation through all aspects one-by-one

./repair hashes --path "/Applications/IntelliJ IDEA.app" - Checks all the files of the defined IDE installation for consistency

./repair plugins -y - Find all installed IDEs on the computer and check its plugins. All fixes such as updaying will be executed automatically