geany-plugins icon indicating copy to clipboard operation
geany-plugins copied to clipboard

Markdown Plugin Preview not working after starting geany with a file that was already opened the other day

Open Sci-Mon opened this issue 4 years ago • 10 comments

After starting geany 1.37.1 Debian GNU/Linux 10 (buster) with a markdown-file that was opened already yesterday, the preview is not working (see below) until the moment I edit the file again. Phew, quite difficult to explain exactly, sorry.

The shown 'error' in the preview is: The current document does not have a Markdown filetype

Not a big issue for me but I still wanted to post it

Sci-Mon avatar Feb 04 '21 21:02 Sci-Mon

Might be a bug where the preview updates before the document is loaded and doesn't update after it loaded. If you can reproduce, can you check what the filetype shown in the statusbar says before you start editing?

Screenshot from 2021-02-04 17-30-06

codebrainz avatar Feb 05 '21 01:02 codebrainz

image

Sci-Mon avatar Feb 05 '21 23:02 Sci-Mon

So here is a screenshot from the statusbar after loading. Filetype is ok...

Sci-Mon avatar Feb 05 '21 23:02 Sci-Mon

update: I just began typing again and it began working. I resized my sidebar back and forth, then I resized the whole window, then I started typing. I think I reflexively saved (but I do that often enough that I have no memory of it.)


Fingers crossed for the pull request.

Is there a workaround in the meantime?

I am also experiencing this 1.37.1 - Using GTK+ v2.24.32 and GLib v2.66.2 runtime libraries on Windows 10 64bit

a file foo.markdown is indeed detected as filetype markdown, but the markdown preview tab shows that same

The current document does not have a Markdown filetype.

spiralofhope avatar Mar 05 '22 22:03 spiralofhope

JFTR, the PR won't help you much: the current version 1.38 and future versions of Geany-Plugins don't include the Markdown plugin any longer. This is because there are no WebkitGTK packages available in Mingw64 and so we cannot build and distribute the plugin :(.

eht16 avatar Mar 06 '22 14:03 eht16