Atrejoe / MarkdownPreview

A Windows Preview handler for Markdown files
MIT License
120 stars 9 forks source link

It worked, then crashed and never worked again #10

Open ghost opened 5 years ago

ghost commented 5 years ago

Thank you for making this! I installed on latest windows 10 home. It worked great and then it crashed and that was that. It never worked again despite repeated reboots. Very close! I look forward to trialling future versions.

Atrejoe commented 5 years ago

Hi @JamesFrederik, sorry about the late reply. I know this application has stability issues, a lot of the other issues are regarding experiencing installation or functionality issues. I think unless I have better debugging tools for Sharpshell, this is hard to fix.

Atrejoe commented 5 years ago

See remark on introduction of logging : https://github.com/Atrejoe/MarkdownPreview/issues/11#issuecomment-527227637

Furthermore, Windows Sandbox (available in Windows 10 Pro and up) helps with problem analysis on a pristine environment.

thjungers commented 5 years ago

(Follow-up from issue #11, which seems to be related to this issue).

Hi,

I don't have issues with previewing other extensions (like Word files or images). When trying to preview a .md file, it directly shows "No preview available". I've tried waiting for a few minutes, it doesn't change anything.

I didn't compile myself, can you send me binaries for the debugging branch?

Thanks

Atrejoe commented 5 years ago

Hi @thjungers ,

You can try these: MarkdownPreview.zip

Good luck :)

thjungers commented 5 years ago

Thanks @Atrejoe.

I've uninstalled, replaced the binaries, reinstalled, put the HKEY_LOCAL_MACHINE\Software\SharpShell\LoggingMode key to 1, tested in the Explorer and in the ServerManager, yet I don't see any logging in DebugView 😞 What am I doing wrong?

However, I've just realised that, in the ServerManager, when I click on Test Server in Test Shell, if I click Continue on the error message I mentioned, I can see the preview for .md files (but only in this Test Shell, not in the Explorer)

Atrejoe commented 5 years ago

Just for referencing: https://github.com/dwmkerr/sharpshell/wiki/Debugging-&-Diagnostics

When you set the logging mode to 7 (these values are flags so you can set multiple at the same time), you should see messages in a file and in the event log too.

I have a hard time debugging too, while you see that I left trace messages all over the place, I see none in the logs. So you know what to expect, see log calls in: https://github.com/Atrejoe/MarkdownPreview/blob/debugging/MarkdownPreview/MarkdownPreviewHandler.cs