Git Product home page Git Product logo

atom-rst-preview's Introduction

ReStructuredText Preview package

Show the rendered HTML rst to the right of the current editor using ctrl-shift-r

It can be activated from the editor using the ctrl-shift-r key-binding and is currently enabled for .rst files.

Installing

This package requires Pandoc to run. You can install Pandoc from:

https://github.com/jgm/pandoc/releases

Workaround on OSX for pandoc could not be spawned error

If launching Atom from the OSX dock rather than from the terminal, you might see a path problem where /usr/local/bin is not loaded into the path causing pandoc not to be found.

'pandoc' could not be spawned. 
Is it installed and on your path? 
If so please open an issue on the package spawning the process.

This is a current bug in Atom.

Until this atom bug is fixed, a workaround is to add the following config to the ~/.atom/init.coffee file the relaunch from the OSX dock:

process.env.PATH = ["/usr/bin",
                    "/usr/local/bin",
                    ].join(":")

atom-rst-preview's People

Contributors

benogle avatar defeated avatar geekpete avatar gjtorikian avatar itsbenweeks avatar jonrohan avatar kaystrobach avatar kevinnathan avatar kevinsawicki avatar lsegal avatar mcolyer avatar mtdowling avatar mutle avatar oyarzun avatar probablycorey-and-nathan avatar probablykevin avatar uzyn avatar yurimalheiros avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atom-rst-preview's Issues

Depending on how atom is launched pandoc might not be found

Seems to be this atom bug where the user's true path config is not loaded correctly depending on how atom is launched:
steelbrain/linter#150

This can manifest with this plugin as an error like:

'pandoc' could not be spawned. 
Is it installed and on your path? 
If so please open an issue on the package spawning the process.

This error is avoided if launching "atom" from the terminal.
But if you then pin the atom icon to the OSX dock, close atom then relaunch it from the OSX dock, the pandoc not found error will occur due to issues loading /usr/local/bin into the path.

Until this atom bug is fixed, a workaround that worked for me was to add the following config to the ~/.atom/init.coffee file the relaunch from the OSX dock:

process.env.PATH = ["/usr/bin",
                    "/usr/local/bin",
                    ].join(":")

This plugin's README file could mention this issue (for OSX users anyway) and suggest the workaround so that users can avoid hitting this path issue with the plugin.

Testing was just to copy/paste this content into a new tab and hitting ctrl-shift-r:
https://raw.githubusercontent.com/ralsina/rst-cheatsheet/master/rst-cheatsheet.rst

Cheers.

Uncaught TypeError: Cannot read property 'match' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.10.2
Electron Version: 0.37.8
System: Mac OS X 10.11.6
Thrown From: rst-preview package, v1.3.1

Stack Trace

Uncaught TypeError: Cannot read property 'match' of undefined

At /Users/brandon/.atom/packages/rst-preview/lib/rst-preview-view.coffee:214

TypeError: Cannot read property 'match' of undefined
    at RstPreviewView.module.exports.RstPreviewView.resolveImagePaths (/Users/a584839/.atom/packages/rst-preview/lib/rst-preview-view.coffee:214:22)
    at RstPreviewView.resolveImagePaths (/Users/a584839/.atom/packages/rst-preview/lib/rst-preview-view.coffee:1:1)
    at Socket.<anonymous> (/Users/a584839/.atom/packages/rst-preview/lib/rst-preview-view.coffee:136:14)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

Commands

     -5:36 core:paste (atom-text-editor.editor.is-focused)
     -5:32.3.0 editor:newline (atom-text-editor.editor.is-focused)
  3x -5:19.4.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -4:59.3.0 editor:newline (atom-text-editor.editor.is-focused)
  9x -4:40.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:58.2.0 core:paste (atom-text-editor.editor.is-focused)
  2x -2:50.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:06.2.0 editor:newline (atom-text-editor.editor.is-focused)
  2x -1:45 core:backspace (atom-text-editor.editor.is-focused)
     -1:17 editor:newline (atom-text-editor.editor.is-focused)
  3x -1:04.2.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:42.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:40.6.0 find-and-replace:show (atom-text-editor.editor.is-focused)
     -0:39.5.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  2x -0:37.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  4x -0:02.9.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{}

Installed Packages

# User
atom-python-run, v0.5.1 (active)
autocomplete-python, v1.8.6 (active)
language-restructuredtext, v1.0.0 (active)
python-tools, v0.6.8 (active)
rst-preview, v1.3.1 (active)
rst-preview-pandoc, v0.1.12 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.5.0 (active)
one-light-ui, v1.5.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.3 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
find-and-replace, v0.201.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.2 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.65.0 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.0 (active)
tabs, v0.100.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.208.2 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Atom.Object.defineProperty.get is deprecated.

Following was reported by "Deprecation Cop"

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/opt/atom/resources/app/src/atom.js:53:11)
Object.activate (/home/mandar/.atom/packages/rst-preview/lib/rst-preview.coffee:16:9)

Live Update Flashing

When I enabled live update, whenever I changed the source file, the preview panel flashes with a github symbol and "loading rst", which becomes very distractive and I had to disable the live update mode. Are there any ways to disable the loading icon or bind a keystroke to update preview? (All I can find is rst preview: toggle, I want something like rst preview: update)

Uncompatible with latest version again.

npm ERR! Darwin 16.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/xxxx/.atom/.apm/.apmrc" "--userconfig" "/Users/xxxx/.atom/.apmrc" "rebuild" "--runtime=electron" "--target=1.3.9" "--arch=x64"
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! file sh
npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs oniguruma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.
npm ERR! Darwin 16.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/xxxx/.atom/.apm/.apmrc" "--userconfig" "/Users/xxx/.atom/.apmrc" "rebuild" "--runtime=electron" "--target=1.3.9" "--arch=x64"
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status -2
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs oniguruma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/xxxx/.atom/packages/rst-preview/npm-debug.log

Live Preview doesn't fit to the code

The scroll state of the Live Preview doesn't fit to the current selected code line.
When I add new code, the Live Preview re-rendering all stuff and jump back to the top. This makes it unpossible to work with it efficient.

This happen in vertical and horizontal pane split.

Using Atom 1.0.0 on Kubuntu 14.04.2, with pandoc 1.12.2.1 (Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1).

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:55:11)
Object.activate (/home/fernando/.atom/packages/rst-preview/lib/rst-preview.coffee:16:9)

no longer compatible with Atom 0.208 and Node 1.5.1

This is what I see after updating Atom to 0.208 and having rst-preview 1.3.0 installed:

The following packages could not be loaded because they contain native modules that aren't compatible with this version of Atom.

Previous Atom versions shipped with Chrome 31 and Node 0.11.10 but Atom now ships with Chrome 41.0.2272.76 and Node 1.5.1.

The packages listed should now ship versions of these native modules that are compatible with Node 1.5.1.

Updates for these packages may already be available that resolve this issue.

If no update is available you may want to notify the package author that their package isn't supported in Atom 0.208.0 because of the Chrome 41.0.2272.76 and Node 1.5.1 upgrade.

If you think a package is listed here and should no longer be, click the button below to reload Atom and recheck all packages.

Listed below are the incompatible native modules that this package depends on.

[email protected]
Error message: Module version mismatch. Expected 43, got 41.
[email protected]
Error message: Module version mismatch. Expected 43, got 41.
[email protected]
Error message: Module version mismatch. Expected 43, got 41.

Failed to activate the rst-preview package

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.196.0
System: Mac OS X 10.10.4
Thrown From: rst-preview package, v1.1.0

Stack Trace

Failed to activate the rst-preview package

At Module version mismatch. Expected 43, got 17.

Error: Module version mismatch. Expected 43, got 17.
  at Error (native)
  at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:118:20)
  at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:118:20)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/node_modules/pathwatcher/lib/main.js:6:13)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/node_modules/pathwatcher/lib/main.js:207:4)
  at Module._compile (module.js:452:26)
  at Object.loadFile [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/babel.js:162:21)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/lib/rst-preview-view.coffee:4:10)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/lib/rst-preview-view.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/lib/rst-preview.coffee:4:18)
  at Object.<anonymous> (/Users/bmiller/.atom/packages/rst-preview/lib/rst-preview.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:691:34)
  at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:239:12)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:218:14)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:754:25
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:219:20)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands

     -0:00.8.0 rst-preview:show (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "seti-syntax"
    ]
  },
  "rst-preview": {
    "grammars": [
      "text.restructuredtext"
    ]
  }
}

Installed Packages

# User
atom-jinja2, v0.5.0
command-logger, v0.23.0
htmlhint, v1.1.2
language-latex, v0.6.1
language-restructuredtext, v0.5.0
latex, v0.23.0
linter, v0.12.1
rst-preview, v1.1.0
script, v2.21.0
seti-syntax, v0.4.0
seti-ui, v0.7.1
web-view, v0.3.0

# Dev
No dev packages

The table fo contents is not included in the preview

If the .rst file contains the standad .. contents:: directive, the TOC is not shipped inside the preview.
I'm not a pandoc expert, but seems this is possibile by adding the --toc parameter on invocation:

pandoc -s --toc README.rst -o README.html

Can this be fixed someway in the preview plugin?

can not handle table-sub-lines

This code isn't rendered correct

========= ===== =======
snapshot2
-----------------------
path      inode counter
========= ===== =======
``fileA`` 1     2
``fileB`` 6     1
``fileD`` 5     2
========= ===== =======

Line Nr 5 (the second ====) is not render. It is just added as a table entry.
Different rst-Editors rendering that correct.

Using Atom 1.0.0 on Kubuntu 14.04.2, with pandoc 1.12.2.1 (Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1).

Live preview not working Atom 1.0.11

Hi,

the live preview does not work on atom 1.0.11, on OSX. When pressing control+shift r nothing is happening, no error, just really nothing.

Automatically scroll window to the bottom

Intro

I found this annoying issue using the plugin for writing a long RST text, so not esactly the usage for a development environment. Still, I'll try to report this.

Behavior

Every time you write an additional character inside the rst file window, the preview window is automatically refreshed (which is cool) but also scrolls to the top of the window. So, when you are writing something below the line, the auto-refresh become useless, and annoying.

Probably a better behavior would be to scroll to the bottom, as usually people write bottom-down.
Or even better: keep the focus onto the modified section (possible?)

Object.basename is deprecated.

Arguments to path.basename must be strings

Object.basename (/usr/share/atom/resources/app.asar/src/electron-shims.js:31:10)
RstPreviewView.getTitle (/home/stacks/.atom/packages/rst-preview/lib/rst-preview-view.coffee:266:22)
TabView.updateTitle (<embedded>:121709:33)
<unknown> (<embedded>:121453:30)
Function.module.exports.Emitter.simpleDispatch (<embedded>:68128:20)
Emitter.emit (<embedded>:68244:34)

Uncaught TypeError: path must be a string

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: rst-preview package, v1.3.0

Stack Trace

Uncaught TypeError: path must be a string

At fs.js:532

TypeError: path must be a string
  at TypeError (native)
  at Object.fs.open (fs.js:535:11)
  at Object.module.(anonymous function) [as open] (ATOM_SHELL_ASAR.js:144:20)
  at ReadStream.open (fs.js:1668:6)
  at new ReadStream (fs.js:1655:10)
  at Object.fs.createReadStream (fs.js:1610:10)
  at File.module.exports.File.read (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/file.js:295:27)
  at RstPreviewView.module.exports.RstPreviewView.renderRst (/Users/zirony/.atom/packages/rst-preview/lib/rst-preview-view.coffee:127:13)
  at RstPreviewView.module.exports.RstPreviewView.subscribeToFilePath (/Users/zirony/.atom/packages/rst-preview/lib/rst-preview-view.coffee:56:6)
  at RstPreviewView.module.exports.RstPreviewView.attached (/Users/zirony/.atom/packages/rst-preview/lib/rst-preview-view.coffee:29:10)
  at space-pen-div.View.element.attached (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:164:63)
  at space-pen-div.CustomElementPrototype.attachedCallback (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:51:55)
  at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-element.js:150:24)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:238:22)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:302:21)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:479:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:817:14
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:357:13)
  at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:110:29)
  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/context-menu-manager.js:170:31)
  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:150:33)
  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:112:34)
  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4681:9)
  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4359:46)

Commands

     -9:26.1.0 tree-view:collapse-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -8:57.5.0 core:close (atom-text-editor.editor.is-focused)
     -8:23.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -6:52.1.0 core:copy (atom-notification.error.icon.icon-flame.native-key-bindings.has-close)
     -6:41.1.0 core:close (atom-text-editor.editor.is-focused)
     -5:48.5.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -5:46.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:08.3.0 core:close (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "rst-preview": {}
}

Installed Packages

# User
rst-preview, v1.3.0

# Dev
No dev packages

CSP Permission Issue.

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".

This seems to be thrown when the extension tries to preview an RST file with emails in it.

Installation fails with latest atom

The error I get is:

> [email protected] install /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

In file included from ../src/main.cc:1:
../../nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:622:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:617:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../../nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1900:8: note: 'IsExternal' declared here
  bool IsExternal() const;
       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
    ext = str->GetExternalAsciiStringResource();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               GetExternalOneByteStringResource
/Users/alex_gaynor/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:2003:40: note: 'GetExternalOneByteStringResource' declared here
  const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
                                       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:1995:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
    ext = str->GetExternalAsciiStringResource();
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1996:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
    *data = ext->data();
          ^ ~~~~~~~~~~~
7 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/apm-install-dir-115112-91841-xeluzo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 14.1.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/alex_gaynor/.atom/.apmrc" "install" "/private/var/folders/gk/0k_8m9ts55b7vtygl4c5x39c0000gn/T/d-115112-91841-10puehl/package.tgz" "--target=0.21.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas

Unable to install via Atom

Unable to install via Atom's 'Install Packages'. Thanks.

> [email protected] install /tmp/apm-install-dir-1141121-11374-qhib8k/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: Entering directory `/tmp/apm-install-dir-1141121-11374-qhib8k/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
make: Leaving directory `/tmp/apm-install-dir-1141121-11374-qhib8k/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas/build'

npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http 304 https://registry.npmjs.org/pathwatcher/0.16.0
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/nan/0.8.0
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/q
In file included from ../src/main.cc:1:0:
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:339:13: note: in expansion of macro ‘_NAN_ERROR’
     return  _NAN_ERROR(v8::Exception::Error, errmsg);
             ^
../../nan/nan.h: In function ‘void NanThrowError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
     ^
../../nan/nan.h: In function ‘void NanThrowError(v8::Handle<v8::Value>)’:
../../nan/nan.h:348:5: error: ‘ThrowException’ is not a member of ‘v8’
     v8::ThrowException(error);
     ^
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*, int)’:
../../nan/nan.h:355:53: error: ‘New’ is not a member of ‘v8::String’
     v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg));
                                                     ^
../../nan/nan.h:357:14: error: ‘New’ is not a member of ‘v8::String’
     obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
              ^
../../nan/nan.h:357:65: error: no matching function for call to ‘v8::Int32::New(const int&)’
     obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                                                 ^
../../nan/nan.h:357:65: note: candidate is:
In file included from /home/tom/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0,
                 from ../../nan/nan.h:134,
                 from ../src/main.cc:1:
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/main.cc:1:0:
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanTypeError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:369:12: note: in expansion of macro ‘_NAN_ERROR’
     return _NAN_ERROR(v8::Exception::TypeError, errmsg);
            ^
../../nan/nan.h: In function ‘void NanThrowTypeError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
     ^
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanRangeError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:377:12: note: in expansion of macro ‘_NAN_ERROR’
     return _NAN_ERROR(v8::Exception::RangeError, errmsg);
            ^
../../nan/nan.h: In function ‘void NanThrowRangeError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
     ^
../../nan/nan.h: In constructor ‘NanCallback::NanCallback()’:
../../nan/nan.h:727:49: error: no matching function for call to ‘v8::Object::New()’
     v8::Local<v8::Object> obj = v8::Object::New();
                                                 ^
../../nan/nan.h:727:49: note: candidate is:
In file included from /home/tom/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0,
                 from ../../nan/nan.h:134,
                 from ../src/main.cc:1:
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note:   candidate expects 1 argument, 0 provided
In file included from ../src/main.cc:1:0:
../../nan/nan.h: In constructor ‘NanCallback::NanCallback(const v8::Handle<v8::Function>&)’:
../../nan/nan.h:733:49: error: no matching function for call to ‘v8::Object::New()’
     v8::Local<v8::Object> obj = v8::Object::New();
                                                 ^
../../nan/nan.h:733:49: note: candidate is:
In file included from /home/tom/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0,
                 from ../../nan/nan.h:134,
                 from ../src/main.cc:1:
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:24: note:   candidate expects 1 argument, 0 provided
In file included from ../src/main.cc:1:0:
../../nan/nan.h: In destructor ‘NanCallback::~NanCallback()’:
../../nan/nan.h:740:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’
     handle.Dispose();
            ^
../../nan/nan.h:741:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
     handle.Clear();
            ^
../../nan/nan.h: In member function ‘void NanCallback::SetFunction(const v8::Handle<v8::Function>&)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:746:39: note: in expansion of macro ‘NanSymbol’
     NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                       ^
../../nan/nan.h: In member function ‘v8::Local<v8::Function> NanCallback::GetFunction()’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:750:46: note: in expansion of macro ‘NanSymbol’
     return NanPersistentToLocal(handle)->Get(NanSymbol("callback"))
                                              ^
../../nan/nan.h:751:25: error: expected primary-expression before ‘>’ token
         .As<v8::Function>();
                         ^
../../nan/nan.h:751:27: error: expected primary-expression before ‘)’ token
         .As<v8::Function>();
                           ^
../../nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Handle<v8::Value>*)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:759:13: note: in expansion of macro ‘NanSymbol’
         Get(NanSymbol("callback")).As<v8::Function>();
             ^
../../nan/nan.h:759:51: error: expected primary-expression before ‘>’ token
         Get(NanSymbol("callback")).As<v8::Function>();
                                                   ^
../../nan/nan.h:759:53: error: expected primary-expression before ‘)’ token
         Get(NanSymbol("callback")).As<v8::Function>();
                                                     ^
../../nan/nan.h:761:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’
         v8::Context::GetCurrent()->Global()
         ^
../../nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char*, v8::Local<v8::Object>&)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:808:17: note: in expansion of macro ‘NanSymbol’
     handle->Set(NanSymbol(key), obj);
                 ^
../../nan/nan.h: In member function ‘v8::Local<v8::Object> NanAsyncWorker::GetFromPersistent(const char*)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:815:24: note: in expansion of macro ‘NanSymbol’
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                        ^
../../nan/nan.h:815:53: error: expected primary-expression before ‘>’ token
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                                                     ^
../../nan/nan.h:815:55: error: expected primary-expression before ‘)’ token
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                                                       ^
../../nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
../../nan/nan.h:837:30: error: ‘New’ is not a member of ‘v8::String’
         v8::Exception::Error(v8::String::New(errmsg))
                              ^
../src/main.cc: In function ‘void {anonymous}::Runas(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/main.cc:28:22: error: ‘New’ is not a member of ‘v8::String’
   if (v_options->Get(String::New("hide"))->BooleanValue())
                      ^
../src/main.cc:30:22: error: ‘New’ is not a member of ‘v8::String’
   if (v_options->Get(String::New("admin"))->BooleanValue())
                      ^
../src/main.cc:34:42: error: ‘New’ is not a member of ‘v8::String’
   Handle<Value> v_stdin = v_options->Get(String::New("stdin"));
                                          ^
In file included from ../src/main.cc:1:0:
../src/main.cc:40:35: error: no matching function for call to ‘v8::Integer::New(int&)’
   NanReturnValue(Integer::New(code));
                                   ^
../../nan/nan.h:301:65: note: in definition of macro ‘NanReturnValue’
 # define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                 ^
../src/main.cc:40:35: note: candidate is:
   NanReturnValue(Integer::New(code));
                                   ^
../../nan/nan.h:301:65: note: in definition of macro ‘NanReturnValue’
 # define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                 ^
In file included from /home/tom/.atom/.node-gyp/.node-gyp/0.18.0/src/node.h:61:0,
                 from ../../nan/nan.h:134,
                 from ../src/main.cc:1:
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/tom/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2012:25: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/main.cc:1:0:
../../nan/nan.h:301:70: error: return-statement with a value, in function returning 'void' [-fpermissive]
 # define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                      ^
../src/main.cc:40:3: note: in expansion of macro ‘NanReturnValue’
   NanReturnValue(Integer::New(code));
   ^
../../nan/nan.h: In instantiation of ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&) [with T = v8::Object]’:
../../nan/nan.h:786:44:   required from here
../../nan/nan.h:394:5: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
     handle.Clear();
     ^
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-43-lowlatency
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-1141121-11374-qhib8k/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-43-lowlatency
npm ERR! command "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/tom/.atom/.apmrc" "install" "/home/tom/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.18.0" "--arch=x64"
npm ERR! cwd /tmp/apm-install-dir-1141121-11374-qhib8k
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/property-accessors
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/apm-install-dir-1141121-11374-qhib8k/npm-debug.log
npm ERR! not ok code 0

could not install package

for me installation fails with the following detailed message:

> [email protected] install /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild


npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/fs-plus
npm http 200 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http 200 https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/runas
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/q
npm http 200 https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/emissary/-/emissary-1.2.1.tgz
npm http 200 https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/runas
npm http 200 https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/emissary/-/emissary-1.2.1.tgz
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! Error: ENOENT, lstat '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/lambdamix/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.js
npm ERR! fstream_path /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/q/benchmark/compare-with-callbacks.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/node_modules/rst-preview/node_modules/pathwatcher/node_modules/nan' }
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/lambdamix/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/mixto
npm http 200 https://registry.npmjs.org/property-accessors
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/wz/07_n9qk90h55f7s3w1p2n5yc0000gn/T/apm-install-dir-11437-1025-pjlivo/npm-debug.log
npm ERR! not ok code 0

Atom.Object.defineProperty.get is deprecated.

The atom.syntax global is deprecated. Use atom.grammars instead.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:316:11)
RstPreviewView.handleEvents (/home/fernando/.atom/packages/rst-preview/lib/rst-preview-view.coffee:53:20)

Cannot install package

I cannot install the Package. I hit on install within atom but after a while nothing happens and the button appears clickable again. I tried installing other package and it did worked.

I have a windows 10 machine.

Installation failed

Hello,

I can't install the plugin.

Microsoft Windows 10
Atom 1.15.0 x64
pandoc 1.19.2.1
language-restructuredtext 1.0.2

First I tried to install it with the built-in package installer and then with "apm".
Here is the log from Windows PowerShell:

PS C:\Users\Xanarkan\AppData\Local\atom\bin> apm install rst-preview
Installing rst-preview to C:\Users\Xanarkan\.atom\packages failed

> [email protected] install C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8\node_modules\rst-preview\node_modules\oniguruma
> node-gyp rebuild


C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8\node_modules\rst-preview\node_modules\oniguruma>if not defined npm_config_node_gyp (node "C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\nod
e_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8
`-- (empty)


npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
(node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at TLSSocket.addListener (events.js:239:17)
    at TLSSocket.Readable.on (_stream_readable.js:673:33)
    at Request.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\npm-registry-client\lib\request.js:153:7)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at ClientRequest.<anonymous> (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\request\request.js:837:10)
    at emitOne (events.js:82:20)
    at ClientRequest.emit (events.js:169:7)
    at tickOnSocket (_http_client.js:502:7)
    at onSocketNT (_http_client.js:514:5)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack     at C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack     at C:\Users\Xanarkan\AppData\Local\atom\app-1.15.0\resources\app\apm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Users\\Xanarkan\\AppData\\Local\\atom\\app-1.15.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Xanarkan\\AppData\\Local\\atom\\app-1.15.0\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8\node_modules\rst-preview\node_modules\oniguruma
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8\package.json'
npm WARN apm-install-dir-11736-10868-1durza8 No description
npm WARN apm-install-dir-11736-10868-1durza8 No repository field.
npm WARN apm-install-dir-11736-10868-1durza8 No README data
npm WARN apm-install-dir-11736-10868-1durza8 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\Xanarkan\\AppData\\Local\\atom\\app-1.15.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Xanarkan\\AppData\\Local\\atom\\app-1.15.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Xanarkan\\.atom\\.apm\\.ap
mrc" "--userconfig" "C:\\Users\\Xanarkan\\.atom\\.apmrc" "install" "C:\\Users\\Xanarkan\\AppData\\Local\\Temp\\d-11736-10868-1wo44yc\\package.tgz" "--runtime=electron" "--target=1.3.13" "--arch=x64" "--global-style"
npm ERR! node v4.4.5
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs oniguruma
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Xanarkan\AppData\Local\Temp\apm-install-dir-11736-10868-1durza8\npm-debug.log
npm ERR! code 1

PS C:\Users\Xanarkan\AppData\Local\atom\bin>

Installation crashes on mavericks macbook air

Hi there,

Before I go any further, thank you so much for Yard - it's a wonderful, wonderful documentation tool.

I'm working on python project, and I've started using RST, so this plugin looked like it would offer the workflow I've come to know and enjoy with Atom, but I get the error below I try to install it via the GUI, or via apm install rst-preview on my macbook.

I'm using atom version 0.141.0 (0.141.0), and I'm running OS X 10.9.5, and I'm using pandoc 1.13.1, installed via homebrew:

$ pandoc -v
pandoc 1.13.1
Compiled with texmath 0.8, highlighting-kate 0.5.9.
Syntax highlighting is supported for the following languages:
    abc, actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c,
    changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css,
    curry, d, diff, djangotemplate, dot, doxygen, doxygenlua, dtd, eiffel,
    email, erlang, fasm, fortran, fsharp, gcc, glsl, gnuassembler, go, haskell,
    haxe, html, ini, isocpp, java, javadoc, javascript, json, jsp, julia, latex,
    lex, lilypond, literatecurry, literatehaskell, lua, m4, makefile, mandoc,
    markdown, mathematica, matlab, maxima, mediawiki, metafont, mips, modelines,
    modula2, modula3, monobasic, nasm, noweb, objectivec, objectivecpp, ocaml,
    octave, opencl, pascal, perl, php, pike, postscript, prolog, pure, python,
    r, relaxng, relaxngcompact, rest, rhtml, roff, ruby, rust, scala, scheme,
    sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl, tcsh, texinfo, verilog,
    vhdl, xml, xorg, xslt, xul, yacc, yaml, zsh
Default user data directory: /Users/chrisadams/.pandoc
Copyright (C) 2006-2014 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

Here's the error output when I try to install on the shell. I'm using zsh as my main shell:


$ apm install rst-preview
Installing rst-preview to /Users/chrisadams/.atom/packages ✗

> [email protected] install /private/var/folders/vj/7ygd20gx701d7xzn2rh3n9j40000gn/T/apm-install-dir-114103-98003-13yhye1/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o

npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/nan/0.8.0
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/q
In file included from ../src/main.cc:1:
../../nan/nan.h:339:13: error: no member named 'New' in 'v8::String'
    return  _NAN_ERROR(v8::Exception::Error, errmsg);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../../nan/nan.h:343:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:348:9: error: no type named 'ThrowException' in namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
../../nan/nan.h:355:65: error: no member named 'New' in 'v8::String'
    v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg));
                                                    ~~~~~~~~~~~~^
../../nan/nan.h:357:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
../../nan/nan.h:369:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:373:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../../nan/nan.h:373:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:377:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:381:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../../nan/nan.h:381:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                     ~~~~~~~~~~~~^
../../nan/nan.h:727:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/chrisadams/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:733:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Local<v8::Object> obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/chrisadams/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate* isolate);
  ^
In file included from ../src/main.cc:1:
../../nan/nan.h:740:12: error: no member named 'Dispose' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Dispose();
    ~~~~~~ ^
../../nan/nan.h:741:12: error: no member named 'Clear' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Clear();
    ~~~~~~ ^
../../nan/nan.h:746:39: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'?
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/chrisadams/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:1379:8: note: 'IsSymbol' declared here
  bool IsSymbol() const;
       ^
In file included from ../src/main.cc:1:
../../nan/nan.h:746:39: error: call to non-static member function without an object argument
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^~~~~~~~~
../../nan/nan.h:750:46: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'?
    return NanPersistentToLocal(handle)->Get(NanSymbol("callback"))
                                             ^~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/chrisadams/.atom/.node-gyp/.node-gyp/0.18.0/deps/v8/include/v8.h:1379:8: note: 'IsSymbol' declared here
  bool IsSymbol() const;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/vj/7ygd20gx701d7xzn2rh3n9j40000gn/T/apm-install-dir-114103-98003-13yhye1/node_modules/rst-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/property-accessors
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.4.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/chrisadams/.atom/.apmrc" "install" "/Users/chrisadams/.atom/.node-gyp/.atom/.apm/rst-preview/1.0.2/package.tgz" "--target=0.18.0" "--arch=x64"
npm ERR! cwd /private/var/folders/vj/7ygd20gx701d7xzn2rh3n9j40000gn/T/apm-install-dir-114103-98003-13yhye1
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/vj/7ygd20gx701d7xzn2rh3n9j40000gn/T/apm-install-dir-114103-98003-13yhye1/npm-debug.log
npm ERR! not ok code 0

I'd like to make this bug report better, but I'm not sure what info would be helpful - would you let me know what other information would be useful for me to add, to work out what is happening here?

Thanks again for Yard :)

Cannot install package on Windows 7, Atom v. 0.106.0-88df4d2

When I attempt to install the rst preview I receive the following error message.

> [email protected] install C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild


C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\node_modules\runas>node "c:\Tools\Atom\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cc
  runas_win.cc
     Creating library C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\node_modules\runas\build\Release\runas.lib and object C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\node_modules\runas\build\Release\runas.exp
  Generating code
  Finished generating code
  runas.vcxproj -> C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\node_modules\runas\build\Release\\runas.node

> [email protected] install C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher
> node-gyp rebuild


C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher>node "c:\Tools\Atom\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cc
  handle_map.cc
  pathwatcher_win.cc
  common.cc
..\src\pathwatcher_win.cc(298): error C3861: 'CancelIoEx': identifier not found [C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed\node_modules\rst-preview\node_modules\pathwatcher\build\pathwatcher.vcxproj]

npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/nan/0.8.0
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/property-accessors
gypnpm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pathwatcher package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pathwatcher
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\rtaylor\\.atom\\.apmrc" "install" "C:\\Users\\rtaylor\\.atom\\.node-gyp\\.atom\\.apm\\rst-preview\\1.0.2\\package.tgz" "--target=0.11.10" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\Users\rtaylor\AppData\Local\Temp\apm-install-dir-11462-7684-1p4h8ed
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm

dark theme

is there a way to toggle the preview to use a dark theme like the markdown previewer?

Installation error

[email protected] install /private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/apm-install-dir-116217-13744-1h7ofs4/node_modules/rst-preview/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
node-gyp rebuild

npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
npm ERR! Darwin 15.3.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/manel/.atom/.apm/.apmrc" "--userconfig" "/Users/manel/.atom/.apmrc" "install" "/private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/d-116217-13744-q9xdnu/package.tgz" "--target=0.34.5" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/69/967xtl1x08jf3rxsgvcnhtl80000gn/T/apm-install-dir-116217-13744-1h7ofs4/npm-debug.log

Uncaught TypeError: atom.project.getPath is not a function

[Enter steps to reproduce:]

  1. open preview for .rst file
  2. select Save as HTML option

Atom: 1.21.2 x64
Electron: 1.6.15
OS: Mac OS X 10.12.6
Thrown From: rst-preview package 1.3.1

Stack Trace

Uncaught TypeError: atom.project.getPath is not a function

At /Users/Eva/.atom/packages/rst-preview/lib/rst-preview-view.coffee:196

TypeError: atom.project.getPath is not a function
    at RstPreviewView.module.exports.RstPreviewView.saveAs (/packages/rst-preview/lib/rst-preview-view.coffee:196:37)
    at /packages/rst-preview/lib/rst-preview-view.coffee:91:10)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:381:36)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:266:23)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1354:34)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:348:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

     -0:49.2.0 core:paste (input.hidden-input)
     -0:39.7.0 rst-preview:toggle (input.hidden-input)
     -0:34.9.0 core:copy (p.)
     -0:34.5.0 core:select-all (div.rst-preview.native-key-bindings)
     -0:32.2.0 core:cancel (div.rst-preview.native-key-bindings)
     -0:22.1.0 core:copy (p.)
     -0:18.7.0 application:new-file (div.rst-preview.native-key-bindings)
     -0:18.2.0 core:paste (input.hidden-input)
     -0:07.5.0 core:save-as (p.)

Non-Core Packages

atom-html-preview 0.2.2 
block-travel 1.0.5 
language-confluence-wiki 0.2.0 
language-restructuredtext 1.1.0 
language-vbscript 0.9.0 
markdown-themeable-pdf 1.2.0 
rst-preview 1.3.1 
tree-view-git-branch 0.1.2 
wordcount 2.10.4 

Installation not successful, node-gyp rebuild fails

I tried to install rst-preview 1.3.1, and got this output:

Installing “[email protected]” failed.Hide output…

> [email protected] install C:\Users\buchner\AppData\Local\Temp\apm-install-dir-115113-4796-b86x17\node_modules\rst-preview\node_modules\highlights\node_modules\first-mate\node_modules\oniguruma
> node-gyp rebuild


C:\Users\buchner\AppData\Local\Temp\apm-install-dir-115113-4796-b86x17\node_modules\rst-preview\node_modules\highlights\node_modules\first-mate\node_modules\oniguruma>if not defined npm_config_node_gyp (node "C:\Users\buchner\AppData\Local\atom\app-1.2.4\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 

npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^3.0.0.
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\buchner\\AppData\\Local\\atom\\app-1.2.4\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\buchner\\AppData\\Local\\atom\\app-1.2.4\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\buchner\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\buchner\\.atom\\.apmrc" "install" "C:\\Users\\buchner\\AppData\\Local\\Temp\\d-115113-4796-1c26h3r\\package.tgz" "--target=0.34.0" "--arch=ia32"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

This is on Windows 8.1, atom 1.2.4, pandoc 1.15.2

Preview is failing

Installed in Atom 0.93 version from GUI
Got no errors or warnings but when trying to display sample.rst file in preview (control+shift r) it opens empty white panel on the right
Console says

Uncaught Error: spawn ENOENT util.js:682
exports._errnoException util.js:682
ChildProcess._handle.onexit child_process.js:857
(anonymous function) child_process.js:1005
_tickCallback

Preview is not triggered by a shortcut or from the menu

If I hit Ctrl+Shift+R on a .rst document, nothing happens. If I press Ctrl+Shift+P, search for "rst" and hit Enter on "Rst Preview: Toggle" menu item, nothing happens. But if I right click on the file name in the filesystem tree (it really has to be on the file name, not just anywhere on the line), there's "ReStructuredText Preview" menu item as the first one in the list, and that one works - a preview is displayed.

I wonder why that is? No errors in the terminal.

rst-preview 1.3.0
atom-0.199.0-0.1.fc21.x86_64

Preview incorrectly renders external links

When creating an external link using:

`Python version 2.7.10<https://www.python.org/downloads/release/python-2710/>`_

The preview will incorrectly render the hyperlink to the label, i.e. Python version 2.7.10

I'm not sure that this is a correct render. When compiled using Sphinx and deployed to GitHub, it is rendered to display Python version 2.7.10<https://www.python.org/downloads/release/python-2710/> instead. I believe the hyperlink should only render to the label when a space is inserted between the label and the link, as follows:

`Python version 2.7.10 <https://www.python.org/downloads/release/python-2710/>`_

This correctly displays the render on GitHub as Python version 2.7.10.

Sphinx docs points out that:

Important
There must be a space between the link text and the opening < for the URL.

Atom.Object.defineProperty.get is deprecated.

Following was reported by Deprecation Cop

The atom.syntax global is deprecated. Use atom.grammars instead.

Atom.Object.defineProperty.get (/opt/atom/resources/app/src/atom.js:314:11)
RstPreviewView.handleEvents (/home/mandar/.atom/packages/rst-preview/lib/rst-preview-view.coffee:53:20)

Promise.done is deprecated.

Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done

Promise.done (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1214:5)
Object.addPreviewForEditor (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:140:10)
Object.toggle (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:116:21)
atom-workspace.atom.commands.add.rst-preview:toggle (/Users/Andy/.atom/packages/rst-preview/lib/rst-preview.coffee:54:26)
CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59)

Uncaught Error: write EPIPE

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.22.0 x64
Electron: 1.6.15
OS: Microsoft Windows 7 Professional
Thrown From: rst-preview package 1.3.1

Stack Trace

Uncaught Error: write EPIPE

At events.js:160

Error: write EPIPE
    at exports._errnoException (util.js:1022:11)
    at Socket._writeGeneric (net.js:715:26)
    at Socket._write (net.js:734:8)
    at doWrite (_stream_writable.js:332:12)
    at writeOrBuffer (_stream_writable.js:318:5)
    at Socket.Writable.write (_stream_writable.js:245:11)
    at Socket.write (net.js:661:40)
    at RstPreviewView.module.exports.RstPreviewView.renderRstText (/packages/rst-preview/lib/rst-preview-view.coffee:137:17)
    at RstPreviewView.module.exports.RstPreviewView.renderRst (/packages/rst-preview/lib/rst-preview-view.coffee:128:8)
    at /packages/rst-preview/lib/rst-preview-view.coffee:64:10
    at RstPreviewView.module.exports.RstPreviewView.resolveEditor (/packages/rst-preview/lib/rst-preview-view.coffee:71:7)
    at RstPreviewView.module.exports.RstPreviewView.attached (/packages/rst-preview/lib/rst-preview-view.coffee:25:8)
    at HTMLDivElement.View.element.attached (/packages/rst-preview/node_modules/space-pen/lib/space-pen.js:164:63)
    at HTMLDivElement.CustomElementPrototype.attachedCallback (/packages/rst-preview/node_modules/space-pen/lib/space-pen.js:51:55)
    at HTMLElement.PaneElement.activeItemChanged (/app.asar/src/pane-element.js:156:24)
    at Function.module.exports.Emitter.simpleDispatch (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at Pane.setActiveItem (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/src/pane.js:435:26)
    at Pane.addItem (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/src/pane.js:636:43)
    at Pane.activateItem (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/src/pane.js:574:18)
    at Workspace.<anonymous> (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/src/workspace.js:1175:20)
    at Generator.next (<anonymous>)
    at step (C:/ProgramData/v.pascual/atom/app-1.22.0/resources/app/src/workspace.js:11:279)

Commands

  4x -2:56.2.0 core:move-left (input.hidden-input)
     -2:55.3.0 core:move-right (input.hidden-input)
  8x -2:55 core:backspace (input.hidden-input)
  3x -2:49.2.0 core:move-right (input.hidden-input)
 22x -2:48.5.0 core:select-left (input.hidden-input)
     -2:46.1.0 core:copy (input.hidden-input)
     -2:45.9.0 core:move-down (input.hidden-input)
     -2:45.3.0 core:paste (input.hidden-input)
     -2:45 core:move-down (input.hidden-input)
     -2:44.5.0 core:paste (input.hidden-input)
     -2:44.2.0 core:move-down (input.hidden-input)
     -2:43.7.0 core:paste (input.hidden-input)
     -2:40.3.0 core:save (input.hidden-input)
     -2:08.6.0 github:toggle-git-tab (input.hidden-input)
     -1:47.2.0 editor:newline (input.hidden-input)
  2x -0:34.9.0 rst-preview:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-beautify 0.30.6 
atom-minify 0.8.0 
atom-monokai 0.10.9 
atom-ternjs 0.18.3 
file-icons 2.1.13 
language-restructuredtext 1.1.0 
pandoc 0.2.2 
pandoc-convert 1.1.1 
pretty-json 1.6.4 
rst-preview 1.3.1 
rst-preview-pandoc 0.1.12 

Failed to load the rst-preview package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.17.2 x64
Electron: 1.3.15
OS: Mac OS X 10.11.6
Thrown From: rst-preview package 1.3.1

Stack Trace

Failed to load the rst-preview package

At Cannot find module 'fs-plus'

Error: Cannot find module 'fs-plus'
    at Module._resolveFilename (module.js:455:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:354:1)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:1)
    at /packages/atom-rst-preview-master/lib/rst-preview.coffee:2:6)
    at /packages/atom-rst-preview-master/lib/rst-preview.coffee:1:1)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:1)
    at Object.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:230:1)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:73:1)
    at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:887:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:158:1
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:99:1)
    at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app/src/package.js:144:1)
    at PackageManager.module.exports.PackageManager.loadAvailablePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:562:1)
    at /Applications/Atom.app/Contents/Resources/app/src/package-manager.js:476:1
    at Config.module.exports.Config.transact (/Applications/Atom.app/Contents/Resources/app/src/config.js:321:1)
    at PackageManager.module.exports.PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:470:1)
    at /Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:798:1

Commands

Non-Core Packages

atom-color-highlight 3.0.9 
rst-preview 1.3.1 
auto-indent 0.5.0 
autocomplete-clang 0.10.0 
autocomplete-plus-python-jedi 0.3.6 
autocomplete-python 1.8.54 
color-picker 2.2.5 
column-select 0.2.0 
compare-files 0.8.0 
filetype-color 0.1.4 
fold-functions 0.2.0 
function-name-in-status-bar 0.2.6 
highlight-column 0.5.2 
highlight-line 0.10.2 
highlight-selected 0.9.3 
kite 0.26.0 
language-fortran 2.1.0 
language-julia 0.10.0 
language-rstyle-rsl 1.2.0 
language-rust 0.4.9 
linter 1.11.23 
linter-clang 2.26.0 
linter-cpplint 1.0.1 
linter-rust 0.1.0 
minimap-highlight-selected 4.3.0 
my-package 0.0.0 
python-jedi 0.3.8 
quick-highlight 0.8.1 
rst-preview-pandoc 0.1.12 
script 3.14.1 
seti-syntax 1.1.2 
Sublime-Style-Column-Selection 1.7.3 
terminal-status 1.6.8 
word-count 0.1.0 
you-complete-me 0.7.11 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.