Reputation: 51
I am having issues with my TortoiseHg when it tries to launch Kdiff3. It gives me an error "C:\Program Files\TortoiseHg\lib\kdiff3.exe: [Error 2] The system cannot find the file specified". I couldn't find any solutions online.
I do have kdiff.exe in the path mentioned in the error and permissions are set properly. Tried uninstalling and reinstalling it, but still getting the same error. Running Tortoise as an administrator, didn't help either.
I don't have any issues pulling, committing or pushing changes. The issue is only related to the kdiff tool.
Has anyone encountered this issue and resolved it successfully?
Thanks in advance.
Upvotes: 0
Views: 223
Reputation: 1
I just found out how to solve this problem. Edit the system environment variable ComSpec and remove the semicolon at the end of the value.
Upvotes: 0
Reputation: 2807
Your problem, is likely to be an environment variable with the wrong value: https://bitbucket.org/tortoisehg/thg/issues/4217/error-2-the-system-cannot-find-the-file
Variable ComSpec
should have a valid path to cmd.exe
.
Upvotes: 0