Do you have a KDE account? then you can put it in your <a href="http://git.kde.org">git.kde.org</a> scratch space, otherwise just put it in github or gitorious and we'll manage our way to review it.<div><br></div><div>
Aleix<br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 11:23 AM, Morten Volden <span dir="ltr"><<a href="mailto:mvolden2@gmail.com">mvolden2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote">2010/11/15 Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

Morten Volden, 15.11.2010:<br>
<div><div></div><div>> Hi All<br>
><br>
> A little while ago I asked on this list about the status of a Perforce<br>
> plug-in for Kdevelop4. Since no one replied I take it that development on<br>
> such a plug-in is not going on at the moment. So I started writing a<br>
> perforce plug-in.<br>
><br>
> My current status in short:<br>
> I have the plug-in loaded, and it will show in the context menu - So far so<br>
> good.<br>
><br>
> The plugin overrides pure virtual functions in ICentralizedVersionControl<br>
> and in IBasicVersionControl. E.g. for the edit function I do something like<br>
> this:<br>
><br>
> KDevelop::VcsJob* perforceplugin::edit(const KUrl& localLocation)<br>
> {<br>
>     QFileInfo fsObject(localLocation.toLocalFile());<br>
>     QString filename(fsObject.fileName());<br>
>     QDir path(fsObject.dir());<br>
><br>
>     DVcsJob* job = new DVcsJob(path, this, KDevelop::OutputJob::Verbose);<br>
>     if(job)<br>
>         kDebug() << "After Creating job, the path is " << path.path() <<<br>
> "and the filename is " << filename << "... And the jobs dir is: " <<<br>
> job->directory().path();<br>
>     *job << "p4" << "edit" << filename;<br>
>     return job;<br>
> }<br>
><br>
> When Trying to edit one of the files in my perforce testbed the kDebug<br>
> gives me the following output:<br>
><br>
> perforceplugin::edit: After Creating job, the path is<br>
> "/home/mvo/testbed/perforcetest" and the filename is  "main.cpp" ... And<br>
> the jobs dir is:  "/home/mvo/testbed/perforcetest"<br>
><br>
> Which leads me to believe the DVcsJob I am creating has the correct CWD<br>
> (i.e. /home/mvo/testbed/perforcetest ). However, the command issued by the<br>
> job fails for reasons that escape me (as can be seen in the screenshot<br>
> below).<br>
><br>
> <a href="http://imagebin.ca/view/89faihm.html" target="_blank">http://imagebin.ca/view/89faihm.html</a><br>
><br>
> The perforce server and port are specified in the file p4config.txt (p4<br>
> will look for its settings in a file of that name).<br>
><br>
> If I issue the same command in a kdevelop konsole, it works (see konsole<br>
> window in screenshot below)<br>
><br>
> <a href="http://imagebin.ca/view/G4zUSuW.html" target="_blank">http://imagebin.ca/view/G4zUSuW.html</a><br>
><br>
> Can anyone shed some light on what the difference is between the command in<br>
> the DvcsJob and the command issued in the terminal?<br>
<br>
</div></div>this looks strange indeed. You should try debugging DVcsJob::start and see<br>
whether e.g. setting the environment has an effect on the workingdir set for<br>
the process.<br>
<br>
Otherwise maybe Aleix has some info as he worked on the git support.<br>
<br>
Hope we can find out why this is not working :)<br>
<br>
Btw, where do we find your sourcecode? It would be cool if you could develop<br>
that in the open from the start, esp. so we can look at your sources when you<br>
have a problem.<br>
<br></blockquote></div></div><div>I will try to place the code somewhere public tonight.<br><br>Where is the preferred place to put plugin code these days? <br> <br>/Morten<br><br></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div class="im">

bye<br>
<font color="#888888">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de" target="_blank">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</font><br></div>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org" target="_blank">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br></div>