| Summary: | regression 2.9.94: --line option no longer works when kile is already running. | ||
|---|---|---|---|
| Product: | [Applications] kile | Reporter: | gamall.ida |
| Component: | general | Assignee: | Michel Ludwig <michel.ludwig> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | artal, christian.saemann, mfroeb |
| Priority: | NOR | ||
| Version First Reported In: | 2.9.94 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
gamall.ida
2024-08-19 11:30:08 UTC
I can confirm it in Fedora 40, see https://bugs.kde.org/show_bug.cgi?id=490618 Same on latest openSUSE. Unfortunately strong impact on productivity. Also, running "kile --line 100 file.tex&" twice in terminal leads to the following output: qt.dbus.integration: QDBusConnection: couldn't handle call to setLine, no slot matched qt.dbus.integration: QDBusConnection: couldn't handle call to setLine, no slot matched qt.dbus.integration: Could not find slot MainAdaptor::setLine Until it is solved, the internal document viewer works. This seems to result from commit https://invent.kde.org/office/kile/-/commit/2b9ea67456f4433b0f774f1ab186c38f8a3a2820 which added a second parameter to the setLine() method. This parameter is not set when calling the DBus interface in main.cpp, line 223: https://invent.kde.org/office/kile/-/blob/master/src/main.cpp#L223 . I believe adding an empty second parameter in this call should fix it, but I cannot test this right now. As a workaround, using the command "qdbus6 org.kde.kile /main setLine %l %f" as the custom editor call (in Settings - Okular settings - Editor - Custom Text Editor) works for me if the file is currently open in Kile. %f is not the correct parameter to pass, but without specifying %f in the command okular appends it, and then qdbus complains about an invalid number of parameters. *** Bug 490618 has been marked as a duplicate of this bug. *** (In reply to mfroeb from comment #4) > As a workaround, using the command "qdbus6 org.kde.kile /main setLine %l %f" > as the custom editor call (in Settings - Okular settings - Editor - Custom > Text Editor) works for me if the file is currently open in Kile. For me, even if the file is open, if it's not the *active* one, kile goes to the line in the active file, not the actual source file. So, --line selects the right file, but the wrong line, and dbus selects the right line, but ignores the file. Hence the following monstrosity of a workaround, which seems to work for me: sh -c "kile --line %l %f; qdbus6 org.kde.kile /main setLine %l %f" |