Bug 22479 – The system cannot find the path specified - executeShell fails when there's a invalid windows registry

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2021-11-04T13:59:40Z
Last change time
2024-12-01T16:39:39Z
Assigned to
No Owner
Creator
Tim McKeaveney
Moved to GitHub: phobos#10484 →

Comments

Comment #0 by macoovacany — 2021-11-04T13:59:40Z
Issue: After downloading and installing a fresh dmd installation for a Windows machine, I tried running a basic dub build but it failed with the error: "Failed to invoke the compiler c:\d\dmd\windows\bin\dmd.exe to determine the build platform:The system cannot find the path specified." <note: I might have the compiler path wrong because I also tried an LDC install. The compiler error is from dub, https://github.com/dlang/dub/blob/master/source/dub/compilers/compiler.d Line 134 > ----- Cause: The windows registry key "HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun" had an invalid path. Removing the invalid value allowed dub to build correctly. Refer https://stackoverflow.com/questions/33638281/what-is-the-reason-for-the-error-message-system-cannot-find-the-path-specified ------ Suggestion: 1) Provide documentation to this possible cause and fix. 2) Perform a check in the phobos std.process.executeShell() if the system returns this error. OK to close this issue as fixed.
Comment #1 by robert.schadek — 2024-12-01T16:39:39Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10484 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB