Find Swapped File bug
Posted: Thu Nov 26, 2015 10:10 am
Hi Eran,
FindSwappedFile() no longer works in CL trunk, looking at the source it seems you're collection workspace files but never actually iterate over them:
For now I reverted to stable (git tag 9.0), which works fine.
thx,
-- p
FindSwappedFile() no longer works in CL trunk, looking at the source it seems you're collection workspace files but never actually iterate over them:
Code: Select all
bool ContextCpp::FindSwappedFile(const wxFileName& rhs, wxStringSet_t& others)
(...)
// Check the workspace
std::vector<wxFileName> files; // never used!
ManagerST::Get()->GetWorkspaceFiles(files, true);
for(size_t j = 0; j < exts.GetCount(); j++) {
wxFileName otherFile = rhs;
otherFile.SetExt(exts.Item(j));
if(otherFile.FileExists()) {
// we got a match
others.insert(otherFile.GetFullPath());
}
}
thx,
-- p