FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Funny command line with error in source

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
keinfarbton



Joined: 03 Dec 2005
Posts: 224
Location: Stuttgart - Germany

PostPosted: Thu Mar 23, 2006 9:41 am    Post subject: Funny command line with error in source Reply with quote

I made a mistake, replacing a token. The result was

Code:
import //mod;


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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Tue Mar 28, 2006 6:55 pm    Post subject: Re: Funny command line with error in source Reply with quote

tionex wrote:
I made a mistake, replacing a token. The result was

Code:
import //mod;


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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group