Clion 2020.2 Release canditate reformat code suuuuper slow and lag...

已完成

Hey

 

I'm running latest clion RC one and when ever I press CTRL+ALT+L clion begins reformating code and that task is suuuper slow. Happens on a large and small projects. In both cases it can freeze entire app for 5-20 seconds. I tend to spam that shortcut about 20x a minute and oh boy this slow down coding by a lot (habbits...) 

 

In any case, is it just me or its a known issue?

4

Hello!

Please send automatically generated thread dumps if you have them in the logs folder (Help | Show Log in …) or, if there are no dumps, please capture a CPU snapshot and send it to clion-support at jetbrains.com.

0

I'm seeing this too - after 2020.2 update reformatting is painfully slow.

0

Toby Ealden do you use clang-format or builtin formatter? Please provide the materials requested in the previous comment to clion-support at jetbrains.com.

0

I'm using clang-format, but I was before 2020.2 and it was super snappy.

I've sent the thread dumps as requested.

0

Hi everyone!

The problem seems to be caused by https://youtrack.jetbrains.com/issue/CPP-21657. Please comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

@Anna Falevskaya I've updated to latest clion now up from the version originally reported above. Still having the issues - yes I know the track is still open and WIP but I remember reading somewhere that there is a way to switch back to old reformating method in clion. How can I do this? I think clang now handles it and thats "new" ? Or I'm totally wrong?

1

Are there any updates? I'm using PyCharm 2020.2.2 and have the same issue and it is really annoying.

0

Kulyk Dmitry PyCharm is a different IDE, please create an issue in PyCharm tracker https://youtrack.jetbrains.com/issues/PY and my colleagues will assist you.

0

Dariusz Makowski there are a builtin formatter and an alternative ClangFormat formatter - https://www.jetbrains.com/help/clion/clangformat-as-alternative-formatter.html. The builtin formatter is not based on clangd if you meant that.

0

请先登录再写评论。