Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Enable Ncrunch disabled. Exception in the diagnostic output.
playtime222
#1 Posted : Thursday, October 30, 2025 6:14:13 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/5/2019(UTC)
Posts: 17
Location: Netherlands

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
I've been fighting this one for a few weeks now.

From the diagnostic logs, it looks like ncrunch is trying to construct/use the path where VS Code is installed.

There are several problems with attempting this but I'll start with the most relevant - that path 'C:\Users\ms1\AppData\Local\Programs\Microsoft VS Code\bin' does not exist on my box because the user profiles are on D. Another reason could be that VS Code is not installed on my box. [Edit] I must add and WTF is NCrunch looking for this for anyway? :D

The log is in pastebin (couldn't see how to attach a file) https://pastebin.com/EztjJcd8

Bit more history.

I can't figure out the exact moment it died. I had installed the latest a few days before but I THINK it worked for a couple of days.

Weird thing - the Rider plugin still works on the same solution (as well as it does - flaky little bugger, especially in a floating window).

I tried the manual uninstall/clean/reinstall a few time, even dropped down a few versions. Even tried a new git clone of the repo.

So, now I'm currently on VS2022 community 17.14 and NCrunch 5.16.5 and I decided to turn on the diagnostic logging and found the boom on line 1700.

Let me know if you need any more info.

Cheers.
Remco
#2 Posted : Thursday, October 30, 2025 10:32:51 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,404

Thanks: 1004 times
Was thanked: 1346 time(s) in 1249 post(s)
Hi, thanks for sharing this issue.

The problem here stems from what looks to be a malformed environment variable on your machine.

Can you check the contents of your PATH environment variable? I think you have a mismatched quote in there:
C:\Users\ms1\AppData\Local\Programs\Microsoft VS Code\bin"

Ideally this shouldn't cause NCrunch to fail, but it looks like it slips through the cracks of the validation routine.

Quote:
Weird thing - the Rider plugin still works on the same solution (as well as it does - flaky little bugger, especially in a floating window)


Where it's possible, I really would like to make this less flaky. Some how we need to get the Rider Plugin out of beta. If you can find a way to reproduce any issues with this, please let me know.
playtime222
#3 Posted : Thursday, October 30, 2025 11:46:56 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/5/2019(UTC)
Posts: 17
Location: Netherlands

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
Kicking myself here. The last thing I did before posting was clean up a lot of environment variables AND rebooted cos the system ones dont always take straight away. However...

1) I didnt even spot the trailing " only that in the editor the were was an entry with a ; in it! The 2nd part was the offending VS Code entry too.

2) I must have clicked Cancel not OK before I rebooted cos all the stuff I cleaned up was still there.

Thanks for your help. Got there in the end.

Oh and I'm hoping a lot of the recent flakiness in Rider was related to the same issue. Let's see how it goes.
1 user thanked playtime222 for this useful post.
Remco on 10/31/2025(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.050 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download