Closed ocary closed 6 years ago
csharp-test-vsissue.zip Sample project for which the issues are replicable
Fix should be available in nightly >= 16-mar-2018
@sriv - The 16-mar-2018 nightly definitely fixes the issues described in the original write up. Thank you!
Unfortunately there is still lag in Visual Studio 2015 when editing specs in the 'real' project I'm working upon. So far I'm only seeing lag when editing / adding new steps, but I have not done much research. I'll open a new defect once I have reproducible steps.
Hi @ocary ,
A new issue with steps to issue would be awesome. I am well aware that gauge-visualstudio needs to be tuned for performance, however I struggle to mimic real world scenarios (since we have no idea/data on how gauge is being used).
Thanks for taking the time to dig deep, this is great.
In this case, my suspicion is that gauge-visualstudio tries to bring up autocompletions (steps+concepts), and I have a feeling that large projects is causing this autocomplete feature to fire up events too frequently.
One way you could profile this is by using a .NET profiler such as Jetbrains' dotTrace. If you fire up dotTrace, and attach to devenv.exe
in your machine, and perform the actions that cause lags, dotTrace will take a snapshot of method calls. If you can share that dump, I can try and analyze it.
thanks!
A team at my company has a decent sized Gauge project in C# and trying to use Visual Studio with the Gauge plugin installed to edit Gauge specs results in Visual Studio lagging very badly. This lag happens on actions as simple as opening a spec that is ~100 steps and scrolling the file editor.
Our project has roughly 400 fixtures across 15+ files, 1000+ specs and many have 100+ steps in each spec. Unfortunately, due to this issue we are editing spec files in a different text editor instead of Visual Studio and running specs from a command line.
One possible cause or related item is that the api.log file is getting a very large number of entries. In the steps to reproduce below, in watching the api.log file, I saw 40MB+ of log files created in under 1 minute.
Files attached
example.spec
- simplified spec file of the sample spec provided via gauge init csharp. File has 2 steps and blank lines between the steps to necessitate scrolling the editor to see the second stepStepImplementation.cs
- 1000 Step implementations added to the file provided via gauge init csharp. 1000 very simple steps chosen as a nice, large, round number to see patterns.Files have had .txt added so they can be uploaded here.
Expected behavior
Visual Studio editor to be usable on reasonably large projects.
Actual behavior
Visual Studio editor lags enough where it is not usable.
Steps to reproduce
gauge init csharp
example.spec
andStepImplemenation.cs
files in the project with the files attached to this message. Remove the .txt extensions on the attached files.api.log
file's folderexample.spec
in Visual Studio.api.log
file.Version Information
Machine information
example.spec.txt StepImplementation.cs.txt