CLion 2021.3 Help

Repair IDE

CLion provides the means to refresh and recover cached files in a particular project step by step. Using the Repair IDE action, you can troubleshoot the issues with unresolved code or corrupted caches in your project without invalidating the cache and restarting the IDE. CLion processes only the current project during the recovery, so you will not lose the cache files of all projects. Thus, the next time you open a project, you will not need to wait for cache recreation.

CLion provides several recovery steps intended to resolve issues you might experience when working in the IDE, for example, when some class isn't resolved or navigation features don't work correctly. After each step, you can check whether the issue persists and decide to continue or complete the recovery process.

  1. From the main menu, select File | Repair IDE. CLion will automatically launch the first recovery step and refresh the virtual file system.

    CLion will display a notification that you can use to continue or complete the recovery process. If everything works correctly, click Everything Works Now to complete the recovery process. You can do this after any step of the recovery process.

  2. To continue the recovery process, click Rescan Project Indexes. CLion will find all files in your project that aren't indexed and index them.

    The first step of IDE Repair
  3. To move to the next recovery step, click Reopen Project. This will reopen your project without restarting CLion.

    The second step of IDE Repair
  4. To move to the next recovery step, click Reindex Project

    The third step of IDE Repair
  5. After going through all the recovery steps, if the issue persists, you can continue with cache invalidation. Click the Actions link and select Invalidate Caches and Restart.

    The last step of IDE Repair
Last modified: 02 December 2021