Review Request: MakeBuilder: check that folder really exist before starting process

Aleix Pol Gonzalez aleixpol at gmail.com
Mon Feb 28 15:43:56 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100703/#review1697
-----------------------------------------------------------

Ship it!


Thanks!
Can you commit it?

- Aleix


On Feb. 21, 2011, 3:20 p.m., Julien Desgats wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100703/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2011, 3:20 p.m.)
> 
> 
> Review request for KDevelop.
> 
> 
> Summary
> -------
> 
> This is a small patch which do some more tests on MakeBuilder, in particular it checks that given folder really exists and displays a more precise error message. Current implementation tries to set current dir of make process without any check, which is apparently a noop if folder does not exist, so process is not started in the right directory.
> 
> By the way, if an error occurs, message is displayed twice, that's because KDevelop::RunController::registerJob is executed twice :
>   * when job is created (in ProjectManagerViewPlugin::buildItemsFromContextMenu)
>   * when job is started, it re-register itself ! (in BuilderJob::start)
> I have a limited knowledge of KCompositeJob, so I didn't push investigations further. Any clues about that, may be I could fix it too.
> 
> 
> Diffs
> -----
> 
>   projectbuilders/makebuilder/makejob.cpp 72fd40e 
> 
> Diff: http://git.reviewboard.kde.org/r/100703/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Julien
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110228/528664e4/attachment.html>


More information about the KDevelop-devel mailing list