-
Notifications
You must be signed in to change notification settings - Fork 29
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
Can't load markdown-preview :( #16
Comments
I am also having this problem. |
I have the same issue with the same configuration: |
I am facing the same situation ( Ubunut 16.04 , Gedit 3.18.3 ) These are the errors I found when opening gedit from command line
|
Likewise. Different error in the console, but same manifestation: can't load the markdown preview plugin with gedit v3.18:
|
In the case of @mhoovler, missing dependencies are the main issue. As @XingMo mentioned you need The error posted by @babanesma is the real problem. There are a few outdated methods which are easily updated, but they are not the core of the problem - the plugin hasn't been updated for new versions of gedit which no longer uses the likes of a For now the best solution may be to try a recently updated fork which incorporates these required changes, and is tested and working for the most part on the latest on Gedit 3.22, though it should work for other recent versions as well provided you have the right dependencies. |
@babanesma Do you have repaired this bug? I have the same error. My gedit version is 3.22. Hope the plugin will update to solve the problem |
I have a similar error. syntax highlighting works but when trying to enable the markdown-preview plug in the following error occurs:
python3-markdown and gir1.2-webkit-3.0 is installed on ubuntu 16.04 |
Same here. My gedit version is 3.22. |
See my fork (including modifications by @nielsmde): darkdragon-001/gedit-markdown |
@darkdragon-001 I seem to have all the dependencies, and the installation of your fork went successful. Now when I go to Plugins and tick the Markdown it is also successful, it stays ticked. Previously it just showed a red sign. But I still don't see any Traceback (most recent call last):
File "/home/name/.local/share/gedit/plugins/markdown-preview/__init__.py", line 425, in do_activate
self.app.set_accels_for_action("win.MarkdownPreview", [markdownShortcut])
AttributeError: '__main__.GeditAppX11' object has no attribute 'set_accels_for_action'
Traceback (most recent call last):
File "/home/name/.local/share/gedit/plugins/markdown-preview/__init__.py", line 120, in do_activate
self.addMarkdownPreviewTab()
File "/home/name/.local/share/gedit/plugins/markdown-preview/__init__.py", line 147, in addMarkdownPreviewTab
panel.add_titled(self.scrolledWindow, "MarkdownPreview", _("Markdown Preview"))
AttributeError: 'Panel' object has no attribute 'add_titled'
Traceback (most recent call last):
File "/home/name/.local/share/gedit/plugins/markdown-preview/__init__.py", line 139, in do_update_state
self.actionGroup1.set_sensitive(self.window.get_active_document() != None)
AttributeError: 'MarkdownPreviewPlugin' object has no attribute 'actionGroup1'
(gedit:18152): Gtk-CRITICAL **: gtk_container_remove: assertion 'gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container)' failed I'm on Ubuntu 14.04, Gedit 3.10.4. |
@prkos Most of the issues described here refer to never versions of Ubuntu, gedit. I just confirmed that my fork workes within Ubuntu 18.04, gedit 3.28. You can try an older version, but I recommend you to update your system anyway. |
@darkdragon-001 thank you. I'll have to dig out the time for the upgrade. |
Hey @jpfleury , Tested on Ubuntu 18.04 with gedit 3.28.1 sudo apt install python3-markdown gir1.2-webkit-3.0
git clone https://github.com/darkdragon-001/gedit-markdown.git
cd gedit-markdown
./gedit-markdown.sh uninstall # remove old if exists
./gedit-markdown.sh install Current drawbacks:
Highlights:
|
Side panel works by editing |
Oh, thank you for that hint. I missed the section concerning the configuration file. Would be better if this and the theme are configurable in a preferences dialog. |
@jpfleury, @darkdragon-001 |
@ekuester Do you have WebKit2-4.0 available in Fedora? I started migration to WebKit2-4.0 in a separate branch. It runs without error on Ubuntu 18.10 with Webkit2-4.0. I commented out some signals which need to be reconnected though. I marked the corresponding passages with |
@darkdragon-001 don't know if I can be of help. In the meantime I upgraded to fedora 29, now my gedit has version 3.30.2 ... To display markdown files I am using in the moment remarkable from jamiemcg, in issue 282 I describe the procedure to solve a problem with webkit. Maybe you can suck some honey of of it ... My system has installed webkit2gtk3 = 2.22.4-1.fc29 and webkitgtk4 = 2.22.4-1.fc29. Don't know if that is the right one for your purpose. If you mean it makes sense I could attempt a newly install of the markdown plugin. |
@ekuester Can you please try if my fixed version works without any errors? The signals I commented out were mostly related to links and popups. So there might be issues here. But the rest should work. |
@darkdragon-001 Installation via shell-script was successful, but ... activation of the plugin failed.
OK, same as before ... Now I tried to change line 22 and 23 in init.py
OK, ValueError disappeared, I can activate markdown-plugin under Plugins in Configuartion menu, in Tools menu I see update resp. toggle markdown preview, but greyed out. New error messages appear
It seems to me that actionGroup1 is not correctly defined. Dont know much about python, but in C++ such a variable must declared before using it ... |
@ekuester Can you please check branch webkit2?
|
Command should read
I installed and then started gedit and looked at Configurations and activate markdown-plugin and returned to Tools menu and saw, that update resp. toggle markdown preview was clickable, and loaded a .md file and saw the markdown preview window BUT without content. Got error message
No doubt, the breakthrough is near ... In anticipating obedience ;-) I add the german translation file. |
Hmmm, that's weird. This error (similar to your tests before) appeared when it was not correctly initialized (usually with some other error appearing before). Can you please try the following:
If this still doesn't work, can you please give me a list of (Fedora) packages one needs to install? I will try it in a docker container or virtual machine then... Thanks a lot for the translation. I added them to the lastest ( |
IT WORKS :-) |
Thanks for the confirmation and thanks for your translation work! Nevertheless, I will wait with merging the |
@darkdragon-001 due to several typos the translation files do not work as expected. I add corrected versions below. |
@ekuester Can you please check if it works with the latest changes? Note that you have to rebuild the |
@darkdragon-001 I loaded from your repository, I rebuild the |
It seems at the moment this is the biggest problem: Any chance the plugin will be updated to use something that is still maintained? |
@sixtyfive is this also true for WebKit2? Or is this version still maintained? If not, do you know any alternative? |
For Ubuntu 18.04.3 LTS this is the solution:
|
And... maybe this should be written in the install section. |
I just released version 3 (preview) on https://github.com/darkdragon-001/gedit-markdown
Most of the issues in this repository should be dealt with in this release. I enabled issues in my repository. Please test the new plugin and give me feedback. Pull requests are always welcome! |
I have installed the
python3-markdown
and thegir1.2-webkit-3.0
, and I even wrote an example to make sure that. But the previewer still can't be loaded. Is it because I have both python2 and python3 on my computer? But the loader has been set topython3
in .plugin. Could anybody figure out the reason?-Ubuntu 16.04LTS
-Gedit 3.18.3
The text was updated successfully, but these errors were encountered: