Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sci-Mon opened this issue Feb 4, 2021 · 10 comments · May be fixed by #1064

Comments

@Sci-Mon
Copy link

Sci-Mon commented Feb 4, 2021

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

@codebrainz
Copy link
Member

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

@Sci-Mon
Copy link
Author

Sci-Mon commented Feb 5, 2021

image

@Sci-Mon
Copy link
Author

Sci-Mon commented Feb 5, 2021

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

codebrainz added a commit to codebrainz/geany-plugins that referenced this issue Feb 9, 2021
For whatever reason, in some cases `document_get_current()` doesn't
return a valid document when it seems like it should, so when updating
the markdown preview from signals where the related GeanyDocument
is available, use that instead of calling `document_get_current()`.

In other cases, continue to use `document_get_current()` as before.

Closes geany#1062
@spiralofhope
Copy link

spiralofhope commented Mar 5, 2022

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.

@eht16
Copy link
Member

eht16 commented Mar 6, 2022

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 :(.

@kevjonesin
Copy link

kevjonesin commented Nov 18, 2023

FYI, FWIW, the plugin is still being offered in the Debian 12.2 repository on my MX Linux distro.
Here's the repo listing as shown in aptitude:

quickshot_231118_115220

And now, after reading the preceding (March 6, 2022) comment by "eht16", I finally understand why the plugin fails to render previews. Darn it. I was pretty psyched to have Geany double up as a live preview Markdown editor.

p.s. – @codebrainz – It might be worth noting on the website entry (https://plugins.geany.org/markdown.html) that the plugin has been deprecated.

@Moonbase59
Copy link

Seems Webkit stuff is broken on all programs using it (Geany, Liferea, …).

I usually succeed by starting Geany (and others) on the command line like so:

WEBKIT_DISABLE_COMPOSITING_MODE=1 geany

@AtomicRobotMan0101
Copy link

Seems Webkit stuff is broken on all programs using it (Geany, Liferea, …).

I usually succeed by starting Geany (and others) on the command line like so:

WEBKIT_DISABLE_COMPOSITING_MODE=1 geany

DYNAMITE ANSWER

Ive looked everywhere for this. What a journey. Needs +100 updoots and put on top of all searches.

@elextr
Copy link
Member

elextr commented Jul 18, 2024

Note, as the markdown plugin does not seem to be maintained by its creator any more a kind contributor has provided a fix to move the plugin from webkitgtk to a newer version of webkit2gtk merged 3 months ago, so probably in release 2.1 ("soon" don't ask ;-). Don't know if that will make it available in the windows build as @eht16 comment above notes and I don't know and how long that will keep it working given it effectively has no maintainer.

@eht16
Copy link
Member

eht16 commented Jul 21, 2024

Don't know if that will make it available in the windows build as @eht16 comment above notes

It is not and will be not available in the Windows builds, this is already the case since Geany 1.38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants