Giter VIP home page Giter VIP logo

asciidoctor-preview's People

Contributors

griffin-stewie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asciidoctor-preview's Issues

addon not compatible with atom 1.2.0?

Rebuilding on atom 1.2.0 fails with the error below.

Is this a compatibility issue or just my wrongdoing?

In file included from ../src/common.h:6:0,
                 from ../src/main.cc:1:
../node_modules/nan/nan.h:260:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../node_modules/nan/nan.h:255:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                         ^
../node_modules/nan/nan.h:660:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../node_modules/nan/nan.h:660:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:664:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../node_modules/nan/nan.h:664:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:671:67: error: no matching function for call to ‘New(v8::Isolate*, const char*&, uint32_t&)’
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../node_modules/nan/nan.h:25:0,
                 from ../src/common.h:6,
                 from ../src/main.cc:1:
/home/saschal/.atom/.node-gyp/.node-gyp/0.34.0/src/node_buffer.h:41:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/home/saschal/.atom/.node-gyp/.node-gyp/0.34.0/src/node_buffer.h:41:40: note:   conversion of argument 3 would be ill-formed:
In file included from ../src/common.h:6:0,
                 from ../src/main.cc:1:
../node_modules/nan/nan.h:671:67: error: invalid conversion from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../node_modules/nan/nan.h:25:0,
                 from ../src/common.h:6,
                 from ../src/main.cc:1:
/home/saschal/.atom/.node-gyp/.node-gyp/0.34.0/src/node_buffer.h:53:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/home/saschal/.atom/.node-gyp/.node-gyp/0.34.0/src/node_buffer.h:53:40: note:   conversion of argument 2 would be ill-formed:
In file included from ../src/common.h:6:0,
                 from ../src/main.cc:1:
../node_modules/nan/nan.h:671:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:675:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), size);
                             ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:682:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
make: *** [Release/obj.target/pathwatcher/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/npm/node_modules/node-gyp/lib/build.js:269: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 Linux 4.2.0-18-lowlatency
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/saschal/.atom/packages/asciidoctor-preview/node_modules/pathwatcher
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

npm ERR! Linux 4.2.0-18-lowlatency
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/saschal/.atom/.apm/.apmrc" "--userconfig" "/home/saschal/.atom/.apmrc" "rebuild" "--target=0.34.0" "--arch=x64"
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 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! Please include the following file with any support request:
npm ERR!     /home/saschal/.atom/packages/asciidoctor-preview/npm-debug.log

Support without Asciidoctor

I don't have Asciidoctor, but I do have Asciidoc.

Maybe you could change the interface to allow people to use asciidoc instead?

I managed to get this to work by changing the command to:
asciidoc -b html5 -d book -a lang=ja -o {{{tempHTMLPath}}} {{{tempSourcePath}}}

This should at least be documented, although I think it would make more sense as a well defined option in the settings. Maybe the command line option should be [Asciidoctor defaults, Asciidoc defaults, custom (with box)]

Previewing AsciiDoc Failed (Mas OS 10.10.4)

Path to asciidoctor executable is set in package preferences. The path to source file mentioned below exists. Cannot figure out which file is missing. I receive the following error:

Command failed: /bin/sh -c asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram -o /var/folders/qz/5450zhp94sxd5gr5nfz00qr00000gn/T/asciidoctor115721-24286-q3lvyd/temp.html /var/folders/qz/5450zhp94sxd5gr5nfz00qr00000gn/T/asciidoctor115721-24286-q3lvyd/InternshipReport.adoc env: bash: No such file or directory

The command works at the command line, if I supply the temp.html and .adoc file.

Error updating Cannot read property 'substr' of null

Uncaught TypeError: Cannot read property 'substr' of null
/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-card.js:709
Show Stack Trace
The error was thrown from the settings-view package. This issue has already been reported.

asciidoctor not found

Hi,

I just installed asciidoctor-preview and it just refuses to find my asciidoctor binary.

I run ruby+asciidoctor in rbenv, and my $PATH is set up correctly, such that I can just fire up a terminal and type asciidoctor and it works. I tried the following:

  1. Under Settings, edited PATH to /home/sagar/.rbenv/shims (the directory where asciidoctor binary is located)
  2. Under Settings, tried to change the command to /home/sagar/.rbenv/shims/asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram -o {{{tempHTMLPath}}} {{{tempSourcePath}}}

Nothing works. The live preview says:

Previewing AsciiDoc Failed

Command failed: /bin/sh -c asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram -o /tmp/asciidoctor115726-30810-jzbp1v/temp.html /tmp/asciidoctor115726-30810-jzbp1v/platforms.adoc /bin/sh: 1: asciidoctor: not found

The funny thing is, if I copy/past the initial /bin/sh -c asciidoctor from the error message into a terminal window, the asciidoctor is found alright.

UPDATE: I was able to solve this by pasting the contents of my $PATH variable under Settings->PATH and simultaneously making the rbenv environment under which I'm running asciidoctor as the global system ruby environment. It would be really good to not have to do the latter (setting the global ruby environment).

Uncaught Error: Unclosed tag at 149

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.21.2 x64
Electron: 1.6.15
OS: Unknown Windows version
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Unclosed tag at 149

At C:\Users\k-matsunuma\.atom\packages\asciidoctor-preview\node_modules\mustache\mustache.js:198

Error: Unclosed tag at 149
    at parseTemplate (/packages/asciidoctor-preview/node_modules/mustache/mustache.js:198:15)
    at Writer.parse (/packages/asciidoctor-preview/node_modules/mustache/mustache.js:450:34)
    at Writer.render (/packages/asciidoctor-preview/node_modules/mustache/mustache.js:465:23)
    at Object.render (/packages/asciidoctor-preview/node_modules/mustache/mustache.js:603:26)
    at /packages/asciidoctor-preview/lib/renderer.coffee:63:22
    at /packages/asciidoctor-preview/lib/renderer.coffee:57:7
    at doneOne (~/AppData/Local/atom/app-1.20.1/resources/app/node_modules/fs-extra/lib/copy/ncp.js:228:16)
    at ~/AppData/Local/atom/app-1.20.1/resources/app/node_modules/fs-extra/lib/copy/ncp.js:121:11
    at ~/AppData/Local/atom/app-1.20.1/resources/app/node_modules/graceful-fs/polyfills.js:239:18
    at FSReqWrap.oncomplete (fs.js:112:15)

Commands

  2x -8:03.2.0 core:move-up (input.hidden-input)
     -7:57.3.0 editor:newline (input.hidden-input)
     -7:55.9.0 core:save (input.hidden-input)
     -7:37.6.0 core:move-up (input.hidden-input)
     -7:37.1.0 editor:newline (input.hidden-input)
  2x -7:33.2.0 core:backspace (input.hidden-input)
     -7:28.6.0 core:page-up (input.hidden-input)
  5x -7:27.6.0 core:backspace (input.hidden-input)
     -7:17.3.0 editor:newline (input.hidden-input)
  5x -7:09.7.0 core:backspace (input.hidden-input)
 10x -7:01.4.0 core:move-left (input.hidden-input)
     -6:58.6.0 core:save (input.hidden-input)
     -0:24.3.0 core:move-left (input.hidden-input)
  3x -0:23 core:move-right (input.hidden-input)
     -0:20.9.0 core:save (input.hidden-input)
     -0:17.3.0 asciidoctor-preview:toggle (input.hidden-input)

Non-Core Packages

asciidoc-assistant 0.2.2 
asciidoc-image-helper 1.0.0 
asciidoc-preview 2.10.3 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
language-asciidoc 1.11.0 
language-markdown 0.25.1 
language-plantuml 0.2.0 
markdown-preview-plus 2.4.16 
markdown-scroll-sync 2.1.2 
markdown-themeable-pdf 1.2.0 
plantuml-viewer 0.7.2 
tablr 1.8.3 

Uncaught Error: Cannot find module '/Applications/Atom.app/Contents/Resources/app.asar/node_modul...

[Enter steps to reproduce:]

  1. Updated to Atom 1.32 (from 1.32)
  2. Toggle asciidoctor-preview (Preview pain)

Atom: 1.32.0 x64
Electron: 2.0.9
OS: Mac OS X 10.14
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module '/Applications/Atom.app/Contents/Resources/app.asar/node_modules/highlights'

At module.js:545

Error: Cannot find module '/Applications/Atom.app/Contents/Resources/app.asar/node_modules/highlights'
    at Module._resolveFilename (module.js:543: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/static/<embedded>:11:154364)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:145671)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146381)
    at Object.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149928)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:145671)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146381)
    at Object.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149928)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:145671)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:345848)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:344323)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:650182)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:657566)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -0:25.7.0 markdown-preview-enhanced:toggle (div.asciidoc-preview.native-key-bindings)
     -0:13.1.0 asciidoctor-preview:toggle (div.asciidoc-preview.native-key-bindings)

Non-Core Packages

ansible-galaxy-plus 1.1.4 
ansible-snippets 0.2.0 
ascii-art 1.2.0 
asciidoc-assistant 0.2.2 
asciidoc-image-helper 1.0.1 
asciidoc-preview 2.12.2 
asciidoctor-preview 0.3.2 
atom-ansible-snippets 0.3.0 
atom-eclipse-syntax 0.0.6 
atom-html-preview 0.2.5 
atom-mermaid 3.3.1 
atom-yamljson 0.2.4 
autocomplete-ansible 0.1.24 
autocomplete-asciidoc 0.1.2 
autumn-highlighter-syntax 1.13.0 
busy-signal 1.4.3 
city-lights-syntax 1.1.8 
city-lights-ui 1.5.3 
dash-ui 0.4.4 
diagrams 0.30.0 
figlet 0.5.4 
gaia-dark-syntax 2.1.0 
graphviz-preview 1.7.0 
intentions 1.1.5 
jackhammer-syntax 1.1.0 
language-ansible 0.2.2 
language-asciidoc 1.11.0 
language-rpm-spec 0.16.0 
linter 2.2.0 
linter-ansible-linting 1.3.3 
linter-js-yaml 1.3.0 
linter-ui-default 1.7.1 
markdown-pdf 2.2.0 
markdown-preview-enhanced 0.15.7 
markdown-table-editor 1.1.1 
markdown-writer 2.10.3 
pandoc-convert 1.1.1 
pdf-view 0.71.0 
plantuml-preview 0.12.9 
sequence-diagram 0.0.2 
styri-syntax 0.2.0 
symbols-tree-view 0.14.0 

I have noticed, the /Applications/Atom.app/Contents/Resources/app.asar/node_modules/ directory does not exist on my system. There is only /Applications/Atom.app/Contents/Resources/app.asar.app file there.

Uncaught TypeError: Path must be a string. Received undefined

Trying a simple preview of the following string:

[[app-listing]]
[source,ruby]
.app.rb
----
require 'sinatra'

get '/hi' do
  "Hello World!"
end
----

Atom Version: 1.9.9
System: Mac OS X 10.12
Thrown From: asciidoctor-preview package, v0.3.0

Stack Trace

Uncaught TypeError: Path must be a string. Received undefined

At path.js:7

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1188:7)
    at Object.copy (/Users/zzz/.atom/packages/asciidoctor-preview/node_modules/fs-extra/lib/copy/copy.js:18:26)
    at /Users/zzz/.atom/packages/asciidoctor-preview/lib/renderer.coffee:54:10
    at /opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/scandal/node_modules/temp/lib/temp.js:231:7
    at FSReqWrap.oncomplete (fs.js:82:15)

Commands

     -1:38.7.0 core:select-left (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -1:37.8.0 core:cut (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  3x -1:37 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
  2x -1:33.8.0 editor:log-cursor-scope (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -1:28.8.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:53.3.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:26.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:26.5.0 asciidoctor-preview:toggle (atom-text-editor.editor.vim-mode.normal-mode)
     -0:06.3.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:03.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:03.3.0 asciidoctor-preview:toggle (atom-text-editor.editor.vim-mode.normal-mode)
     -0:02.7.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:02.2.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:01.8.0 core:move-up (atom-text-editor.editor.mini.is-focused)
     -0:00.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.1.0 asciidoctor-preview:toggle (atom-text-editor.editor.vim-mode.normal-mode)

Config

{
  "core": {
    "disabledPackages": [
      "asciidoc-preview"
    ],
    "themes": [
      "atom-light-ui",
      "one-light-syntax"
    ]
  },
  "asciidoctor-preview": {}
}

Installed Packages

# User
aligner-python, v1.0.1 (active)
asciidoc-assistant, v0.2.1 (active)
asciidoc-image-helper, v1.0.0 (active)
asciidoc-preview, v2.6.0 (inactive)
asciidoctor-preview, v0.3.0 (active)
atom-beautify, vundefined (active)
autocomplete-asciidoc, v0.1.1 (active)
autocomplete-python, v1.8.6 (active)
language-asciidoc, v1.5.1 (active)
language-confluence-wiki, v0.2.0 (active)
language-docker, v1.1.7 (active)
language-nginx, v0.6.1 (active)
language-scala, v1.1.6 (active)
linter, v1.11.16 (active)
linter-scalac, v1.4.2 (active)
markdown-format, v2.5.1 (active)
markdown-table-formatter, v2.8.3 (active)
markdown-writer, v2.5.1 (active)
merge-conflicts, v1.4.4 (active)
pretty-json, v1.6.0 (active)
python-tools, v0.6.8 (active)
vim-mode, v0.65.1 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (active)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (active)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (active)
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)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (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.1 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (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.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Uncaught The "path" argument must be of type string. Received type undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.44.0 x64
Electron: 4.2.12
OS: "Arch Linux"
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught The "path" argument must be of type string. Received type undefined

At path.js:39

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at assertPath (path.js:39:11)
    at Object.resolve (path.js:1088:7)
    at Object.copy (/packages/asciidoctor-preview/node_modules/fs-extra/lib/copy/copy.js:26:28)
    at /packages/asciidoctor-preview/lib/renderer.coffee:54:10
    at /usr/lib/atom/node_modules/archive-view/node_modules/temp/lib/temp.js:231:7
    at FSReqWrap.oncomplete (fs.js:141:20)

Commands

 23x -1:15.3.0 core:backspace (input.hidden-input)
     -1:10.1.0 core:paste (input.hidden-input)
     -0:34.6.0 asciidoctor-preview:toggle (input.hidden-input)

Non-Core Packages

asciidoc-assistant 0.2.3 
asciidoc-image-helper 1.0.1 
asciidoc-preview 2.13.1 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
language-asciidoc 1.11.0 

Unable to install Asciidoctor Preview through Atom

I am attempting to install the package through Atom, and it is coming up with a fail.

[email protected] install /tmp/apm-install-dir-115431-12262-1ewv1g4/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas
node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-115431-12262-1ewv1g4/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas/build'
CXX(target) Release/obj.target/runas/src/main.o
runas.target.mk:88: recipe for target 'Release/obj.target/runas/src/main.o' failed
make: Leaving directory '/tmp/apm-install-dir-115431-12262-1ewv1g4/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas/build'

make: g++: Command not found
make: *** [Release/obj.target/runas/src/main.o] Error 127
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/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 Linux 3.17.4-301.fc21.x86_64
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-115431-12262-1ewv1g4/node_modules/asciidoctor-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! Linux 3.17.4-301.fc21.x86_64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/jmorgan/.atom/.apm/.apmrc" "--userconfig" "/home/jmorgan/.atom/.apmrc" "install" "/tmp/d-115431-12262-1475ph8/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm v2.5.1
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
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-115431-12262-1ewv1g4/npm-debug.log

Uncaught Error: Cannot find module '../build/Release/pathwatcher.node'

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.3
System: Unknown Windows Version
Thrown From: asciidoctor-preview package, v0.1.7

Stack Trace

Uncaught Error: Cannot find module '../build/Release/pathwatcher.node'

At module.js:338

Error: Cannot find module '../build/Release/pathwatcher.node'
    at Module._resolveFilename (module.js:336:15)
    at Function.Module._resolveFilename (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (C:\Users\Tony\.atom\packages\asciidoctor-preview\node_modules\pathwatcher\lib\main.js:6:13)
    at Object.<anonymous> (C:\Users\Tony\.atom\packages\asciidoctor-preview\node_modules\pathwatcher\lib\main.js:207:4)
    at Module._compile (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\native-compile-cache.js:50:27)
    at Object.<anonymous> (file:///C:/Users/Tony/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:8:10)
    at Object.<anonymous> (file:///C:/Users/Tony/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module._compile (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\native-compile-cache.js:50:27)
    at isAsciidoctorPreviewView (file:///C:/Users/Tony/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.module.exports.toggle (file:///C:/Users/Tony/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at atom-workspace.atom.commands.add.asciidoctor-preview:toggle (file:///C:/Users/Tony/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\command-registry.js:260:29)
    at C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:536:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:359:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (C:\Users\Tony\AppData\Local\atom\app-1.3.3\resources\app.asar\src\window-event-handler.js:3:61)

Commands

     -0:03.5.0 asciidoctor-preview:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
asciidoc-preview, v0.6.0
asciidoctor-preview, v0.1.7
AtomicChar, v0.3.11
language-asciidoc, v0.12.0

# Dev
No dev packages

Uncaught Error: Cannot find module '/Applications/Develop/Atom.app/Contents/Resources/app.asar/no...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Mac OS X 10.13.6
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module '/Applications/Develop/Atom.app/Contents/Resources/app.asar/node_modules/highlights'

At module.js:545

Error: Cannot find module '/Applications/Develop/Atom.app/Contents/Resources/app.asar/node_modules/highlights'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (/Applications/Develop/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:154667)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:145974)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
    at CommandRegistry.dispatch (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:11:348492)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:1:669184)
    at EventEmitter.t (/Applications/Develop/Atom.app/Contents/Resources/app/static/<embedded>:1:676568)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -0:40.8.0 asciidoctor-preview:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)

Non-Core Packages

asciidoc-assistant 0.2.2 
asciidoc-image-helper 1.0.1 
asciidoc-preview 2.12.2 
asciidoc-reference-check 0.3.1 
asciidoctor-preview 0.3.2 
atom-ide-ui 0.13.0 
atom-java-decompiler 0.1.2 
atom-maven 1.3.2 
autocomplete-asciidoc 0.1.2 
busy 0.7.0 
busy-signal 2.0.0 
formatter-clangformat 1.0.1 
Hydrogen 2.8.0 
ide-fortran 0.3.0 
ide-java 0.8.3 
indent-detective 0.3.2 
ink 0.9.14 
intentions 1.1.5 
Java-Bytecode-Disassembler 0.12.6 
java-class-complete 0.0.6 
java-classpath-registry 0.4.0 
java-generator 2.2.3 
java-generator-plus 2.6.0 
java-import-wiz 0.5.0 
java-importer 1.4.1 
java-plus 0.1.0 
julia-client 0.7.13 
language-asciidoc 1.11.0 
language-fortran 2.1.7 
language-julia 0.18.0 
latex-completions 0.3.6 
linter 2.3.0 
linter-gfortran 1.0.0 
linter-javac 1.10.0 
linter-processing-java 0.1.2 
linter-ui-default 1.7.1 
tool-bar 1.1.11 
uber-juno 0.2.0 

Uncaught Error: Cannot find module '~/AppData\Local\atom\app-1.53.0\resources\app.asar\node_modul...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64
Electron: 6.1.12
OS: THOMAS-SURFACE
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module 'C:\Users\thoma\AppData\Local\atom\app-1.53.0\resources\app.asar\node_modules\highlights'
Require stack:

  • C:\Users\thoma.atom\packages\asciidoctor-preview\lib\renderer.coffee
  • C:\Users\thoma.atom\packages\asciidoctor-preview\lib\asciidoctor-preview-view.coffee
  • C:\Users\thoma.atom\packages\asciidoctor-preview\lib\asciidoctor-preview.coffee
  • C:\Users\thoma\AppData\Local\atom\app-1.53.0\resources\app.asar\static\index.html
At internal/modules/cjs/loader.js:630

Error: Cannot find module 'C:\Users\thoma\AppData\Local\atom\app-1.53.0\resources\app.asar\node_modules\highlights'
Require stack:
- C:\Users\thoma\.atom\packages\asciidoctor-preview\lib\renderer.coffee
- C:\Users\thoma\.atom\packages\asciidoctor-preview\lib\asciidoctor-preview-view.coffee
- C:\Users\thoma\.atom\packages\asciidoctor-preview\lib\asciidoctor-preview.coffee
- C:\Users\thoma\AppData\Local\atom\app-1.53.0\resources\app.asar\static\index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.53.0/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:155481)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:146814)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:147498)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:146814)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:147498)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:146814)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:350265)
    at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1230852)
    at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:1226986)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.53.0/resources/app/static/<embedded>:11:284919)

Commands

     -9:05.5.0 asciidoc-preview:toggle-skip-front-matter (input.hidden-input)
  2x -8:58.3.0 asciidoc-preview:toggle (input.hidden-input)
  3x -5:45.5.0 asciidoctor-preview:toggle (div.package-detail)

Non-Core Packages

asciidoc-assistant 0.2.3 
asciidoc-image-helper 1.0.1 
asciidoc-reference-check 0.3.1 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
language-asciidoc 1.11.0 
language-plantuml 0.2.0 
plantuml-preview 0.12.10 

Uncaught Error: Cannot find module '$ATOM_HOME/packages/highlights'

[Enter steps to reproduce below:]

  1. preview a file
  2. see the bug

Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: asciidoctor-preview package, v0.3.0

Stack Trace

Uncaught Error: Cannot find module '/Users/paul.anderson/.atom/packages/highlights'

At module.js:340

Error: Cannot find module '/Users/paul.anderson/.atom/packages/highlights'
    at Module._resolveFilename (module.js:338:15)
    at Function.Module._resolveFilename (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:289:25)
    at Module.require (module.js:366:17)
    at require (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at Object.<anonymous> (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module._compile (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at Object.<anonymous> (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module._compile (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .coffee] (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at isAsciidoctorPreviewView (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.module.exports.toggle (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at atom-workspace.atom.commands.add.asciidoctor-preview:toggle (/Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/opt/homebrew-cask/Caskroom/atom/1.2.4/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:30.9.0 core:close (atom-text-editor.editor.is-focused)
  2x -0:26.8.0 asciidoc-preview:toggle (atom-text-editor.editor.is-focused)
     -0:03.7.0 core:cancel (a.stack-toggle)
     -0:00.7.0 asciidoctor-preview:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "minimap"
    ],
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      "*.pdf"
    ]
  },
  "asciidoctor-preview": {
    "command": "asciidoctor --trace --safe-mode unsafe -a lang=en -b html5 -d book  --base-dir {{{baseDirPath}}} -o {{{tempHTMLPath}}} {{{filePath}}}",
    "renderOnSaveOnly": true
  }
}

Installed Packages

# User
api-workbench, v0.8.31
asciidoc-preview, v2.4.2
asciidoctor-preview, v0.3.0
language-asciidoc, v1.5.1
linter, v1.11.10
markdown-preview, v0.158.0
pandoc-convert, v1.0.4
pigments, v0.29.2
red-wavy-underline, v0.3.0
revealjs-preview, v0.3.1

# Dev
No dev packages

New install of atom + asciidoctor-preview fails

[Enter steps to reproduce:]

  1. installed atom on Ubuntu 20.04
  2. installed asciidoctor related packages
  3. attempted to open preview on .adoc files.

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Ubuntu 20.04.2
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'
Require stack:

  • /home/thomas/.atom/packages/asciidoctor-preview/lib/renderer.coffee
  • /home/thomas/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee
  • /home/thomas/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee
  • /usr/share/atom/resources/app.asar/static/index.html
At internal/modules/cjs/loader.js:630

Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'
Require stack:
- /home/thomas/.atom/packages/asciidoctor-preview/lib/renderer.coffee
- /home/thomas/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee
- /home/thomas/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee
- /usr/share/atom/resources/app.asar/static/index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
    at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/static/<embedded>:11:155387)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146720)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147404)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:150952)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146720)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147404)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:150952)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146720)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350343)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348818)
    at AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:727562)
    at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:735512)
    at EventEmitter.emit (events.js:200:13)
    at Object.onMessage (/usr/share/atom/resources/electron.asar/renderer/init.js:42:16)

Commands

     -4:37.7.0 application:add-project-folder (ul.list-inline.tab-bar.inset-panel)
     -0:41.3.0 asciidoctor-preview:toggle (div.tool-panel.tree-view)

Non-Core Packages

asciidoc-assistant 0.2.3 
asciidoc-image-helper 1.0.1 
asciidoc-preview 2.13.1 
asciidoc-reference-check 0.3.1 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
language-asciidoc 1.11.0 

Command paths not appropriate for windows & require extension to be installed

The default paths require the asciidoctor-diagram package to be installed and don't function on a Windows platform.

I have removed this package dependency which should either be removed or noted in the documentation (-r asciidoctor-diagram) and quoted the paths in command:default as well as making the executable run asciidoctor.bat. I have also changed path:default to refer to the Ruby interpreter.

I can successfully run on Windows using the following:

module.exports =
  config:
    command:
      title: 'Command'
      description: 'You can use {{{tempHTMLPath}}}, {{{baseDirPath}}}, {{{filePath}}}'
      type: 'string'
      default: "asciidoctor.bat --safe-mode unsafe -a lang=ja -b html5 -d book --base-dir \"{{{baseDirPath}}}\" -o \"{{{tempHTMLPath}}}\" \"{{{filePath}}}\""
      order: 40
    path:
      title: 'PATH'
      description: 'for commands that you use'
      type: 'string'
      default: 'C:\\Ruby23\\bin\\'
      order: 41

the asciidoctor execute error.

the asciidoctor occur error to exec its command when the asciidoc docmet with plantuml/mermaid preview by asciidoctor-preview.

using system :
os : ubuntu 16.04
asciidoctor : 1.5.6.1
asciidoctor-diagram : 1.5.5

I exec command which is used by default of asciidoctor-preview by console. so, the error occur error which is EIDIR.

% asciidoctor --trace -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir /home/katsumi /tmp/plantuml -o /tmp/asciidoctor11791-3169-1gct4g5.ieh15lv7vi/trmp.html /home/katsumi/tmp/plantuml/test.adoc
/home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor/document.rb:1092:in write': Is a directory @ rb_sysopen - /tmp/asciidoctor11791-3169-1gct4g5.ieh15lv7vi/trmp.html (Errno::EISDIR) from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor/document.rb:1092:in write'
from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor.rb:1507:in convert' from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor.rb:1575:in block in convert_file'
from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor.rb:1575:in open' from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor.rb:1575:in convert_file'
from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor/cli/invoker.rb:108:in block in invoke!' from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor/cli/invoker.rb:102:in each'
from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/lib/asciidoctor/cli/invoker.rb:102:in invoke!' from /home/katsumi/.gem/ruby/2.3.0/gems/asciidoctor-1.5.6.1/bin/asciidoctor:14:in <top (required)>'
from /usr/local/bin/asciidoctor:23:in load' from /usr/local/bin/asciidoctor:23:in

'

I change few command option for asciidoctor. so it not occur covert error.
and the asciidoctor is complete to covert form asciidoc to html document

% asciidoctor --trace -a lang=ja -b html5 -d book -r asciidoctor-diagram -o temp.html -D /tmp/asciidoctor11791-3169-1gct4g5.ieh15lv7vi /home/katsumi/tmp/plantuml/test.adoc

I feel that Is the asciidoctor or asciidoctor-diagram argument was changing specification.

I generate simple patch. Would you see it.

diff.txt

v 0.2.1error message in preview pane, file not found.

This is the result when the preview is toggled on:
Previewing AsciiDoc Failed

Command failed: /bin/sh -c "asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir /home/simon/d/adoc -o /tmp/asciidoctor11649-5956-1joyird/temp.html /home/simon/d/adoc/My notes.adoc" -l /bin/sh: asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir /home/simon/d/adoc -o /tmp/asciidoctor11649-5956-1joyird/temp.html /home/simon/d/adoc/My notes.adoc: No such file or directory

In the temporary output directory /tmp/asciidoctor11649-5956-1joyird/ there is no file temp.html, although there is a copy of "My notes.adoc".

This issue seems similar to issue #18, but I have installed asciidoctor-diagram.

Uncaught TypeError: path must be a string

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.200.0
System: linux 4.1.0-040100rc2-lowlatency
Thrown From: asciidoctor-preview package, v0.1.5

Stack Trace

Uncaught TypeError: path must be a string

At fs.js:819

TypeError: path must be a string
  at TypeError (native)
  at fs.lstat (fs.js:819:11)
  at Object.fs.lstat (ATOM_SHELL_ASAR.js:187:16)
  at Object.copy (/home/kk/.atom/packages/asciidoctor-preview/node_modules/fs-extra/lib/copy.js:39:6)
  at /home/kk/.atom/packages/asciidoctor-preview/lib/renderer.coffee:37:10
  at /opt/atom/resources/app.asar/node_modules/temp/lib/temp.js:231:7
  at FSReqWrap.oncomplete (fs.js:77:15)

Commands

     -4:19.4.0 core:paste (atom-text-editor#editor.fontFamily.editor.mini.is-focused)
     -4:02.3.0 editor:newline (atom-text-editor.editor.insert-mode.vim-mode.is-focused)
     -3:47.3.0 core:page-down (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
     -3:46.9.0 core:page-up (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
  2x -3:46.5.0 core:move-up (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
     -3:45.7.0 core:move-down (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
  3x -3:45.4.0 core:move-right (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
 14x -3:41.8.0 core:backspace (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
  2x -2:11.9.0 editor:newline (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  5x -2:02.8.0 core:backspace (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
  2x -1:30.5.0 editor:newline (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
 10x -1:07.3.0 core:backspace (atom-text-editor#editor.lineHeight.editor.mini.is-focused)
  2x -0:38.6.0 editor:newline (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  5x -0:25.4.0 core:backspace (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
  2x -0:20.9.0 editor:newline (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
     -0:03.6.0 asciidoctor-preview:toggle (atom-text-editor.editor.vim-mode.insert-mode.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages

# User
ascii-codes, v0.3.3
asciidoc-preview, v0.5.0
asciidoctor-preview, v0.1.5
crosshairs, v0.1.2
default-language, v0.1.2
documentation-renderer, v0.2.0
language-RSL, v0.31.0
language-asciidoc, v0.11.1
language-context-free, v0.8.0
language-gherkin-i18n, v1.1.2
language-glsl, v2.0.0
language-opencl, v0.1.1
language-vex, v0.1.3
language-xtend, v0.4.0
less-than-slash, v0.6.0
minimap, v4.9.0
vim-mode, v0.48.0

# Dev
No dev packages

Uncaught ReferenceError: fsplus is not defined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.6.0
System: Mac OS X 10.11.3
Thrown From: asciidoctor-preview package, v0.2.0

Stack Trace

Uncaught ReferenceError: fsplus is not defined

At /Users/xxxxx/.atom/packages/asciidoctor-preview/lib/renderer.coffee:140

ReferenceError: fsplus is not defined
    at /Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/renderer.coffee:140:9
    at /Users/paul.anderson/.atom/packages/asciidoctor-preview/lib/renderer.coffee:76:12
    at ChildProcess.exithandler (child_process.js:206:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Commands

     -1:01.5.0 tree-view:remove-project-folder (span.name.icon.icon-file-directory)
  3x -0:48.1.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:47.1.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -0:46.5.0 core:move-down (atom-text-editor.editor.is-focused)
  4x -0:43.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:39.1.0 core:save (atom-text-editor.editor.is-focused)
  2x -0:32.4.0 asciidoc-preview:toggle (atom-text-editor.editor.is-focused)
     -0:25.2.0 core:close (div.asciidoc-preview.native-key-bindings)
     -0:21.1.0 asciidoctor-preview:toggle (atom-text-editor.editor.is-focused)
     -0:13.3.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:13.3.0 core:cancel (atom-text-editor.editor.is-focused)
     -0:11 core:close (div.asciidoctor-preview.native-key-bindings)
     -0:07.6.0 asciidoctor-preview:toggle (atom-text-editor.editor.is-focused)
     -0:06.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:06.1.0 core:cancel (atom-text-editor.editor.is-focused)
     -0:00.8.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "minimap"
    ]
  },
  "asciidoctor-preview": {
    "renderOnSaveOnly": true
  }
}

Installed Packages

# User
api-workbench, v0.8.23
asciidoc-preview, v0.6.0
asciidoctor-preview, v0.2.0
language-asciidoc, v0.12.0
linter, v1.11.4

# Dev
No dev packages

Uncaught Error: Cannot find module '/usr/share/atom/resources/app/node_modules/highlights'

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.174.0
System: linux 3.16.0-4-amd64
Thrown From: asciidoctor-preview package, v0.1.5

Stack Trace

Uncaught Error: Cannot find module '/usr/share/atom/resources/app/node_modules/highlights'

At module.js:346

Error: Cannot find module '/usr/share/atom/resources/app/node_modules/highlights'
  at Module._resolveFilename (module.js:344:15)
  at Function.Module._resolveFilename (/usr/share/atom/resources/app/src/module-cache.js:383:52)
  at Function.Module._load (module.js:286:25)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Object.<anonymous> (/home/martin/.atom/packages/asciidoctor-preview/lib/renderer.coffee:14:14)
  at Object.<anonymous> (/home/martin/.atom/packages/asciidoctor-preview/lib/renderer.coffee:1:1)
  at Module._compile (module.js:468:26)
  at Object.requireCoffeeScript [as .coffee] (/usr/share/atom/resources/app/src/coffee-cache.js:65:19)
  at Module.load (/usr/share/atom/resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:318:12)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Object.<anonymous> (/home/martin/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:10:12)
  at Object.<anonymous> (/home/martin/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
  at Module._compile (module.js:468:26)
  at Object.requireCoffeeScript [as .coffee] (/usr/share/atom/resources/app/src/coffee-cache.js:65:19)
  at Module.load (/usr/share/atom/resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:318:12)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at isAsciidoctorPreviewView (/home/martin/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
  at Object.module.exports.toggle (/home/martin/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
  at atom-workspace.atom.commands.add.asciidoctor-preview:toggle (/home/martin/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/usr/share/atom/resources/app/src/command-registry.js:156:19)
  at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:65:30)
  at Ipc.emit (events.js:107:17)
  at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
  at process.emit (events.js:110:17)

Commands

     -7:59.0 core:save (atom-text-editor.editor)
 11x -7:33.2 core:backspace (atom-text-editor.editor)
     -7:30.7 core:save (atom-text-editor.editor)
     -1:23.7 asciidoctor-preview:toggle (atom-text-editor.editor)
     -1:14.4 asciidoc-preview:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -1:11.8 settings-view:open (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -0:20.8 core:undo (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:20.1 core:select-all (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:19.9 core:backspace (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:18.6 core:move-right (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:18.2 core:move-down (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:17.8 core:move-left (atom-text-editor#asciidoctor-preview.command.editor.mini)
  2x -0:12.8 core:backspace (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:10.4 core:save (atom-text-editor#asciidoctor-preview.command.editor.mini)
     -0:07.2 application:open-folder (atom-text-editor.editor)
  2x -0:00.0 asciidoctor-preview:toggle (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ],
    "audioBeep": false
  },
  "asciidoctor-preview": {
    "command": "asciidoctor -d book",
    "renderOnSaveOnly": true
  }
}

Installed Packages

# User
asciidoc-preview, v0.5.1
asciidoctor-preview, v0.1.5
autocomplete-css, v0.7.2
autocomplete-html, v0.7.2
autocomplete-modules, v0.3.5
autocomplete-paths, v1.0.2
language-asciidoc, v0.11.1
language-rust, v0.4.3
language-scala, v1.1.3
linter, v0.12.7
linter-jshint, v0.1.6

# Dev
No dev packages

/cc @atom/core

When I ran into this, I noticed that it goes resolves the path to markdown-preview but then goes into the parent directory instead of traversing into markdown-preview/node_modules.

So I did a small change in

Highlights = require path.join(pathWatcherDirectory, '..', 'highlights')
:

Highlights = require path.join(pathWatcherDirectory, 'node_modules', 'highlights')

and it works. Is that something that magically only happened on my system or a general bug?

Issue installing plugin through Atom

I'm installing onto Windows 7 64bit Atom.
I go to Atom->Settings->Install. I search Asciidoc and click install on asciidoctor-preview, and I encounter the following error message.

[email protected] install C:\Users\axl134\AppData\Local\Temp\apm-install-dir-116011-39668-1e6aaci\node_modules\asciidoctor-preview\node_modules\pathwatcher\node_modules\runas
node-gyp rebuild

C:\Users\axl134\AppData\Local\Temp\apm-install-dir-116011-39668-1e6aaci\node_modules\asciidoctor-preview\node_modules\pathwatcher\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\axl134\AppData\Local\atom\app-1.3.3\resources\app\apm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )

gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users\axl134\AppData\Local\atom\app-1.3.3\resources\app\apm\bin\node.exe" "C:\Users\axl134\AppData\Local\atom\app-1.3.3\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\axl134.atom.apm.apmrc" "--userconfig" "C:\Users\axl134.atom.apmrc" "install" "C:\Users\axl134\AppData\Local\Temp\d-116011-39668-16p3j6v\package.tgz" "--target=0.34.5" "--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 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.

Diagram and math expression not displayed correctly

_20170706141337
As shown in the picture, neither the math expression nor the diagram can be displayed correctly, yet I have installed all the environment needed including the asciidoctor-diagram. If I copy the command like asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir D:\atom -o C:\Users\DengZ1\AppData\Local\Temp\asciidoctor11766-15476-1ux1bii.30cvzn0zfr\temp.html to the command line and run it, I will get a html file successfully and it displays everything well if opened with a browser, so I suppose I missed something with the PATH configuration? Right now it's C:\Ruby24-x64\bin.

I use windows and I installed asciidoctor along with asciidoctor-diagram with the command gem .

version 0.1.7 failed to instal lon win7 64bit

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

[email protected] install C:\Users\vrcmr\AppData\Local\Temp\apm-install-dir-11618-5192-q1eq3n\node_modules\asciidoctor-preview\node_modules\pathwatcher\node_modules\runas
node-gyp rebuild

Der Befehl "node-gyp" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Users\vrcmr\AppData\Local\atom\app-1.4.3\resources\app\apm\bin\node.exe" "C:\Users\vrcmr\AppData\Local\atom\app-1.4.3\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\vrcmr.atom.apm.apmrc" "--userconfig" "C:\Users\vrcmr.atom.apmrc" "install" "C:\Users\vrcmr\AppData\Local\Temp\d-11618-5192-vahzl6\package.tgz" "--target=0.34.5" "--arch=ia32" "--msvs_version=2012"
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 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.

Promise.done is deprecated.

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

Promise.done (/usr/share/atom/resources/app.asar/src/atom-environment.js:1214:5)
Object.addPreviewForEditor (/home/nigge/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:144:10)
Object.toggle (/home/nigge/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:120:21)
atom-workspace.atom.commands.add.asciidoctor-preview:toggle (/home/nigge/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:74:26)
CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:259:29)
<unknown> (/usr/share/atom/resources/app.asar/src/command-registry.js:3:59)

Uncaught Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'

[Enter steps to reproduce:]

  1. adding a new projectfolder
  2. create a file out of atom with "a" name test1.adoc
  3. type a h1 and h2 content
  4. try to preview
  5. fails

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Debian GNU/Linux
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'

At module.js:545

Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/static/<embedded>:11:154667)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:145974)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350055)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348530)
    at AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:669183)
    at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:676567)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -1:54.3.0 application:add-project-folder (div.tool-panel.tree-view)
     -1:40.4.0 tree-view:add-file (div.tool-panel.tree-view)
     -1:31.8.0 core:confirm (input.hidden-input)
  4x -1:16.7.0 editor:newline (input.hidden-input)
     -0:41 asciidoctor-preview:toggle (ul.list-inline.tab-bar.inset-panel)

Non-Core Packages

asciidoc-preview undefined 
asciidoctor-preview 0.3.2 
atom-browser 0.70.0 
atom-clock 0.1.16 
atom-formatter-jsbeautify 1.1.2 
atom-js-console 1.2.2 
atom-latex 0.8.5 
atom-terminal 0.8.0 
atomic-emacs 0.13.0 
browser-plus 0.0.98 
css-snippets 1.1.0 
file-icons 2.1.29 
git-plus 8.4.2 
go-plus 6.1.0 
hidpi 0.14.0 
Hydrogen 2.7.0 
javascript-snippets 1.2.1 
language-hugo 0.5.1 
language-latex 1.2.0 
language-openscad 0.4.3 
language-svg 0.9.2 
languagetool 0.1.1 
latex 0.50.2 
latex-completions 0.3.6 
man 0.8.2 
markdown-preview-plus 3.7.1 
org-mode 0.3.16 
pandoc-convert 1.1.1 
pdf-view 0.71.0 
platformio-ide-terminal 2.9.0 
project-manager 3.3.6 
rename-tabs 0.2.0 
sass 0.5.0 
svg-icons 0.5.3 
svg-preview 0.14.0 
svgo 3.2.0 
teletype 0.13.3 
terminal-plus 0.14.5 
tree-view-git-status 1.5.2 

:toc: left shows misplaced table of contents

Whenever setting :toc: to left or right, there will be a stray display of the toc.

In the example it works out since it convers the tree view, but this is by chance. The stray toc simply covers some some space on the Atom screen.

screenshot1

ADOC file:

= Sample document
:toc: left

== Entry 1

Table of content is misplaced on the screen

Installation fails: Failed at the [email protected] install script 'node-gyp rebuild'.

$ apm install asciidoctor-preview
Installing asciidoctor-preview to /home/simon/.atom/packages ✗

> [email protected] install /tmp/apm-install-dir-116315-11438-1ng661a/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas'
> node-gyp rebuild`

make: Entering directory '/tmp/apm-install-dir-116315-11438-1ng661a/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
runas.target.mk:90: recipe for target 'Release/obj.target/runas/src/main.o' failed
make: Leaving directory '/tmp/apm-install-dir-116315-11438-1ng661a/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas/build'

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.
In file included from ../src/main.cc:1:0:
../../nan/nan.h:194:57: fatal error: nan_maybe_43_inl.h: No such file or directory
compilation terminated.
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/npm/node_modules/node-gyp/lib/build.js:269: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 Linux 4.4.6-300.fc23.x86_64
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-116315-11438-1ng661a/node_modules/asciidoctor-preview/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 
npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm ERR! Linux 4.4.6-300.fc23.x86_64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/simon/.atom/.apm/.apmrc" "--userconfig" "/home/simon/.atom/.apmrc" "install" "/tmp/d-116315-11438-10yg153/package.tgz" "--target=0.36.8" "--arch=x64"
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 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! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-116315-11438-1ng661a/npm-debug.log
$

The log file mentioned above doesn't exist, and there is no file *.log in the /tmp directory.

Uncaught Error: Cannot find module '~/AppData\Local\atom\app-1.33.1\resources\app.asar\node_modul...

[Enter steps to reproduce:]

  1. ...Start Atom
  2. ...Toggle ASCIIDoc preview, error follows

Atom: 1.33.1 x64
Electron: 2.0.16
OS: Microsoft Windows 10 Home
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module 'C:\Users\trots\AppData\Local\atom\app-1.33.1\resources\app.asar\node_modules\highlights'

At module.js:545

Error: Cannot find module 'C:\Users\trots\AppData\Local\atom\app-1.33.1\resources\app.asar\node_modules\highlights'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.33.1/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:154667)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:145974)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:146684)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:145974)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:350034)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:11:348509)
    at AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:1:669041)
    at EventEmitter.t (~/AppData/Local/atom/app-1.33.1/resources/app/static/<embedded>:1:676425)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -5:13 github:toggle-github-tab (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -3:03.4.0 application:open-folder (input.hidden-input)
     -1:11.5.0 application:open-file (input.hidden-input)
     -0:31 asciidoctor-preview:toggle (input.hidden-input)

Non-Core Packages

asciidoc-assistant 0.2.2 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
language-asciidoc 1.11.0 

Uncaught Error: Cannot find module '/Users/stepup/.atom/packages/highlights'

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.15
System: Mac OS X 10.10.5
Thrown From: asciidoctor-preview package, v0.1.5

Stack Trace

Uncaught Error: Cannot find module '/Users/stepup/.atom/packages/highlights'

At module.js:336

Error: Cannot find module '/Users/stepup/.atom/packages/highlights'
    at Module._resolveFilename (module.js:334:15)
    at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:284:25)
    at Module.require (module.js:363:17)
    at require (module.js:382:17)
    at Object.<anonymous> (/Users/stepup/.atom/packages/asciidoctor-preview/lib/renderer.coffee:26:16)
    at Object.<anonymous> (/Users/stepup/.atom/packages/asciidoctor-preview/lib/renderer.coffee:201:4)
    at Module._compile (module.js:428:26)
    at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
    at Module.load (module.js:353:32)

Commands

     -0:01.1.0 asciidoctor-preview:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "projectHome": "/Users/stepup/Source",
    "audioBeep": false,
    "excludeVcsIgnoredPaths": false
  },
  "asciidoctor-preview": {
    "renderOnSaveOnly": true,
    "path": "/Users/stepup/.rvm/gems/ruby-2.1.5/bin/asciidoctor",
    "command": "asciidoctor --safe-mode unsafe -a lang=en -b html5 -d book -r asciidoctor-diagram -o {{{tempHTMLPath}}} {{{tempSourcePath}}}"
  }
}

Installed Packages

# User
asciidoctor-preview, v0.1.5
autocomplete-haskell, v0.5.1
bracket-matcher, v0.77.0
emmet, v2.3.12
haskell-ghc-mod, v0.9.10
ide-haskell, v0.7.2
imdone-atom, v1.1.38
language-asciidoc, v0.12.0
language-cypher, v0.3.0
language-haskell, v1.4.6
language-java, v0.16.0
language-rust, v0.4.5
language-scala, v1.1.3
linter, v1.6.0
linter-hlint, v0.4.2
markdown-preview, v0.153.0
minimap, v4.13.3
project-manager, v2.5.2
trailing-spaces, v0.3.2

# Dev
No dev packages

Changes required for upcoming CoffeeScript upgrade

Hi! Thanks for maintaining the asciidoctor-preview package!

In Atom v1.12, we are going to upgrade CoffeeScript to the latest version. This upgrade entails one potentially breaking change to the language:

Changed strategy for the generation of internal compiler variable names. Note that this means that @example function parameters are no longer available as naked example variables within the function body.

We think your package may be affected by this upgrade, in the following places:

  • The editorSub variable here

These findings are based on linting packages with coffeescope. We could be wrong about some of them. When we release v1.12 beta, please test your package against it to make sure that it works. Let me know if you have any further questions; I will be happy to help!

asciidoctor preview broken for anything with includes

version 0.3.0 updated minutes ago

Previewing AsciiDoc Failed

Command failed: /bin/sh -c asciidoctor --trace --safe-mode unsafe -a lang=en -b html5 -d book --base-dir /Users/xx/yy/zz -o /var/folders/45/jc7tm14n6jlbww0qz8q_pgmm0000gp/T/asciidoctor116513-75877-1a8epyv/temp.html /xx/yy/zz/README.adoc /usr/local/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:381:in rescue in get_header': Failed to get header. (MentosError) from /usr/local/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:362:inget_header' from /usr/local/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:259:in block in mentos' from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/timeout.rb:91:inblock in timeout' from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/timeout.rb:33:in block in catch' from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/timeout.rb:33:incatch' from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/timeout.rb:33:in catch' from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/timeout.rb:106:intimeout' from /usr/local/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:233:in mentos' from /usr/local/lib/ruby/gems/2.3.0/gems/pygments.rb-0.6.3/lib/pygments/popen.rb:178:incss' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/stylesheets.rb:74:in pygments_stylesheet_data' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/stylesheets.rb:82:inembed_pygments_stylesheet' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/converter/html5.rb:99:in document' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/converter/base.rb:34:inconvert' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/document.rb:1044:in convert' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor.rb:1503:inconvert' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/cli/invoker.rb:94:in block in invoke!' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/cli/invoker.rb:86:ineach' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/lib/asciidoctor/cli/invoker.rb:86:in invoke!' from /usr/local/lib/ruby/gems/2.3.0/gems/asciidoctor-1.5.4/bin/asciidoctor:14:in<top (required)>' from /usr/local/bin/asciidoctor:23:in load' from /usr/local/bin/asciidoctor:23:in

'

Uncaught Error: Cannot find module '~/AppData\Local\atom\app-1.40.1\resources\app.asar\node_modul...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.40.1 x64
Electron: 3.1.10
OS: Microsoft Windows 10 Home
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module 'C:\Users\Laptop_DELL\AppData\Local\atom\app-1.40.1\resources\app.asar\node_modules\highlights'

At internal/modules/cjs/loader.js:604

Error: Cannot find module 'C:\Users\Laptop_DELL\AppData\Local\atom\app-1.40.1\resources\app.asar\node_modules\highlights'
    at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
    at Module._resolveFilename (~/AppData/Local/atom/app-1.40.1/resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:155413)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:146745)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:147429)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:146745)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:147429)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:150977)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:146745)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:349123)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:11:347598)
    at AtomEnvironment.dispatchContextMenuCommand (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:1:744957)
    at EventEmitter.t (~/AppData/Local/atom/app-1.40.1/resources/app/static/<embedded>:1:752963)
    at EventEmitter.emit (events.js:182:13)

Commands

     -1:09.8.0 tabs:split-right (div.title)
     -0:52.8.0 asciidoctor-preview:toggle (div.line)

Non-Core Packages

asciidoc-preview 2.13.1 
asciidoctor-preview 0.3.2 
autocomplete-asciidoc 0.1.2 
html-tab 1.0.2 
language-asciidoc 1.11.0 
markdown-writer 2.11.9 
platformio-ide-terminal 2.9.4 
project-viewer-plus 0.0.11 

Does not open at all

Nothing happens when I toggle, except that a deprecation warning shows up:

Call ::getActiveTextEditor instead 
Workspace.getActiveEditor - /usr/share/atom/resources/app/src/workspace.js:999:12
Object.checkFile - /home/s0lll0s/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:107:28

Option "Update on save" does not work and launches new empty preview window.

With the config option "Update on save", the preview window should refresh and sync up with current text.

Issues:
• The preview does responds, stays away for a second, and then presents the same data.
• A new preview windows opens, but stays out of focus, having the message: "Loading AsciiDoc…".

Current Workaround:
• Toggle the preview off and on with the shortcut key.

'asciidoctor-diagram' could not be loaded.

I just installed Asciidoctor for the first time and downloaded this extension to try it out so I guess this could be user error. Let me know either way.

I copied the test file from Asciidoctor and hit ctrl-shift-o and it came up with this error in the new window:

Previewing AsciiDoc Failed

Command failed: /bin/sh -c asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir /Users/myUser/Documents/Asciidocs -o /var/folders/wd/qfyk88gd37j8l99hcwd54l9w0000gn/T/asciidoctor11631-6927-19gitno/temp.html /Users/myUser/Documents/Asciidocs/test.adoc asciidoctor: FAILED: 'asciidoctor-diagram' could not be loaded Use --trace for backtrace

Previewing AsciiDoc Failed

Atom is not able to preview the asciidoc file

The viewer shows below

Command failed: asciidoctor --safe-mode unsafe -a lang=ja -b html5 -d book -r asciidoctor-diagram --base-dir E:\ztemp -o C:~\AppData\Local\Temp\asciidoctor11688-11556-h9jrwa.e0lv75vcxr\temp.html E:\ztemp\p.adoc 'asciidoctor' is not recognized as an internal or external command, operable program or batch file.

Got a popup as below

Unexpected token in C:.atom\packages\asciidoc-preview\package.json
Hide Stack Trace
SyntaxError: Unexpected token
at Object.parse (native)
at parseObject (C:
\AppData\Local\atom\app-1.9.9\resources\app.asar\node_modules\season\lib\cson.js:54:19)
at parseContentsSync (C:\AppData\Local\atom\app-1.9.9\resources\app.asar\node_modules\season\lib\cson.js:68:16)
at Object.module.exports.readFileSync (C:
\AppData\Local\atom\app-1.9.9\resources\app.asar\node_modules\season\lib\cson.js:170:14)
at PackageManager.module.exports.PackageManager.loadPackageMetadata (C:\AppData\Local\atom\app-1.9.9\resources\app.asar\src\package-manager.js:700:29)
at PackageManager.module.exports.PackageManager.loadPackage (C:
\AppData\Local\atom\app-1.9.9\resources\app.asar\src\package-manager.js:423:36)
at C:\AppData\Local\atom\app-1.9.9\resources\app.asar\src\package-manager.js:402:19
at Config.module.exports.Config.transact (C:
\AppData\Local\atom\app-1.9.9\resources\app.asar\src\config.js:312:16)
at PackageManager.module.exports.PackageManager.loadPackages (C:\AppData\Local\atom\app-1.9.9\resources\app.asar\src\package-manager.js:397:19)
at C:
\AppData\Local\atom\app-1.9.9\resources\app.asar\src\atom-environment.js:749:28
at C:~.atom\packages\asciidoc-preview\package.json:1:1

Uncaught Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'R...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64
Electron: 6.1.12
OS: "Fedora release
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'
Require stack:

  • /home/dtorresf/.atom/packages/asciidoctor-preview/lib/renderer.coffee
  • /home/dtorresf/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee
  • /home/dtorresf/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee
  • /usr/share/atom/resources/app.asar/static/index.html
At internal/modules/cjs/loader.js:630

Error: Cannot find module '/usr/share/atom/resources/app.asar/node_modules/highlights'
Require stack:
- /home/dtorresf/.atom/packages/asciidoctor-preview/lib/renderer.coffee
- /home/dtorresf/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee
- /home/dtorresf/.atom/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee
- /usr/share/atom/resources/app.asar/static/index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:627:15)
    at Module._resolveFilename (/usr/share/atom/resources/electron.asar/common/reset-search-paths.js:41:16)
    at Function.get_Module._resolveFilename (/usr/share/atom/resources/app/static/<embedded>:11:155481)
    at Module.require (/app.asar/static/index.js:61:43)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at /packages/asciidoctor-preview/lib/renderer.coffee:14:14)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at /packages/asciidoctor-preview/lib/renderer.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:6:25)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview-view.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147498)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/static/<embedded>:11:151046)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146814)
    at isAsciidoctorPreviewView (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:14:29)
    at Object.toggle (/packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:78:8)
    at /packages/asciidoctor-preview/lib/asciidoctor-preview.coffee:55:41)
    at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:350265)
    at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:348740)
    at AtomEnvironment.dispatchApplicationMenuCommand (/usr/share/atom/resources/app/static/<embedded>:1:727464)
    at EventEmitter.t (/usr/share/atom/resources/app/static/<embedded>:1:735387)
    at EventEmitter.emit (events.js:200:13)
    at Object.onMessage (/usr/share/atom/resources/electron.asar/renderer/init.js:42:16)

Commands

     -4:32.5.0 asciidoctor-preview:toggle (input.hidden-input)
     -3:16.2.0 editor:toggle-soft-wrap (input.hidden-input)
     -0:08.2.0 asciidoctor-preview:toggle (input.hidden-input)

Non-Core Packages

asciidoctor-preview 0.3.2 
busy-signal 2.0.1 
compare-files 0.8.1 
intentions 1.1.5 
language-log 1.10.1 
linter 3.1.1 
linter-jsonlint 1.4.0 
linter-ui-default 2.3.5 
pretty-json 2.1.2 

can't install successfull.

C:\Users\xxx>apm install asciidoctor-preview
Installing asciidoctor-preview to C:\Users\asktalk.atom\packages failed

[email protected] install C:\Users\asktalk\AppData\Local\Temp\apm-install-dir-1151129-11380-1ahl3cw\node_modules\asciidoctor-preview\node_modules\pathwatcher\node_modules\runas
node-gyp rebuild

C:\Users\asktalk\AppData\Local\Temp\apm-install-dir-1151129-11380-1ahl3cw\node_modules\asciidoctor-preview\node_modules\pathwatcher\node_modules\runas>if not defined npm_config_node_gyp (node "C:\Users\asktalk\AppData\Local\atom\app-1.3.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )

gypnpm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\Users\asktalk\AppData\Local\atom\app-1.3.2\resources\app\apm\bin\node.exe" "C:\Users\asktalk\AppData\Local\atom\app-1.3.2\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\asktalk.atom.apm.apmrc" "--userconfig" "C:\Users\asktalk.atom.apmrc" "install" "C:\Users\asktalk\AppData\Local\Temp\d-1151129-11380-17hbrlu\package.tgz" "--target=0.34.3" "--arch=ia32" "--msvs_version=2013"
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 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.

asciidoctor preview in Atom fails to resolve any includes

commandline includes work with asciidoctor
asciidoc (note: no 'tor' at the end - this is just plain asciidoc) resolves the includes.

It is this way for every single adoc file I try. Overriding the setting in Atom Asciidoc-preview has no effect

Uncaught Error: ENOENT: no such file or directory, open '/var/folders/cs/s04c8lpn62bgf8j09wjnfbcr...

[Enter steps to reproduce:]

  1. set commnad asciidoctor {{{filePath}}}
  2. press ctrl-alt-o preview the file

Atom: 1.24.0-beta3 x64
Electron: 1.6.15
OS: Mac OS X 10.13.1
Thrown From: asciidoctor-preview package 0.3.2

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open '/var/folders/cs/s04c8lpn62bgf8j09wjnfbcr0000gn/T/asciidoctor118029-51043-ha36rt.hxkh8v9529/temp.html'

At fs.js:558

Error: ENOENT: no such file or directory, open '/var/folders/cs/s04c8lpn62bgf8j09wjnfbcr0000gn/T/asciidoctor118029-51043-ha36rt.hxkh8v9529/temp.html'
    at Object.fs.openSync (fs.js:558:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.readFileSync (fs.js:468:33)
    at Object.fs.readFileSync (ELECTRON_ASAR.js:506:29)
    at /packages/asciidoctor-preview/lib/renderer.coffee:90:17
    at ChildProcess.exithandler (child_process.js:214:7)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)

Commands

     -5:52.4.0 core:close (div.asciidoctor-preview.native-key-bindings)
  5x -5:20.8.0 core:save (input.hidden-input)
     -3:52.1.0 settings-view:open (input.hidden-input)
     -3:49.8.0 core:close (div.panels-item)
     -3:48.6.0 settings-view:open (input.hidden-input)
  3x -3:39 core:backspace (input.hidden-input)
     -3:27.2.0 asciidoctor-preview:toggle (input.hidden-input)
     -3:26.9.0 datatip:toggle (input.hidden-input)
  3x -3:15.3.0 core:copy (div.asciidoctor-preview.native-key-bindings)
     -0:32.8.0 editor:select-to-end-of-line (input.hidden-input)
 14x -0:32.2.0 core:select-left (input.hidden-input)
     -0:23.3.0 core:backspace (input.hidden-input)
     -0:19 core:save (div.package-detail.panels-item)
     -0:16.4.0 intentions:highlight (input.hidden-input)
  2x -0:16.2.0 asciidoctor-preview:toggle (input.hidden-input)
     -0:15.1.0 datatip:toggle (input.hidden-input)

Non-Core Packages

ascii-art 1.2.0 
asciidoc-assistant 0.2.2 
asciidoc-image-helper 1.0.0 
asciidoc-preview 2.10.3 
asciidoc-reference-check 0.1.0 
asciidoctor-preview 0.3.2 
atom-ide-ui 0.7.1 
atom-typescript 12.0.0 
autocomplete-asciidoc 0.1.2 
busy-signal 1.4.3 
color-picker 2.2.5 
column-select 1.0.1 
file-icons 2.1.16 
format-sql 0.3.0 
highlight-selected 0.13.1 
ide-java 0.7.0 
ide-json 0.1.0 
ide-typescript 0.7.2 
intentions 1.1.5 
intentions-colorpicker 1.0.1 
jumpy 4.2.0 
language-asciidoc 1.11.0 
language-kotlin 0.5.0 
language-plantuml 0.2.0 
language-restructuredtext 1.1.0 
language-scala 1.1.9 
linter 2.2.0 
linter-javac 1.9.4 
linter-kotlin 0.6.0 
linter-scalac 1.4.4 
linter-shellcheck 1.4.6 
linter-tidy 2.3.1 
linter-ui-default 1.6.10 
minimap 4.29.7 
minimap-highlight-selected 4.6.1 
minimap-linter 2.1.3 
plantuml-viewer 0.7.2 
project-manager 3.3.5 
rst-preview 1.3.1 
rst-preview-pandoc 0.1.12 
scala-format 0.1.8 
Sublime-Style-Column-Selection 1.7.4 
toggler 0.3.1 

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.