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

Automatic build number is not working

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



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Jan 09, 2007 2:22 pm    Post subject: Automatic build number is not working Reply with quote

Greetings.

the autobuildnumber that is created by bud-build has been broken for a while. It used to work, but for a while now, it just does not work. It does not create the _bn.d file and it does not update those that have been previously created. I am following this,

http://svn.dsource.org/projects/build/trunk/Docs/autobuild.html

and also this,

http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.learn&artnum=141&header

and nothing. This is what I am getting...
Code:

15:19:53.78>build -I..;c:\dmd\import -d -op -cleanup -version=gui OpenJobs.d
C:\cygwin\home\us319318\source\d\jic\libs\MyHTMLFunc.d(2): module MyHTMLFunc_bn cannot read file 'MyHTMLFunc_bn.d'


Any ideas?
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Tue Jan 09, 2007 10:15 pm    Post subject: Reply with quote

One quirk I have found out on my own which you may check in your code, is that Build expects an explicitly private import for the auto-build-number module. Aka, for any module 'foo' you must 'private import foo_bn;' to get it's auto_build_number.

On a side note, I think Build's generation of this file needs a couple of perks. Perk 1 -- make the value a constant, rather than just a global variable. Perk 2 -- A Build pragma() for suppressing build number incrementing (required before its host import).
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Tue Jan 09, 2007 10:50 pm    Post subject: Reply with quote

Well, those perks wouldn't help me now... Smile

But thanks for the help. That private keyword fixed the problem. But, here is a question, I thought that this statement,

import foo;

is converted by the compiler to,

private import foo;

if I am not mistaken, I remember a discussion on the newsgroup about this. Am I correct or way off base?

By the way, I have been way off base before... Smile

Thanks for the help, Chris.
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