Some issues with project plugin ?

Tyler tyler at linuxdev.app
Tue Jan 24 23:58:43 GMT 2023


Would CWalk be any help here?
https://github.com/likle/cwalk

Tyler

Jan 24, 2023, 11:52 PM by neundorf at kde.org:

> 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20230125/3d4cf69f/attachment.htm>


More information about the KWrite-Devel mailing list