[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#959957: kate: Kate ctags addon does not start ctag process to update database



Package: kate
Version: 4:20.04.0-1
Severity: normal
Tags: upstream

Dear Maintainer,

After updating to the latest Kate, I have noticed that cgit no longer
updates its tag database when I press "Update Index" button. Instead, it
produces a message box:

  Failed to run "ctags -R <a_lot_of_options> -f /home/di/<db_location> /home/di/<my_source_dir> ". exitStatus = 0

After Kate source code examination I have found this upstream commit:

https://github.com/KDE/kate/commit/30bde6d47a8727347f6deaa4b318669d078f85d2

"Port some deprecated method in qt5.15"

Among other things, it has changed the way Kate is starting cgit process:

     QString command = QStringLiteral("%1 -f %2 %3").arg(m_ctagsUi.cmdEdit->text(), m_ctagsUi.tagsFile->text(), targets);

-    m_proc.start(command);
+    m_proc.start(command, QStringList());

According to Qt documentation, in this version of QProcess::start(...),
"No further splitting of the arguments is performed".

https://doc.qt.io/qt-5.12/qprocess.html#start

At the same time, ctags command is still prepared together with its
arguments as one string! So ctags addon is essentially broken by this
commit, and it's not fixed yet in upstream.

My proposal is to create a patch for debian which will restore an old
method call - it should work fine as long as Debian is using Qt 5.12/5.14
and upstream Kate is not fixed.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kate depends on:
ii  kate5-data                               4:20.04.0-1
ii  kio                                      5.62.1-2+b1
ii  ktexteditor-katepart                     5.62.0-1+b1
ii  libc6                                    2.30-4
ii  libkf5bookmarks5                         5.62.0-1+b1
ii  libkf5completion5                        5.62.0-1+b1
ii  libkf5configcore5                        5.62.0-1+b1
ii  libkf5configgui5                         5.62.0-1+b1
ii  libkf5configwidgets5                     5.62.0-1+b1
ii  libkf5coreaddons5                        5.62.0-1
ii  libkf5crash5                             5.62.0-1+b1
ii  libkf5dbusaddons5                        5.62.0-1
ii  libkf5guiaddons5                         5.62.0-2
ii  libkf5i18n5                              5.62.0-1
ii  libkf5jobwidgets5                        5.62.0-1+b1
ii  libkf5kiocore5                           5.62.1-2+b1
ii  libkf5kiofilewidgets5                    5.62.1-2+b1
ii  libkf5kiowidgets5                        5.62.1-2+b1
ii  libkf5newstuff5                          5.62.0-1+b1
ii  libkf5parts5                             5.62.0-1+b1
ii  libkf5plasma5                            5.62.0-2
ii  libkf5service-bin                        5.62.0-1
ii  libkf5service5                           5.62.0-1
ii  libkf5syntaxhighlighting5                5.62.0-3
ii  libkf5texteditor5                        5.62.0-1+b1
ii  libkf5textwidgets5                       5.62.0-1+b1
ii  libkf5threadweaver5                      5.62.0-1
ii  libkf5wallet-bin                         5.62.0-1+b1
ii  libkf5wallet5                            5.62.0-1+b1
ii  libkf5widgetsaddons5                     5.62.0-1+b1
ii  libkf5windowsystem5                      5.62.0-3
ii  libkf5xmlgui5                            5.62.0-1+b1
ii  libqt5core5a                             5.12.5+dfsg-10
ii  libqt5dbus5                              5.12.5+dfsg-10
ii  libqt5gui5                               5.12.5+dfsg-10
ii  libqt5sql5                               5.12.5+dfsg-10
ii  libqt5widgets5                           5.12.5+dfsg-10
ii  libqt5xml5                               5.12.5+dfsg-10
ii  libstdc++6                               10-20200418-1
ii  plasma-framework                         5.62.0-2
ii  qml-module-org-kde-kquickcontrolsaddons  5.62.0-1+b2
ii  qml-module-qtquick-layouts               5.12.5-5
ii  qml-module-qtquick2                      5.12.5-5

Versions of packages kate recommends:
ii  sonnet-plugins  5.62.0-1+b1

Versions of packages kate suggests:
pn  darcs            <none>
ii  exuberant-ctags  1:5.9~svn20110310-13
ii  git              1:2.26.2-1
ii  khelpcenter      4:18.04.0-1+b1
ii  konsole-kpart    4:19.08.1-2+b1
pn  mercurial        <none>
ii  subversion       1.13.0-4

-- no debconf information


Reply to: