<div class="gmail_quote">On Sun, Apr 18, 2010 at 6:43 PM, Aleix Pol <span dir="ltr"><<a href="mailto:aleixpol@kde.org">aleixpol@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Sun, Apr 18, 2010 at 5:41 PM, Victor Vicente de Carvalho <span dir="ltr"><<a href="mailto:victor.v.carvalho@gmail.com" target="_blank">victor.v.carvalho@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">
Hi all,<div><br></div><div>I've been facing a bug on CMakeProjectManager, and been able to trace it at some point, but haven't figured how to solve it:</div><div><br></div><div>When I try to rename a file inside a subfolder, I'm actually getting more than one target for renaming, and thus kdevelop is crashing on an assertion:</div>
<div><br></div><div>in file: projectmanagers/cmake/cmakemanager.cpp:1295</div><div>on method</div><div>bool CMakeManager::renameFile(ProjectFileItem* it, const KUrl& newUrl)</div><div><br></div><div>when i try to rename a file there, the folowing line:</div>
<div><br></div><div> QList<ProjectFileItem*> files=it->project()->filesForUrl(it->url());</div><div><br></div><div>is returning more than one file with the same name, and thus giving me 2 targets, and I don't have two files named the same.</div>
<div>Then when this is called:</div><div><br></div><div>in file: projectmanagers/cmake/cmakemanager.cpp:1331</div><div><br></div><div> e.addDocuments(IndexedString(lists), IndexedString(lists));</div><div><br></div><div>
the assertion in file language/codegen/applychangeswidget.cpp:129 </div><div>on method</div><div>void ApplyChangesWidget::addDocuments(const IndexedString & original, const IndexedString & modified)</div><div> </div>
<div> Q_ASSERT(files.first != original);</div><div><br></div><div>is failing trying to insert the file CMakeLists.txt two times.</div><div><br></div><div>Why is "CMakeLists.txt" is being added every time on renameFile?</div>
<div><br></div><div><br></div><div>Hope that this can be understandable :D</div>
<br></div></div>--<div class="im"><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></div></blockquote></div><br>Let me take a look at it. Is there any bug filled for that problem?<br><br>Thanks,<br><font color="#888888">Aleix<br></font></blockquote><div><br></div><div>Fixed.</div><div>Anything else? </div>
</div><br><div>Unlocked and loaded :D</div>