grimmer0125 / markdown-preview-kramdown

An Atom package which lets you preview Kramdown files (a kind of markdown and used by GitHub Pages). It is modified from Markdown Preview. https://atom.io/packages/markdown-preview-kramdown
MIT License
5 stars 0 forks source link

Add setting for ruby command path #6

Open mdesantis opened 5 years ago

mdesantis commented 5 years ago

I installed Ruby using asdf, but ruby command used by this extension is hardcoded, so the preview doesn't work, the Atom Developer console prints the following error:

<embedded>:14 Uncaught Error: Failed to spawn command `ruby`. Make sure `ruby` is installed and on your PATH
    at BufferedProcess.handleError (/usr/share/atom/resources/app/static/<embedded>:14:1036932)
    at ChildProcess.process.on.e (/usr/share/atom/resources/app/static/<embedded>:14:1036767)
    at emitOne (events.js:116:13)
    at ChildProcess.emit (events.js:211:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

It would be nice to have a setting in order to set ruby path, so I could use $HOME/.asdf/shims/ruby