clion sometimes can not highlight the codes

已完成

In the latest version 2019.3.2 , it often can not highlight and format the codes ,see the image.

0

then I have to restart the clion and it work again.

0

Hello!

Maybe the clangd crash happens. Please send the idea.log file (Help | Show Log in ...) to clion-support at jetbrains.com when the issue occurs again. Note that logs might contain private user's information (like file paths and names). 

0

I upload the idea20191227.log to track and hope it helps.

0

Where have you uploaded idea20191227.log?

0

Please create a preprocessed version of the problematic source file and send it to clion-support at jetbrains.com.

  1. Figure out the exact compiler command used to compile your file:

    • Put VERBOSE=1 to File | Settings | Build, Execution, Deployment | CMake | Build options;
    • Change something in your .cpp file;
    • Build the project and you'll see a command like /path/to/c++ <more args> -c /path/to/your_file.cpp -o /some/other/path/your_file.o <more args>.
  2. Take the command from 1 and do the following:

    • Replace -o /some/other/path/your_file.o with -o preprocessed.txt;
    • Add -E -P to the end of the command;
    • Execute it in the terminal and send the resulting preprocessed.txt to clion-support at jetbrains.com.

 

0

@Anna Falevskaya

I used win7 and vs 2017 gcc.

I add the VERBOSE=1 to cmake build option and change file ,rebuild it.but I don't find any command like /path/to/c++ <more args> -c /path/to/your_file.cpp -o /some/other/path/your_file.o <more args>. from the messages.

0

I just test it on ubuntu1804 and yes , it is there,but it happen on win7 and vs 2017 gcc

0

The necessary command should look like this:

Please double check  that you're following the instruction.

0

请先登录再写评论。