Closed devel0 closed 5 years ago
This is a SharpShell issue I think. It look like the installation tool (which is maintained by @dwmkerr) does not assert the correct registry keys.
Would you mind addressing it here: https://github.com/dwmkerr/sharpshell/issues ?
I did it, just now.
Have you tried different settings in the GUI? Like registering & installing the 32 bit version?
yes, it results the same error.
It's the same here! Bummer! Tried srm.exe and the ServerManager GUI tool with all options to no avail.
It seems srm.exe gives "Failed to install and register the server." when called with "MarkdownPreview.dll" -codebase. It's also quite unclear with which DLL to run srm.exe, since there are 3 of them in your release download. Tried them all, "MarkdownSharp.dll, SharpShell.dll" seem to pass installation at least, not knowing if this is correct or even necessary.
With the ServerManager GUI tool, I get the "MarkdownPreview.dll" file to appear under "Installation" for x86/x64 in the right pane, but not under "Registration", which I guess is required as well.
Thanks!
The correct dll would be MarkdownPreview.dll
, this has a dependency on the other two.
Even on my x64 system, I could only install the x86 version, resulting is:
@tbone2k-git did you try both installing and registering using x86?
@Atrejoe Thanks for your response! o) Yes I did. "Install Server" seems to work for both (x86 and x64), but "Register Server" does _not_ work. "Register Server" always fails for both versions with "The specified path is invalid". Any ideas appreciated, would really like to use this gem! o)
My intuition tells me that srm.exe is a 32-bit app. Because of this, it can't load a 64-bit dll.
There seems to still be some issue. I added a comment on #4 .
Hi I had trouble installing with same symptoms as described above and at #4,
So I checked the SharpShell.dll
versions :
MarkdownPreview uses SharpShell.dll : 2.2.0.0
Get the proper release of ServerManager.zip
here
It works for my Windows7, register and install as x86, the preview is lagging a bit but I wouldn't be able to do any better ! So usefull ! @Atrejoe :+1: Thanks a lot !
Hope it helps. Best Stan
That's cool to hear. I just had a fresh Win10 reinstall, so it's time to install this gem again ;).
I may have a go at updating the dependencies and releasing an updated version too.
Thanks for your enthusiastic response @stanpetit !
Hi @Atrejoe ! I am definitely enthusiastic about what can make my life easier ! You did that, that's an interesting effort when Markdown is everywhere today ... thanks a lot !
About an updated release :
With that kind of framework, I guess that SharpShell is providing interfaces to implement the event handlers, maybe even a cache mechanism.
Good luck, Best Stan
@stanpetit I have the scrolling issue too, I'm completely unable to scroll (see #3).
I'm about to release a new version, upgrading SharpShell (fingers crossed) and replacing the obsolete MarkDown-interpretation engine with Markdig.
@Atrejoe Hi! The quite random behavior of the scrolling makes me think of an over-usage in the md interpreter, because it doesn't just forbid to scroll : it seems just too busy to release the action to the user ... Maybe an event makes it do it over and over. I would seek this way before to look into a SharpShell issue, because SharpShell seems to do it's job ok : the binding to the preview is done, even if the event loop is weird ! Good luck, Best Stan
@Atrejoe : last reply was late ! I saw your comment at new version and I am convinced that an event or a state forbids the md interpreter to take a rest when the temporary html file is produced. It should be produced once and cached to to some tmp ...
@stanpetit let's continue that discussion at #3 (but I don't think it's a loading/performance issue, when I add a static counter and display it, it behaves nicely)
I tried from a cmd admin prompt but installation fail
Trying from the GUI
ServerManager.exe -> Load ( choose of MarkdownPreview.dll )
Clicking on the Server -> Register Server (x64) I got follow
Any hint ? Thanks in advice