https://bugs.kde.org/show_bug.cgi?id=481139

            Bug ID: 481139
           Summary: Update Index (CTags plugin) produces an error
    Classification: Applications
           Product: kate
           Version: 22.12.3
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: teu...@protonmail.com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to