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>