Resharper 8.1 Test Runner slowing down Visual Studio Text Editing

坚强是说给别人听的谎言 提交于 2019-12-19 05:33:11

问题


I've got a fairly small C# solution with about 5 projects in it. I am using Visual Studio 2012 with Update 4, and Resharper 8.1 (build 8.1.23.546). It's on an I7 with an SSD and 16GB RAM, with oodles of disk space. Performance on this machine is fantastic for everything else.

I have R# set to be my unit test runner, and I've noticed that as soon as I run any unit tests (one or many, pass or fail, makes no difference), the Visual Studio text editor becomes almost unusable. Typing into the editor window suffers such extreme lag (up to 1 second between keystrokes) that it completely breaks down the development flow. Sometimes I actually have to stop typing to let the keystrokes catch up so that I can look up something in Intellisense.

The problem persists until I close down and then reopen VS, at which point everything is fine again. Until I run another unit test. Then it's back again.

I've run Process Monitor to see if that turned up anything (it didn't), and I've tried various things like cleaning out various caches, temporary asp.net files, resetting settings, all to no effect, in fact basically pretty much all the options presented at Google search results for VS being really slow

However, process of elimination did eventually narrow everything down to being a problem with Resharper, and specifically the test runner.

I then tried the R# performance optimisation tips as described here - The Ultimate Guide to speeding up Resharper, and the only one that worked (after many restarts) was the disabling the Unit Test Runner.

I've since disabled the R# test runner, and reverted to the built-in VS one (which I hate), and the problem went away immediately. As soon as I re-enable the R# test runner, the problem comes back.

Has anyone else experienced this problem, and found a solution?

Cheers :)


回答1:


I have improved my performance by going to CodeMaid -> Configuration... -> Digging (Spade) -> General and unchecking "Synchronize outlining with the code file." Resharper code analysis and unit testing is on.

Visual Studio 2013
Resharper 8.1.23.546
CodeMaid 0.7.0 



回答2:


This appears to have been fixed in the latest 8.2 EAP build (I downloaded and installed 8.2.0.1139 this morning). I closed VS2012, install R# and get it to remove conflicting products.

When I reopened VS, it had clobbered all the R# extension tools (presumably because it's not a stable build). I also told it to disable support for NUnit (because we're not using it) in the unit testing options (tho this made no difference before).

I can now run unit tests using the R# runner (it's a LOT quicker as well), and there's no enforced typing-speed slowdown in the IDE any more.



来源:https://stackoverflow.com/questions/21445938/resharper-8-1-test-runner-slowing-down-visual-studio-text-editing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!