Bug 481139

Summary: Update Index (CTags plugin) produces an error
Product: [Applications] kate Reporter: Teunizz <teuniz>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, rdbirt, teuniz, waqar.17a
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Teunizz 2024-02-09 19:53:55 UTC
SUMMARY
***
When running "Update Index in tab "Index Targets" in the CTags plugin, it produces an error with the message:

Failed to run ""ctags -R --c++-types=+px --extra=+q --excmd=pattern --exclude=Makefile --exclude=." -f "/home/guv/.local/share/kate/katectags/session_db_20240208_182054" "/data/amos/c/EDFbrowser" ". exitStatus = 0

If I run the following command in a terminal:

ctags -R --c++-types=+px --extra=+q --excmd=pattern --exclude=Makefile --exclude=. -f /home/guv/.local/share/kate/katectags/session_db_20240208_182054 /data/amos/c/EDFbrowser

then there's no error and CTags works fine, also in Kate. The only thing that doesn't seem to work is updating the index from within Kate.

***


STEPS TO REPRODUCE
1. Install ctags.
2. In Kate's plugin manager enable CTags.
3. Open the CTags windows in the bottom of Kate's main window.
4. In tab index add the directory that contains some sourcecode files.
    This is a weird experience, I cannot select a file or directory, I need to copy and paste the correct directory
   into the field of the filepicker in order to make it work...
5. Now click on the button "Update Index".

OBSERVED RESULT
A popup error message with the text:
Failed to run ""ctags -R --c++-types=+px --extra=+q --excmd=pattern --exclude=Makefile --exclude=." -f "/home/guv/.local/share/kate/katectags/session_db_20240208_182054" "/data/amos/c/EDFbrowser" ". exitStatus = 0

EXPECTED RESULT
No error message. Instead CTags should index the files in the directory selected in the steps above.

SOFTWARE/OS VERSIONS

Kate Version 22.12.3
Operating System: openSUSE Leap 15.5
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-10-20 18:19:01 UTC
We did fix several issues in that plugin since 22.xx
Please try the current 24.08 release. Thanks.
Comment 2 Teunizz 2024-10-20 19:51:50 UTC
(In reply to Christoph Cullmann from comment #1)
> We did fix several issues in that plugin since 22.xx
> Please try the current 24.08 release. Thanks.

Thank you but, as far as I know, OpenSuse Leap 15.5 does not offer a possibility to upgrade Kate without braking KDE/Plasma.
And because I need a stable system for production, I can't switch to OpenSuse Tumbleweed which has the latest versions.
Comment 3 Waqar Ahmed 2024-10-20 20:07:26 UTC
you can just use the app image