Setup Problems

Enable Ncrunch disabled. Exception in the diagnostic output.

Started by playtime222 on 1,044 views

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.

Edited

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.

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.

Edited

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.

Post a reply

Log in to reply.