DiffEngine icon indicating copy to clipboard operation
DiffEngine copied to clipboard

DiffEngine stopped finding VS Code code.cmd file

Open ldeluigi opened this issue 7 months ago • 8 comments

Describe the bug

Until the last week, I was working with the DiffEngine_VisualStudioCode environment variable set to D:\AppData\Microsoft VS Code without any issue. Starting today, I get an exception telling me that DiffEngine could not find an exe file for VS Code to run.

If I change the value of the env var to D:\AppData\Microsoft VS Code\bin everything works fine again, as code.cmd, which is the file DiffEngine looks for, is inside the bin directory. But this means that somehow DiffEngine lost the ability to find code.cmd inside the bin folder when handling the root installation folder of VS Code.

Minimal Repro

Set the env var the same and run a Verify test.

ldeluigi avatar May 02 '25 08:05 ldeluigi

In addition to that, the error message refers to an exe file even though the engine is looking for a cmd file

ldeluigi avatar May 02 '25 08:05 ldeluigi

Starting today

so you changed nothing else?

SimonCropp avatar May 02 '25 10:05 SimonCropp

I haven't touched any env var if that's what you're asking

ldeluigi avatar May 02 '25 11:05 ldeluigi

updated nugets? updated IDE? updated .net sdk?

SimonCropp avatar May 02 '25 11:05 SimonCropp

Verify.Xunit -> 29.3.0 Visual Studio -> 17.12.4 .net -> 9.0.102

ldeluigi avatar May 02 '25 13:05 ldeluigi

ok. but did you change anything at the time it stopped working?

SimonCropp avatar May 02 '25 14:05 SimonCropp

We updated Verify from 29.2.0 to 29.3.0

ldeluigi avatar May 02 '25 14:05 ldeluigi

But probably I haven't used the DiffTool since 28.16.0

ldeluigi avatar May 02 '25 14:05 ldeluigi

sorry. i will need you to debug into this on your machine, and submit a fix when you work out what the problem is

SimonCropp avatar Nov 13 '25 04:11 SimonCropp