Re: Some issues with project plugin ?
Tyler <[email protected]> Wed, 25 Jan 2023 00:58:43 +0100 (CET)
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <[email protected]> |
Would CWalk be any help here? https://github.com/likle/cwalk Tyler Jan 24, 2023, 11:52 PM by [email protected]: > On Montag, 23. Januar 2023 23:42:41 CET Alexander Neundorf wrote: > >> Hi, >> >> are there any known issues with the project plugin ? >> I haven't investigated yet, but here is what I see: >> it looks like, that even though in the .kateproject file, the "files" entry >> is not empty, but contains a long list of files, kate doesn't seem to know >> about any files in that project. Is it possible that the "list" mode is >> broken ? >> > > It is indeed broken. > > In void KateProjectWorker::loadFilesEntry(), "fullFilePath" is set like this: > fullFilePath = dirPath + filePath; > > without checking whether filePath is already an absolute path. > So if the list of files in the kateproject file already contains absolute paths, > the base directory is prepended to those absolute paths, which results in bad > paths. > > I could check QFileInfo::isAbsolute(), but the comment says that's too slow. > If nobody else is faster, I'll do something in the next days. > > Alex >