seagle0128 / grip-mode

Instant Github-flavored Markdown/Org preview using grip
GNU General Public License v3.0
269 stars 6 forks source link

Internal Server Error #10

Closed jkunlin closed 4 years ago

jkunlin commented 4 years ago

I am using centaur and Emacs 26.3. After firing the command grip-mode on a markdown buffer, the WebKit page shows internal server error. But there is no problem with the markdow-preview command (preview using chrome browser).

seagle0128 commented 4 years ago

See https://github.com/seagle0128/.emacs.d/issues/174.

jkunlin commented 4 years ago

By setting grip-github-user and grip-github-password, I can now preview in WebKit. But the page keeps flickering or black when the cursor is in the Markdown buffer. Besides, it seems that the preview page can't be scrolled down. It will return to the top position immediately.

jkunlin commented 4 years ago

Preview using the chrome browser does not have the problem. There is another problem. The CPU usage of emacs will increase dramatically if I switch to another buffer when the grip-mode is enabled.

seagle0128 commented 4 years ago

I couldn't reproduce this issue. Please provide the details that are described in the issue template.

jkunlin commented 4 years ago

I am sorry, but I can't find the issue template. I will provide the following information. Hope it is helpful.

Operating System: Linux Mint 19.3 Emacs version: 26.3 .emacs.d: Centaur commit 683594, the only content in custom-post.el is the setting of grip-github-user and grip-github-password Grip: I install it using sudo pip install grip Reproduce: 1. open a markdown file using emacs (gui), run grip-mode, then the preview page will appear, but keep flickering. 2. open a terminal, run emacsclient -n -c -a "" a.cc. Then emacs will take 100% CPU usage.

The markdown file is as simple as following

title
-----
body
seagle0128 commented 4 years ago

Do you have a chance to try 27 or 28? I suspect it's related to the widget feature.

jkunlin commented 4 years ago

I have just tried 28 and the problem still exists. But if I preview using Chrome, everything goes well. I think the issue indeed is related to the widget feature.

seagle0128 commented 4 years ago

You could disable webkit previews.

(setq grip-preview-use-webkit nil)
jkunlin commented 4 years ago

Fine