C++ JetBrains Resharper unrecoverable hang
Hello, I have recently ran into an issue where Resharper is causing Visual Studio 2019 to hang after I create a new file and begin to edit it.
It seems there some build action attempting to run which then fails, and repeats indefinitely every few milliseconds until I have to force close VS 2019 as it will never recover.
13:17:51.052 |I| RdActions | :1 | Started 'Build.SolutionConfigurations' action at 1 time.
13:17:51.052 |I| RdActions | :1 | 'Build.SolutionConfigurations' Action execution failed. Action 'Build.SolutionConfigurations' isn't available
13:17:51.053 |I| RdActions | :1 | Started 'Build.SolutionPlatforms' action at 1 time.
13:17:51.053 |I| RdActions | :1 | 'Build.SolutionPlatforms' Action execution failed. Action 'Build.SolutionPlatforms' isn't available
13:17:52.082 |I| RdActions | :1 | Started 'Build.SolutionConfigurations' action at 1 time.
13:17:52.082 |I| RdActions | :1 | 'Build.SolutionConfigurations' Action execution failed. Action 'Build.SolutionConfigurations' isn't available
13:17:52.083 |I| RdActions | :1 | Started 'Build.SolutionPlatforms' action at 1 time.
13:17:52.083 |I| RdActions | :1 | 'Build.SolutionPlatforms' Action execution failed. Action 'Build.SolutionPlatforms' isn't available
13:17:52.114 |I| CodeCompletionSessionManager | :1 | strategies.Count > 0
13:17:54.075 |I| CodeCompletionSessionManager | :1 | strategies.Count == 0
13:17:54.089 |I| CodeCompletionSessionManager | :1 | strategies.Count > 0
13:17:54.113 |I| CodeCompletionSessionManager | :1 | strategies.Count == 0
13:17:57.664 |I| CodeCompletionSessionManager | :1 | strategies.Count > 0
13:18:07.907 |I| CodeCompletionSessionManager | :1 | strategies.Count == 0
13:18:07.919 |I| CodeCompletionSessionManager | :1 | strategies.Count >
'Build.SolutionConfigurations' Action execution failed. Action 'Build.SolutionConfigurations' isn't available
This line repeats indefinitely.
This problem has been extremely frustrating and has ruined my productivity so much so that I can no longer run Resharper due to it, I need to be able to work, not spend 50% of my time re-opening my solutions.
Anyone had this problem, or does anyone know of a fix?
Please sign in to leave a comment.
Hello,
These log lines are probably unrelated to the hangs. Does VS hang completely or are the hangs intermittent? In the latter case, please try to collect a timeline trace which captures some hangs and send it to us - https://resharper-support.jetbrains.com/hc/en-us/articles/210652849-Collect-Timeline-performance-snapshot-in-Visual-Studio
Thanks!
I followed those instructions, opened the feedback center and started a performance report with a timeline snapshot, the problem is EVERYTHING freezes, the external launcher window completes the snapshot and sends it back to the performance report however I cannot do anything with any window related to Visual Studio 2019, everything hangs, there's nothing I can do afterwards.
All I do to consistently replicate this problem is create a file, and write anything in it, job done, VS 2019 hangs and never recovers.
I collected the snapshot ZIP file that was produced from the temp folder, I can submit this to you if you would like.
As well as the environment info text file.
Yes, please upload it to https://uploads.jetbrains.com/ and let us know the upload id.
Upload ID 2021_10_13_Rb3gUqdp1gYS5j2f
Thanks a lot! It indeed looks like R# hangs UI and seems like it's related to the "Cleanup on save" feature. Do you have cleanup on save enabled? If so, does the problem go away if you disable the "Automatically run cleanup when saving a file" setting?
I've created https://youtrack.jetbrains.com/issue/RSCPP-32496 to track this.
Also for the record, which R++ version are you using?
The issue does go away when I disable Automatically run cleanup when saving a file, however, it's only occurring with newly created files and runs fine elsewhere.
JetBrains ReSharper 2020.2.5 Build 202.0.20201201.130941 built on 2020-12-01
ReSharper C++ 2020.2.20201201.134638
That's quite an old version, could you please try updating to 2021.2 or 2021.3 EAP and check if it still affects you? I can't reproduce this when I add a new file with "Automatically run cleanup" enabled.
Seems to be resolved with an update.
Cheers.