Clion does not color error with WSL2

So I have this function:

Obviously it's wrong, as b is not yet declared. However, only when choosing VS Studio as Toolchain does Clion color the error. I want this very handy behavior with WSL2. What should I do?

Thank you.

1 comment
Comment actions Permalink

Hello!

Is it a CMake project? If yes, please do `Tools | CMake | Reset Cache and Reload Project` when the WSL2 is selected and share the output from the CMake tool window.

0

Please sign in to leave a comment.