www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22479] New: The system cannot find the path specified -


          Issue ID: 22479
           Summary: The system cannot find the path specified -
                    executeShell fails when there's a invalid windows
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: macoovacany hotmail.com

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 >


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.


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.

Nov 04 2021