Summary: | preview for md document doesn't work | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Piotr Mierzwinski <piotr.mierzwinski> |
Component: | plugin-preview | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | kossebau, nortexoid, piotr.mierzwinski |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | example of README.md |
Description
Piotr Mierzwinski
2017-10-14 18:38:36 UTC
The KTextEditorPreview plugin itself does not preview Markdown files. You need to have a KParts plugin installed which supports Markdown files, e.g. the KMarkdownWebView KParts plugin (see https://frinring.wordpress.com/2017/09/30/kmarkdownwebview-0-2-0/). What do you see in the "hamburger" menu for the "About KPA>RTSPLUGIN" when you see a preview, for UI files and for MD files? Chance is that you are hitting the issue as described here: https://bugs.kde.org/show_bug.cgi?id=384973 I have plugin you mentioned: $ ls -l /usr/lib/qt/plugins/kmarkdownwebviewpart.so -rwxr-xr-x 1 root root 64840 10-01 01:57 /usr/lib/qt/plugins/kmarkdownwebviewpart.so $ pacman -Q | grep -i kmarkdownweb kmarkdownwebview 0.2.0-1 $ pacman -Q | grep -i ktexteditorpreviewp ktexteditorpreviewplugin 0.2.0-1 BTW. In installation procedure there is some bug. In Arch /usr/lib64 is linked to /usr/lib and as far as I remember you try to create this (/usr/lib64) directory, so happens error in moment of installation. I just copied manually the plugin, after I built it. $ ls -l /usr/lib64/qt/plugins/kmarkdownwebviewpart.so -rwxr-xr-x 1 root root 64840 Oct 1 01:57 /usr/lib64/qt/plugins/kmarkdownwebviewpart.so $ ls -l /usr/lib64/qt/plugins/ktexteditor/ktexteditorpreviewplugin.so -rwxr-xr-x 1 root root 69072 Oct 12 00:20 /usr/lib64/qt/plugins/ktexteditor/ktexteditorpreviewplugin.so Back to current issue. When I open md file then "Hamburger" menu is disabled and the same "Update the preview ..." button. Enabled are following buttons: "Lock preview ..." and "Enable automatic updates ...". When I open ui file then "Hamburger" menu is enabled in ui preview and becomes enable in preview md file. In ui preview - "About KUIViewerPart -> About": Displays Designer's UI files - "About KUIViewerPart -> Libraries": KDE Frameworks 5.38.0 Qt 5.9.2 (built against 5.9.1) The xcb windowing system - "About KUIViewerPart -> Authors": Richard Moore Ian Reinhart Geiser In md preview: - "About KMarkdownWebViewPart -> About": For the rendered display of Markdown files in a webpage-like layout - "About KMarkdownWebViewPart -> Libraries" KDE Frameworks 5.38.0 Qt 5.9.2 (built against 5.9.1) The xcb windowing system - "About KMarkdownWebViewPart -> Authors" Friedrich W. H. Kossebau Probably this bug is related with reported by you. I mean bug id: 384973. I observed the same issue when I opened in Kate as first ui file (no preview) and second md - preview turned on for both. Both I opened by "Open with" from Dolphin. I noticed that dependent bugs: 384448 384449 are not fixed yet. I have the latest stable: Qt5. Plasma, KF and KApplications, but it changes nothing if bugs in Kate are still not fixed. (In reply to Piotr Mierzwinski from comment #2) > BTW. In installation procedure there is some bug. In Arch /usr/lib64 is > linked to /usr/lib and as far as I remember you try to create this > (/usr/lib64) directory, so happens error in moment of installation. I just > copied manually the plugin, after I built it. Please report this to the Arch packager(s) then. The build system installs the plugin with a usual install instruction and location variable: install(TARGETS ktexteditorpreviewplugin DESTINATION ${KDE_INSTALL_PLUGINDIR}/ktexteditor) So it might be rather a packaging issue. > Probably this bug is related with reported by you. I mean bug id: 384973. I > observed the same issue when I opened in Kate as first ui file (no preview) > and second md - preview turned on for both. Both I opened by "Open with" > from Dolphin. Yes, seems to me very much this is 384973, so will close this as duplicate bug report then. > I noticed that dependent bugs: 384448 384449 are not fixed yet. I have the > latest stable: Qt5. Plasma, KF and KApplications, but it changes nothing if > bugs in Kate are still not fixed. Yes, no-one seems to have yet started to work on a solution. So we are left for now only with the hope someone will be annoyed enough one day to tackle that coding challenge. *** This bug has been marked as a duplicate of bug 384973 *** I can't get markdown preview in KDE Neon either. Works fine if I open the document in Okular. (In reply to Michael D from comment #4) > I can't get markdown preview in KDE Neon either. Works fine if I open the > document in Okular. Thanks for taking the time to do your report. Sadly though it does not add information as "can't get markdown preview in KDE Neon either" can mean anything. You could get "text only" preview like it currently happens possibly due to a bug in Okular (see https://phabricator.kde.org/D8690 for a potential fix), or no preview at all. So please read through the existing comments on this bug report and also the one for which this one was closed as duplicate. Then tell what you experience yourself and how it relates to the reported issues. TIA. I get a text-only preview. Seems to be the bug you link to concerning not being able to pass mime type to okular. Unfortunately I've no time to go through the whole report here or the marked-as-duplicate one. I'm swamped--sorry! |