www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bug in Phobos' process.d: "Executable file not found" is supposed to

reply "Van de Bugger " <van.de.bugger gmail.com> writes:
I found a bug in Phobos library, but failed to find a way to 
report it. I do not see "Issues" tab on page 
https://github.com/D-Programming-Language/phobos, so I'll report 
the bug here.

Look at file process.d line ~360, it is the very beginning of 
function spawnProcessImpl:

     const(char)[] name = args[0];
     if (any!isDirSeparator(name))
     {
         if (!isExecutable(name))
             throw new ProcessException(text("Not an executable 
file: ", name));
     }
     else
     {
         name = searchPathFor(name);
         if (name is null)
             throw new ProcessException(text("Executable file not 
found: ", name));
     }

Look at the "else" clause. If function searchPathFor failed, we 
are throwing an error "Executable file not found: ", which is 
supposed to include name of executable file. But name at this 
moment is null... :-(
May 14 2014
next sibling parent reply "H. S. Teoh via Digitalmars-d" <digitalmars-d puremagic.com> writes:
On Wed, May 14, 2014 at 01:02:26PM +0000, Van de Bugger via Digitalmars-d wrote:
 I found a bug in Phobos library, but failed to find a way to report
 it. I do not see "Issues" tab on page
 https://github.com/D-Programming-Language/phobos, so I'll report the
 bug here.
Please report bugs to: http://d.puremagic.com/issues Or better yet, submit a pull request. ;-) T -- EMACS = Extremely Massive And Cumbersome System
May 14 2014
parent "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
On Wednesday, 14 May 2014 at 13:37:27 UTC, H. S. Teoh via 
Digitalmars-d wrote:
 On Wed, May 14, 2014 at 01:02:26PM +0000, Van de Bugger via 
 Digitalmars-d wrote:
 I found a bug in Phobos library, but failed to find a way to 
 report
 it. I do not see "Issues" tab on page
 https://github.com/D-Programming-Language/phobos, so I'll 
 report the
 bug here.
Please report bugs to: http://d.puremagic.com/issues
The new URL is: https://issues.dlang.org/ But the old site (still) redirects there.
May 14 2014
prev sibling parent "Kagamin" <spam here.lot> writes:
On Wednesday, 14 May 2014 at 13:02:27 UTC, Van de Bugger wrote:
 I do not see "Issues" tab on page 
 https://github.com/D-Programming-Language/phobos
Did you read the project's readme?
May 14 2014