Bug 384971 - No preview for new documents
Summary: No preview for new documents
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: plugin-preview (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on: 384448 384449
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-22 19:12 UTC by Friedrich W. H. Kossebau
Modified: 2020-11-26 04:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich W. H. Kossebau 2017-09-22 19:12:49 UTC
When creating a new document in Kate or KDevelop and entering some data, e.g. a Markdown text, the preview plugin does not show any preview. Even not when selecting a Mode or after saving the document to a file.

Reason is that the plugin relies on the MIME type reported for the document. Right now KTextEditor only estimates that MIME type on request instead of maintaining this property itself and notifying clients about any changes (see bugs this report depends on). 

Workaround:
Best ensure the new document is saved at least once (for MIME types only detected by file suffix). Then either close & open again the file or switch the preview plugin shortly to preview another open document.
Comment 1 Justin Zobel 2020-10-27 04:11:22 UTC
Friedrich can you please test in a recent version of Kate and confirm if this is still an issue, thanks.
Comment 2 Bug Janitor Service 2020-11-11 04:33:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-11-26 04:33:59 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!