Skip to content
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

Running Pandoc ST3 fails #59

Open
colinbes opened this issue Mar 22, 2017 · 5 comments
Open

Running Pandoc ST3 fails #59

colinbes opened this issue Mar 22, 2017 · 5 comments

Comments

@colinbes
Copy link

I am running MacOS Sierra 10.12.3, Sublimetext 3 build 3126 and have install Pandoc plugin in order to convert markdown to PDF.

I have installed Pandoc .19.2.1 via Homebrew.

If I open Pandoc (using shift+CMD+P), typing 'pandoc' to select pandoc and then hit enter I get error message in console stating:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 797, in run_
    return self.run()
  File "Pandoc in /Users/cb/Library/Application Support/Sublime Text 3/Installed Packages/Pandoc.sublime-package", line 45, in run
  File "Pandoc in /Users/cb/Library/Application Support/Sublime Text 3/Installed Packages/Pandoc.sublime-package", line 54, in transformations
  File "Pandoc in /Users/cb/Library/Application Support/Sublime Text 3/Installed Packages/Pandoc.sublime-package", line 215, in _s
KeyError: 'transformations'

I am pretty sure I have had this running before.

Assistance appreciated.

Colin

@MariannaAtPlay
Copy link

I am having a similar issue -
Just trying to install the package for the first time. Windows 10. Installed through Package Control.
When I try to run the command from the palette, there is no output. But there is an error in the console:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 797, in run_
    return self.run()
  File "Pandoc in C:\Users\marianna.shvartsapel\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 45, in run
  File "Pandoc in C:\Users\marianna.shvartsapel\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 54, in transformations
  File "Pandoc in C:\Users\marianna.shvartsapel\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 215, in _s
KeyError: 'transformations'

My settings file:

{

  // There are 2 possible top level settings keys, "user" and "default". If you
  // use "default" in your user settings file, the default settings will be
  // overwritten, but if you use "user" your settings will be merged into the
  // default settings.
  "default": {

    // path to the pandoc binary. Default locations per platform:
    // -  mac
    //    "pandoc-path": "/usr/local/bin/pandoc",
    // -  windows
    //    "pandoc-path": "C:/Users/[username]/AppData/Local/Pandoc/pandoc.exe",
    "pandoc-path": "C:/Users/marianna.shvartsapel/AppData/Local/Pandoc/pandoc.exe"
  }
}

@antonio-gil
Copy link

I also have this issue too. And as the the same as @MariannaAtPlay I installed the plug-in through Package Control.

Console Output:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 797, in run_
    return self.run()
  File "Pandoc in C:\Users\a-gil\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 45, in run
  File "Pandoc in C:\Users\a-gil\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 54, in transformations
  File "Pandoc in C:\Users\a-gil\AppData\Roaming\Sublime Text 3\Installed Packages\Pandoc.sublime-package", line 215, in _s
KeyError: 'transformations'

Also, I have the same configuration (sans the username) as @MariannaAtPlay .


  • Sublime Text 3 Build 3143
  • Windows 7 x64

@antonio-gil
Copy link

Well, I tried something to understand what is happening...

I copied all the settings into the user settings file (not only the config for the executable path) and it worked as intended: it showed the format selection dialog, and generated the expected file. So, I guess that the plugin reads either the default settings OR the user settings, not both (as with other plugins).

Not sure if @MariannaAtPlay and @colinbes are still interested in testing this workaround, but if anyone else is having the same issue, I hope this can be of some help.

Regards.

@runxel
Copy link

runxel commented Nov 28, 2019

I had the same issue.
All you have to do is change the default into user.
Then it will work. (or do as @antonio-gil suggested)

This is strange behaviour indeed and very "un-sublimy". Never seen anything like this.

@crgibbons
Copy link

crgibbons commented Jan 19, 2025

Hopping in to say I have the same trouble on a Mac running Sonoma 14.6.1.

I wanted to try the default to user change, but when I browse via the ST3 menus to the settings for Pandoc, for default and user, both give console errors:

Unable to open /Users/boss/Library/Application Support/Sublime Text 3/Packages/Pandoc/Pandoc.sublime-settings
Unable to open /Users/boss/Library/Application Support/Sublime Text 3/Packages/User/Pandoc.sublime-settings

I don't have a folder for the Pandoc package with my other packages in /Users/boss/Library/Application Support/Sublime Text 3/Packages/ either.

Hoping someone has some ideas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants