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 preview panel doesn't produce output #945

Closed
mirkoperillo opened this issue Jan 18, 2020 · 5 comments
Closed

Markdown preview panel doesn't produce output #945

mirkoperillo opened this issue Jan 18, 2020 · 5 comments

Comments

@mirkoperillo
Copy link

Hi,
I have a problem with the markdown plugin.
The preview panel doesn't show any output.
I have configured the file type as Markdown

I installed the plugin cloning the this repo
Some info
Geany version: 1.36
Geany plugins from github master branch (commit 0bfe89d)
OS: Ubuntu 18.04.3 LTS
Output of Debug Messages:

14:51:19: Geany INFO		: Geany 1.36, it_IT.UTF-8
14:51:19: Geany INFO		: GTK 3.22.30, GLib 2.56.4
14:51:19: Geany INFO		: System data dir: /usr/share/geany
14:51:19: Geany INFO		: User config dir: /home/mirko/.config/geany
14:51:19: Geany INFO		: Loaded GTK+ CSS theme '/usr/share/geany/geany.css'
14:51:19: Geany INFO		: Loaded GTK+ CSS theme '/usr/share/geany/geany-3.20.css'
14:51:19: Geany INFO		: System plugin path: /usr/lib/i386-linux-gnu/geany
14:51:19: Geany INFO		: Added filetype Arduino (61).
14:51:19: Geany INFO		: Added filetype TypeScript (62).
14:51:19: Geany INFO		: Added filetype Scala (63).
14:51:19: Geany INFO		: Added filetype Kotlin (64).
14:51:19: Geany INFO		: Added filetype Genie (65).
14:51:19: Geany INFO		: Added filetype JSON (66).
14:51:19: Geany INFO		: Added filetype Swift (67).
14:51:19: Geany INFO		: Added filetype Groovy (68).
14:51:19: Geany INFO		: Added filetype Nim (69).
14:51:19: Geany INFO		: Added filetype Cython (70).
14:51:19: Geany INFO		: Added filetype Clojure (71).
14:51:19: Geany INFO		: Added filetype Graphviz (72).
14:51:19: Geany INFO		: Added filetype CUDA (73).
14:51:20: Geany INFO		: Loaded libvte from libvte-2.91.so.0
14:51:20: Geany INFO		: Loaded:   /usr/lib/i386-linux-gnu/geany/pairtaghighlighter.so (Coppia tag Highlighter)
14:51:20: Geany INFO		: /mnt/DATI/MIRKO/pwd : None (UTF-8)
14:51:23: Geany INFO		: unknown : None (UTF-8)
16:35:56: Geany INFO		: unknown : None (UTF-8)
16:47:27: Geany INFO		: Plugin "/usr/lib/i386-linux-gnu/geany/pairtaghighlighter.so" already loaded.
16:47:27: Geany INFO		: Added 8 plugin(s) in '/usr/lib/i386-linux-gnu/geany'.
16:47:27: Gtk CRITICAL	: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
16:47:30: Geany INFO		: Loaded:   /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)
16:47:30: Geany INFO		: Unloaded: /usr/lib/i386-linux-gnu/geany/markdown.so
16:47:30: Markdown CRITICAL	: markdown_config_get_template_text: assertion 'conf' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'GtkWidget'
16:47:30: Gtk CRITICAL	: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: GLib-GObject WARNING	: instance with invalid (NULL) class pointer
16:47:30: GLib-GObject CRITICAL	: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: (null) CRITICAL	: void webkit_web_view_load_html(WebKitWebView*, const gchar*, const gchar*): assertion 'WEBKIT_IS_WEB_VIEW(webView)' failed
16:47:32: Geany INFO		: Loaded:   /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)
16:47:38: Geany INFO		: unknown : None (UTF-8)
16:48:33: Geany INFO		: unknown : Markdown (UTF-8)
@codebrainz
Copy link
Member

Not sure what's going on exactly, but this is weird:

16:47:30: Geany INFO		: Loaded:   /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)
16:47:30: Geany INFO		: Unloaded: /usr/lib/i386-linux-gnu/geany/markdown.so

I'm not sure why the plugin got unloaded right away, and may explain the following errors:

16:47:30: Markdown CRITICAL	: markdown_config_get_template_text: assertion 'conf' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'GtkWidget'
16:47:30: Gtk CRITICAL	: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: GLib-GObject WARNING	: instance with invalid (NULL) class pointer
16:47:30: GLib-GObject CRITICAL	: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
16:47:30: GLib-GObject WARNING	: invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: (null) CRITICAL	: void webkit_web_view_load_html(WebKitWebView*, const gchar*, const gchar*): assertion 'WEBKIT_IS_WEB_VIEW(webView)' failed

And then right after that it shows the plugin being loaded again:

16:47:32: Geany INFO		: Loaded:   /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)

Very strange.

@mirkoperillo
Copy link
Author

Let me know if you need more info about

@elextr
Copy link
Member

elextr commented Jan 19, 2020

@mirkoperillo try running geany -c /tmp/something_that_does_not_exist then enable markdown and see what happens, as he noted on geany#2423 it can't be reproduced by @codebrainz

@mirkoperillo
Copy link
Author

Hi,

I found the problem (very embarrassing problem).
The plugin works fine with the test that you have suggested
Then I noticed that in my original user profile the background color in the plugin preferences was set to black.
I didn't see any output for this reason.

I'm sorry for the time you invested in this

@codebrainz
Copy link
Member

No worries.

There's still definitely some issues shown in your pasted Debug Messages. Can you confirm whether with @elextr's test using a new test/dummy config dir you still see those errors I quoted?

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

No branches or pull requests

3 participants