Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
batchbuild issues with backticked commands
MortenMacFly:
Finally! The solution. Good work, tiwag - I guess we can go to bed then, right?! ;-)
--- Quote from: tiwag on October 18, 2006, 11:00:39 pm ---2.) the CB environmentvariables plugin doesn't work in batchbuild mode or isn't initialized at the time,
when the compiler starts resolving backticked commands
--- End quote ---
I guess this is on my desk, then... will look into it... but not today.
With regards, Morten.
tiwag:
--- Quote from: MortenMacFly on October 18, 2006, 11:12:17 pm ---Finally! The solution. Good work, tiwag - I guess we can go to bed then, right?! ;-)
--- End quote ---
you can go to bed, i go for a couple of beers now :P
seriously
thank you too !
best regards, tiwag
takeshimiya:
Ok, so we've found pretty different issues, listing:
1) wx-config --prefix= hangs even in command-line when the exe was built with MSVC2005 Express only.
2) Code::Blocks parses backticks outputs. Thus self-referencing backticks causes an infinite loop. Is this good behaviour or not?
3) The Environment Variables should be part of the SDK, if not, we have inter-plugin dependences and the side effect that you get different things between batch builds and normal builds.
4) Question: for those who know, errors should be better printed in stdout or stderr? My idea is that a C::B regex can parse them.
5) DDE bug attacking again Windows cannot find 'file.cbp'....
6) The default.conf is getting unreliable lately, but this is for another post.
I have "fixed" 1), and can workaround 2) simply don't printing self-referencing backticks, however, is that good behaviour?
MortenMacFly:
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---3) The Environment Variables should be part of the SDK, if not, we have inter-plugin dependences and the side effect that you get different things between batch builds and normal builds.
--- End quote ---
I wouldn't say this. It can (and should) be a plugin (otherwise you could argue that e.g. the compiler plugin should be in the sdk, too - right?). The only issue here is that obviously the OnAttach() method seems not to be called on a batch-build process for an obscure reason... will investigate in this...
With regards, Morten.
Edit: What takeshi might fail to se: Once the envvar plugin got initialised correctly you'll get all envvars through macromanager anymway. Thus they are abailable for e.g. scripting and stuff... (Or maybe I don't understand why he states this...?!)
tiwag:
some comments
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---1) wx-config --prefix= hangs even in command-line when the exe was built with MSVC2005 Express only.
--- End quote ---
didn't try but i don't believe this
edit: i've build my wx-config using gcc :P :shock:
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---2) Code::Blocks parses backticks outputs. Thus self-referencing backticks causes an infinite loop. Is this good behaviour or not?
--- End quote ---
it is good behavior
think of nested calls of some backticked commands
`aaa` -> `bbb` -> "something useful"
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---3) The Environment Variables should be part of the SDK, if not, we have inter-plugin dependences and the side effect that you get different things between batch builds and normal builds.
--- End quote ---
i'm shure, Morten will find a reliable solution for this ...
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---4) Question: for those who know, errors should be better printed in stdout or stderr? My idea is that a C::B regex can parse them.
--- End quote ---
PLEASE don't print novels as error messages
just send ( "ERROR: %d : %s\n", errornumber , errordescription )
send your novels to stderr, if you can't resist ;-)
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---5) DDE bug attacking again Windows cannot find 'file.cbp'....
--- End quote ---
delete all dde related registry keys from CodeBlocks registered file extensions ( ".cbp" and so on )
--- Quote from: Takeshi Miya on October 18, 2006, 11:18:09 pm ---6) The default.conf is getting unreliable lately, but this is for another post.
--- End quote ---
true, i had a lot of issues too
brds, tiwag
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version