Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
Stuck at "ncrunch engine is initialising"
[quote=UppSol;16110] Now that 17.2 RTM(https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-2-is-now-available/) has been released, will NCrunch support the new/preview feature that caused trouble in the preview version? I haven't got time to check if it works or not. [/quote] Yes…
10 May 2022 23:57 UTC
-
Json FileNotFoundException preventing build
Thanks for this. Could you submit a bug report from NCrunch straight after the error appears? I'd like to take a look at the log to see if it yields any clues about why this is happening. Could you also try the [url=https://www.ncrunch.net/documentation/reference_project-configuration_preload-a…
25 Apr 2022 00:09 UTC
-
Json FileNotFoundException preventing build
Thanks for these extra details. I can't see the top of the stack trace here, but my guess is that this is happening during test discovery, rather than build time. There is code running inside an attribute constructor that is causing massive complicated layers of other code to run. Can you try…
24 Apr 2022 00:27 UTC
-
Json FileNotFoundException preventing build
Hi, thanks for sharing this issue. Can you share any more information about where you receive this error? Does this appear on one of your projects? Is there any more to the stack trace?
23 Apr 2022 12:45 UTC
-
Trying to Run All Tests; Icons are Changed
Hi, thanks for sharing this. I strongly suspect that the code being run by these tests is modifying something in your foreground solution. Most probably there is an absolute file path somewhere. The consequence of this is that running the test causes the codebase (or a related resource) to chan…
22 Apr 2022 00:46 UTC
-
Coverage Markers not working
Something else worth checking is your engine mode. The 'Run pinned tests automatically' mode can have a coverage filter set up (the 'Show coverage for tests' setting).
21 Apr 2022 12:57 UTC
-
Coverage Markers not working
Hi, thanks for sharing this issue. Have you checked the [url=https://www.ncrunch.net/documentation/troubleshooting_missing-code-coverage]troubleshooting page for this problem[/url]? There are a range of configuration issues that can cause this. Note that when you run a test with a debugger at…
21 Apr 2022 12:19 UTC
-
InvalidOperationException with init properties (.net6)
[quote=spectresystems;16085]I'm also experiencing this but cannot recreate it. I'm running NCrunch 4.11.0.2 in VS2022 (17.1.5) using .NET SDK 6.0.104. Using .NET SDK 6.0.202 makes no difference.[/quote] Thanks for sharing this. Could you confirm if you're using the System.Runtime.CompilerSer…
20 Apr 2022 12:22 UTC
-
Code coverage not appearing (newbie question)
[quote=CoolBreeze;16079] I was seeing code coverage markers in one of my VB code files. Then I added ncrunch: no coverage start, no coverage end to some but not all methods. Then NCrunch didn't show any markers for the entire file. I closed and reopened the solution. The markers reappeared. [/…
16 Apr 2022 00:00 UTC
-
asp.net rest api .net 6, code coverage for Program.cs?
Hi, thanks for posting. When the [url=https://www.ncrunch.net/documentation/reference_project-configuration_analyse-line-execution-times]analyse line execution times[/url] setting is enabled (which is on by default), NCrunch marks a line as covered [i]after[/i] it is executed. This means that if…
14 Apr 2022 00:03 UTC
-
Unused engine hosts?
Hi, thanks for posting. Like with TestHost and BuildHost, we have a version of EngineHost for every major version of .NET Framework. Because we need to support older versions of VS, the NCrunch engine is locked to .NET 4.0 (Actually, .NET 3.5 for most places). As such, we can run in a pretty wi…
13 Apr 2022 00:27 UTC
-
Tests permanently show as "running (first time run)"
[quote=NeilMacMullen;16068]Thanks. Yes I think the most serious "issue" here is really just that the main Ncrunch icon color made it appear that all the tests were still running and passing; hence it was a couple of months before I noticed the problem (I usually filter to only failed tests in the t…
08 Apr 2022 11:40 UTC
-
Tests permanently show as "running (first time run)"
[quote=NeilMacMullen;16066]Looks like switching UseCpuArchitecture to x86 (from x64) clearing caches and and reloading ncrunch resolves the issue. :-)[/quote] Excellent :) We have a fix pending for the processing queue text pane sync issue. It doesn't update correctly when the task has no out…
07 Apr 2022 23:03 UTC
-
Tests permanently show as "running (first time run)"
Thanks for these extra details. I wonder if this is a UI refresh issue. Do the tests clear from the Tests Window if you turn one of the filter options on and off? Are you able to run the tests with a debugger attached? Note that although the tests may work fine with a different runner, this …
06 Apr 2022 23:19 UTC
-
Tests permanently show as "running (first time run)"
Hi, thanks for sharing this. Can I safely assume that the tests stay this way forever (i.e. they never time out, even if left for 15+ minutes)? Can you check the processing queue to see if the tasks involved have kicked up any errors? One possibility I can think of is if the unmanaged code …
06 Apr 2022 12:58 UTC
-
IndexOutOfRangeException in CilReusableCopiedInstructionMap
[quote=alexander_jesner;16055]Remco, I managed to find out that in some situations PostSharp seems to create portable PDBs that are malformatted. I have posted an issue to their bug tracker and will get back to you as soon as I know more.[/quote] Awesome stuff! Would you mind posting the link to…
30 Mar 2022 23:17 UTC
-
Changing expired personal license to company seat license
[quote=GreenMoose;16054] I have a related question, with above you are saying that a personal license must not be reimbursed by the company, even though the license is tied to that particular developer, right? [/quote] Correct. If a license could be purchased by an individual, then reimbursed …
30 Mar 2022 22:49 UTC
-
IndexOutOfRangeException in CilReusableCopiedInstructionMap
[quote=alexander_jesner;16051]I did not yet manage to create a standalone reproduction of the problem, but I can share the information that changing the PDB type from "portable" to "full" seems to resolve the issue. Although we want to have primary portable PDBs, I will have a look if we can tempor…
29 Mar 2022 06:59 UTC
-
IndexOutOfRangeException in CilReusableCopiedInstructionMap
[quote=alexander_jesner;16049] We do use PostSharp, but neither this method, nor its enclosing class, nor referenced types XX1, XX2, and XX3 are enhanced by PostSharp, that's why I did not mention it before. I will try to create a complete repro that I can actually send you. [/quote] Although …
28 Mar 2022 11:29 UTC
-
IndexOutOfRangeException in CilReusableCopiedInstructionMap
[quote=alexander_jesner;16047]Sorry I forgot. It's the latest 4.11.0.2. Maybe also an important information is that this error mostly happens on grid nodes.[/quote] Thanks! I've taken good look at this stack trace and the code involved. I agree that this looks like a new CIL instruction sequ…
28 Mar 2022 08:51 UTC