CLion 2018.2.3: better compilation database integration


CLion 2018.2.3 update (build 182.4323.58) is now available!

You can download it from our website, use Toolbox app or snap packages (in the case of Ubuntu) to update. A patch-update will be available shortly for those using CLion 2018.2.2.

Download CLion

CLion 2018.2 added a support for compilation database project format. This bug-fix update improves the integration.

Automatically reload compilation database

If you make changes in compile_command.json file, you can now force CLion to automatically detect them and reload the project. This is especially useful when working with Makefiles in CLion through the compilation database: file watchers monitor changes in Makefiles, regenerate the compilation database and CLion reloads it automatically. See the example described step by step in our webhelp.
To enable the Auto-import go to Settings/Preferences | Build, Execution, Deployment | Compilation Database:

Besides, we’ve also fixed a bug that caused Cannot get compiler information errors for files with relative paths in case of compilation database (CPP-14083). By the way, the issue was caught on Ruby sources. So now you can open it in CLion successfully!

Other improvements

CLion 2018.2 comes with Google Sanitizers integration. To let Sanitizers convert addresses into source code locations and make stack-traces easy to understand, one have to ensure that the PATH or *SAN_SYMBOLIZER_PATH environment variable contains the location of llvm-symbolizer. In case of using Clang compiler, you will get a notification from CLion if none of the PATH or *SAN_SYMBOLIZER_PATH variables points to llvm-symbolizer:

Besides, bundled CMake version was updated to 3.12.1.

Full release notes are available by the link.

Download CLion

Your CLion Team

The Drive to Develop

Comments below can no longer be edited.

3 Responses to CLion 2018.2.3: better compilation database integration

  1. Avatar

    HGH says:

    September 14, 2018

    Please consider adding more visual (UI) cues to the “Execution point” when debugging instead of just changing the font color and background. An arrow or other icon next to the line would be great. Also run to cursor could be made as an icon next to a line when the mouse cursor is hovering over it.

    • Anastasia Kazakova

      Anastasia Kazakova says:

      September 14, 2018

      Thank you. We’ll consider that. However, we still would like to keep the UI clean and not to overload it with many items.

      • Avatar

        HGH says:

        September 19, 2018

        Other IDEs I have used put some icon in the margins over the breakpoint icons to indicate clearly the current line of execution. So having it will make switching over easier for newcomers and also it is better than just highlighting a line – and lines get highlighted for all reasons – breakpoints, currently selected line etc.

Discover more