Forum member
Remco NCrunch Developer
7586 posts
Posts by Remco
-
InvalidOperationException with init properties again (.NET 5)
Thanks for these extra details. Sometimes we can reproduce issues based on their description and no code sample is necessary. Unfortunately, in this case, we definitely need to be provided with a sample that can consistently produce the problem to have any hope of fixing it. My suspicion is t…
31 Aug 2021 00:24 UTC
-
InvalidOperationException with init properties again (.NET 5)
Hi, thanks for sharing this issue. Are you able to isolate this in a self-contained sample solution that you can share with me? You can upload small solutions in ZIP form through the [url=https://www.ncrunch.net/support/contact]NCrunch contact form.[/url]
28 Aug 2021 01:13 UTC
-
nCrunch and PostSharp
Hi, thanks for sharing this issue. This problem is occuring because postsharp is executing code that has been instrumented by NCrunch. The GAC workaround won't work in this scenario, probably because the environment used by Postsharp doesn't include the GAC in its search path. Something you c…
26 Aug 2021 12:12 UTC
-
Build fails if SourceGenerator project has a package reference.
Could you try the build below and let me know if this solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.2.msi]NCrunch_Console_4.10.0.2.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.2.zip]NCrunch_Console_4…
21 Aug 2021 13:23 UTC
-
Problem with new instrumentation since 4.9
Could you try the build below and let me know if this solves the problem for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.2.msi]NCrunch_Console_4.10.0.2.msi[/url] [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.2.zip]NCrunch_Console_4…
21 Aug 2021 13:22 UTC
-
Problem with new instrumentation since 4.9
Thanks for these details. I can confirm that I can now reproduce this problem at will using the specified library. I will let you know as soon as we have a fix available.
20 Aug 2021 13:53 UTC
-
Build fails if SourceGenerator project has a package reference.
[quote=yusuf;15614]I use Visual Studio 2019 16.11.0. I have tried again with a fresh clone of the repository and Visual Studio built it on first try without any errors.[/quote] Thanks for this info. I can confirm that this is something new they pushed out with 16.11. After updating the IDE I ca…
20 Aug 2021 13:42 UTC
-
Problem with new instrumentation since 4.9
Hi, thanks for sharing this problem. This looks to be caused by a hole in our CIL handling. The type mentioned in the error descends from a type declared in another assembly that doesn't seem to fit the CIL structure expected by NCrunch. I'm wondering if it might have been manipulated/obfuscate…
20 Aug 2021 05:59 UTC
-
Build fails if SourceGenerator project has a package reference.
Thanks for sharing this. When I attempt to build the sample under VS2019, I get the same failures as NCrunch is reporting. Can you confirm which version of VS you're building this with? When we added the support for source generators, we couldn't find a way make the source generator projects buil…
20 Aug 2021 05:54 UTC
-
NCrunch is fantastic, thank you
You made my day today. Thank you :)
18 Aug 2021 12:43 UTC
-
NCrunch hangs during Build with Engine Core Load 97%
[quote=Kelon;15604] It seems to lock on CoreDispatcher -> ClearProcesses -> [b]TerminateProcess[/b] while a StopUsingProcess in a Worker is already running, but tries to call [b]TerminateProcess[/b][/quote] Thanks! This helps a great deal. I've examined the code involved, and interestingly,…
17 Aug 2021 01:07 UTC
-
The target "_SplitProjectReferencesByFileExistence" does not exist in the project.
[quote=cheil;15601] Since I wanted 6 gone, I deleted the 6.0 folder, restarted NCrunch, and it immediately resolved my issue. I am guessing the `dotnet` command will look for the highest version number folder, and the uninstaller must have left the folder behind, resulting in everything breaking.[/…
14 Aug 2021 00:07 UTC
-
NCrunch hangs during Build with Engine Core Load 97%
A deadlock! Are you able to spot the other side of the lock? (i.e. any other threads inside ExternalProcessManager?) Also, are you using MSTest for any of your tests?
12 Aug 2021 00:14 UTC
-
NCrunch hangs during Build with Engine Core Load 97%
I've implemented a speculative fix for a possible race condition I've discovered in this this component. Would you be interested in trying the build below to see if it works better for you? [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.1.msi]NCrunch_Console_4.10.0.1.…
09 Aug 2021 07:52 UTC
-
Unit Testing Source Generators
Would you be interested in trying the build below to see if this works better for you? We've implemented this now using a warning as described earlier. [url=https://s3.amazonaws.com/downloads.ncrunch.net/NCrunch_Console_4.10.0.1.msi]NCrunch_Console_4.10.0.1.msi[/url] [url=https://s3.amazonaws.c…
09 Aug 2021 07:51 UTC
-
Tests with Category Not Showing Up in Tests Window
Hi Ed, Thanks for sharing the code. I've created a small sample project and included the source provided. In this project, NCrunch seems to correctly detect the 'EntityFramework' category and this is visible in the Categories column for the child test as shown in the Tests Window. As per usu…
05 Aug 2021 00:52 UTC
-
Location of Search Box
Hi Ed, Thanks for posting. Do you mean the search box on the Tests Window? Did you know that if you start typing while you have the main grid on the Tests Window selected, it will automatically go to the search box?
05 Aug 2021 00:42 UTC
-
Unit Testing Source Generators
[quote=Silvenga;15577]I'm using the GeneratorDriver (https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.generatordriver) to exercise the source generator in unit tests (to test the syntax trees produced), so compilation breaks when the interface is removed. Above is an example helper…
04 Aug 2021 01:32 UTC
-
NCrunch hangs during Build with Engine Core Load 97%
Thanks for sharing this issue in so much detail. I appreciate how hard it must have been to extract this exception. I agree that this looks like a race condition in the type resolver. I've reviewed the code involved and have a theory about what could be causing this. Unfortunately, I don't hav…
03 Aug 2021 12:55 UTC
-
Unit Testing Source Generators
[quote=Silvenga;15571] The problem though, I'm unit testing the source generator. I'm not running the source generator. The source generator project is not referenced as an analyzer. [/quote] Understood. In your situation, the check is definitely too broad. The question at large is one wher…
03 Aug 2021 08:13 UTC