wm3 icon indicating copy to clipboard operation
wm3 copied to clipboard

Pandoc installed, but nothing happens

Open nc-ulille opened this issue 2 years ago • 13 comments

I can’t figure how to make Pandoc plugin work… It only show the message that Export has started, but then nothing happens. Last version of Pandoc is installed (Windows 10)

Is there a way to get some debug informations somewhere?

nc-ulille avatar Apr 02 '23 18:04 nc-ulille

To open the developer console, press ctrl+shift+J. Then, run the pandoc command and check the console for any errors. Let me know what is the problem. i.

writemonkey avatar Apr 03 '23 09:04 writemonkey

Thanks! I have :

TypeError        command_palette.js:1033 
message: "undefined is not a function"
stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: Error

nc-ulille avatar Apr 03 '23 09:04 nc-ulille

Hmmm, not very informative :) Which pandoc command did you run? Is it the same with all commands? If that is the case, I'd try to reinstall the pandoc and make sure that it works outside wm. Also make sure that your user account has access to it. i.

writemonkey avatar Apr 03 '23 09:04 writemonkey

Yes, it’s the same for all the commands. I just tested that Pandoc works in the command line without problems.

nc-ulille avatar Apr 03 '23 10:04 nc-ulille

Is pandoc installation folder included under PATH User variables? The installation should put it there, but check anyway:

Press the Start key on your keyboard. Search and open “Edit the system environment variables.” Go to the “Advanced” tab. Click the “Environment variables” button. Select the “Path” variable under “User variables” or “System variables.”

writemonkey avatar Apr 03 '23 10:04 writemonkey

It seems Ok : there is C:\Users\XXXXXX\AppData\Local\Pandoc and pandoc.exe is present in this directory

nc-ulille avatar Apr 03 '23 10:04 nc-ulille

Hmmm, on my system, also win10, pandoc is @ C:\Program Files\Pandoc\ I'd try to reinstall the pandoc there. But I am guessing now, it should also work from any other folder. But that is smth I'd try. It seems that wm can't find pandoc ... I just installed the newest pandoc version (3.1.2) and wm export works as intended. i.

writemonkey avatar Apr 03 '23 10:04 writemonkey

I reinstalled Pandoc for all the users. pandoc.exe is now in C:\Program Files\Pandoc but for some reason it wasn’t added to PATH environment variable. I added it manually, restarted, but it didn’t work (same message)

nc-ulille avatar Apr 03 '23 10:04 nc-ulille

Another long shot: grab wm folder and copy it to your desktop. run wm from there. I presume you are running wm 3.3? i.

writemonkey avatar Apr 03 '23 11:04 writemonkey

No luck? It just refuses to work? i.

writemonkey avatar Apr 05 '23 05:04 writemonkey

Ok it seems to work now, thanks! Sorry for the delay, I was busy with other stuff, and : in my installation, there is a permanent backup of my desktop on some server (or something like that). When I put something on my desktop, it is in fact on a server. So installing WM3 there didn’t work.

I have now made a copy of WM3 on hard drive C:\…\Desktop, and then Pandoc worked.

nc-ulille avatar Apr 05 '23 17:04 nc-ulille

I also get errors when running the pandoc plugin from anywhere but a copy of WM on the desktop. Is there a "desktop" parameter in some .json that would allow it to work from elsewhere?

emilioluque avatar Jul 11 '23 16:07 emilioluque