Syntax highlighting and code inspection stops working after including anything from standard library after upgrading GCC to version 10 on Ubuntu 20.04

Completed

Basically my code gets highlighted and inspected fine until I include a standard library header (<string> for example). Sometimes when I remove the include line the highlighting comes back and sometimes it comes back only if I restart CLion after removing the line. The code compiles fine. I already tried reinstalling GCC, CLion and whole Ubuntu and the problem is exactly the same. The problem is not consistent for all the headers because <cstdint> works fine and doesn't break anything but <string>,  <map>, <iostream> do. I don't have any external plugins, it's a totally fresh install of the newest CLion and Ubuntu. Going back to GCC-9 fixes the problem but GCC-10 just doesn't seem to work.

1 comment
Comment actions Permalink

Hello!

Please do the following:

  • Open registry (Help | Find Action, type "Registry..."), enable clion.clang.clangd.crash_reports and set clion.clang.clangd.debug to 1.
  • Close all tabs in the editor.
  • Do File | Invalidate Caches / Restart....
  • Open any file in which the problem can be reproduced stably.
  • Reproduce the issue.
  • Send the idea.log file (Help | Show Log in ...) to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names). 
0

Please sign in to leave a comment.