Quote:>Intellisense tends to be quite hungry in general.
Indeed and I have Resharper installed which doesn't help! Nevertheless...
Quote:>Can you confirm whether this is better when NCrunch is disabled?
Alas, it is -I can definitely say that enabling Ncrunch affects keyboard (and hence intellisense) responsiveness. Following Der-albert's scientific approach ;-)
I basically mash the keyboard as fast as I can typing 30-40 random characters. Note that the auto-repeat rate on my keyboard is not sufficient to reproduce this clearly so "holding down the comment key" doesn't really do it.
- With Ncrunch enabled, after I stop typing, it takes a second or so for the buffered characters to 'catch up' and be displayed on the screen.
- With Ncrunch disabled, there's no such lag.
Note that I'm typing in a file/project that is quite deep in the dependency tree but the particular method I am typing in has no covering tests (white dots in border). When I stop typing, the Ncrunch test window says "217 tests are queued for execution" but then immediately says that 1 project is failing to build (because I've just typed garbage). If I remove the garbage characters, the project then rebuilds and tests are run. (I mention this only in case it's relevant - I would have expected that modifying the method wouldn't cause any tests to run at all?) Perhaps it's also relevant that I have ~70 projects in the solution including a C++ dll which is tested via a C# library with tests running in isolated mode because of static state in the dll?
Quote:>If so, we might need to work through the big list of questions earlier in this thread to try and narrow this one down.
Ok, here goes....
Quote:- Does the problem appear when NCrunch is running at full speed with all its tool windows closed?
Yes
Quote:- Does the problem appear when NCrunch is running at full speed with all its tool windows closed and the 'instrument output assembly' setting set to 'False' for your entire solution?
Switching "instrument output assembly" to false significantly improves performance to the point where there is very little type-ahead.
Quote:- What if you set NCrunch to the 'Execute tests manually' engine mode so it only runs builds?
Switching "instrument output assembly" back to true and "execute tests manually", the problem is still there.
Quote:- What if you set the 'Max number of processing threads' setting to 1?
Switching "instrument output assembly" back to true and setting Max number of processing threads to 1 significantly improves UI responsiveness
Quote:- Do you have any other test solution of roughly similar size (3rd party open source is OK) that you can try testing with to see if the problem is specific to your solution?
Unfortunately not though happy to try one if you have a suggestion.
Quote:Other things to check:
- Do you have 'Log Verbosity' set to anything other than 'Summary'?
No
Quote:- Can you check for hidden warnings in the NCrunch Tests Window?
The only one I have is for a UI (non-test project)...
Quote:It has been detected that this component is referencing assemblies within the build output directories of projects within this solution. It is strongly recommended that assemblies are referenced from a directory location that is not subject to disruption from the build process.
Directly referencing assemblies that are updated, copied or manipulated by the build of projects in this solution will create implicit build dependencies that cannot be tracked by NCrunch or MSBuild. This can result in inconsistent build behaviour patterns and code versioning issues. It can also cause problems when trying to execute a clean build of the solution after it is checked out of a source control system.
The following assembly references have triggered this warning:
D:\work\Backend\CSharp\Applications\UI\DeviceInvestigator\bin\Debug\Microsoft.AspNetCore.Components.dll
Quote:- Are you running any other VS plugins other than NCrunch and ReSharper?
OzCode
Quote:- Are you running an antivirus of any kind? Does disabling it make any difference?
Windows Defender. Solution and Ncrunch workspaces areas are in the exclusion list.
Quote:
- If you perform the comment key test while you have Windows Task Manager open to the CPU page, do you notice any of the cores becoming fully locked at 100%?
Do you mean locked continuously? During typing there is a brief period of a few seconds when all 8 cores appear to hit 100% but they then recover after typing stops.
Unfortunately I'm on vacation for a few days so can't run any further tests for a while. I should also be honest and say that I can't be certain the lag is new though my subject impression is that it was introduced with the latest version. However both Resharper and Ozcode were updated at very close to the same time so it is possible one of those is the culprit.