SUMMARY Annoying error message in the terminal. STEPS TO REPRODUCE touch file.txt && kate file.txt OBSERVED RESULT kf5.kio.kdirmodel: protocol mismatch: "" vs "file" EXPECTED RESULT SOFTWARE/OS VERSIONS kate 20.04.3 openSUSE Tumbleweed 20200807 KDE Plasma Version: 5.19 KDE Frameworks Version: 5.72.0 Qt Version: 5.15 ADDITIONAL INFORMATION Kwrite does not suffer from this.
Same thing on Arch Linux, with Kate 20.04.3.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/140
Git commit 17508a45e1688c68d3855006dbba254dbb707c09 by David Faure, on behalf of Ahmad Samir. Committed on 20/09/2020 at 20:05. Pushed by dfaure into branch 'master'. KDirOperator: don't call setCurrentItem on an empty url A previous commit re-enabled dir highlighting, which is supposed to highlight the dir we've just left when going back/up. However when a KFileWidget is first created/opened there is no such item to highlight. If setCurrentItem is called with on an empty url, KDirModel::expandToUrl would call expandAllParentsUntil on that url which would show this warning: 'protocol mismatch: "" vs "file"'. This also fixes an issue where if you open a file in kate, then invoke the open file dialog the currently open file isn't selected/highlighted in the view. FIXED-IN: 5.75 M +2 -1 src/filewidgets/kdiroperator.cpp https://invent.kde.org/frameworks/kio/commit/17508a45e1688c68d3855006dbba254dbb707c09