| Summary: | Duplicate suggestions in include file completion | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Alexander Potashev <aspotashev> |
| Component: | Language Support: CPP (Clang-based) | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kdevelop/8ed162c5024778f50cb303f333a3062727f695c4 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | screenshot of projectmanagerview.cpp | ||
|
Description
Alexander Potashev
2016-04-13 12:46:55 UTC
Still a problem? Please post a screenshot in that case; including the project tree view with the folder hierarchy if possible. Created attachment 101009 [details]
screenshot of projectmanagerview.cpp
Still a problem.
Alexander, any chance we can reproduce this with a project that is accessible to us? Do you also see this in KDE projects by any chance e.g.? Or any other FOSS project we can test ourselves? (In reply to Milian Wolff from comment #3) > Alexander, any chance we can reproduce this with a project that is > accessible to us? Do you also see this in KDE projects by any chance e.g.? > Or any other FOSS project we can test ourselves? Milian, As you can see in the screenshot, it was projectmanagerview.cpp from kdevplatform[master]. Heh, I should pay more attention to the surroundings of the actual bug ;-) Sadly, I cannot reproduce this locally. Any chance you could add some debug output and debug it locally to see why it adds two files for you? Proposed fix: https://phabricator.kde.org/D2765 Git commit 8ed162c5024778f50cb303f333a3062727f695c4 by Alexander Potashev. Committed on 14/09/2016 at 08:56. Pushed by aspotashev into branch '5.0'. clang: Make sure include paths are unique Summary: std::unique() is not enough because it only removes consecutive duplicates. In my case Path(url).parent() pushed into the list at line "paths.push_front(Path(url).parent());" was duplicating an existing include path probably generated by CMake. Reviewers: mwolff, kfunk Reviewed By: kfunk Subscribers: brauch, kfunk, kdevelop-devel Differential Revision: https://phabricator.kde.org/D2765 M +1 -0 languages/clang/codecompletion/includepathcompletioncontext.cpp http://commits.kde.org/kdevelop/8ed162c5024778f50cb303f333a3062727f695c4 |