View previous topic :: View next topic |
Author |
Message |
keinfarbton
Joined: 03 Dec 2005 Posts: 224 Location: Stuttgart - Germany
|
Posted: Thu Mar 23, 2006 9:41 am Post subject: Funny command line with error in source |
|
|
I made a mistake, replacing a token. The result was
It took a while, since I realized the program failed to build. The source code following the above statement is inserted into the cmdline until the next semicolon.
Build ouput looks very similar to a successful build. In the middle there is this:
Code: |
....
Building target 'test'
sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `/usr/bin/dmd -c -g -w -op -version=Posix -I"/home/frank/Dater/D/src/" -I"/home/frank/Dater/D/src/phobos/" ....
|
Would be nice to validate the module name for correctness. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Mar 28, 2006 6:55 pm Post subject: Re: Funny command line with error in source |
|
|
tionex wrote: | I made a mistake, replacing a token. The result was
It took a while, since I realized the program failed to build. The source code following the above statement is inserted into the cmdline until the next semicolon.
Build ouput looks very similar to a successful build. In the middle there is this:
Code: |
....
Building target 'test'
sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `/usr/bin/dmd -c -g -w -op -version=Posix -I"/home/frank/Dater/D/src/" -I"/home/frank/Dater/D/src/phobos/" ....
|
Would be nice to validate the module name for correctness. |
I've been pondering this one a bit ...
I guess the simplest way to do it would be to check if the file named on an import or "pragma(lib", etc... actually exists and issue a message if doesn't.
Any other ideas, people? _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|