peele / plantuml-preview

Atom package.
MIT License
23 stars 13 forks source link

Uncaught Error: ENOENT: no such file or directory, open '/var/folders/wf ... ' #18

Closed Adusei closed 8 years ago

Adusei commented 8 years ago

Hello, following the instructions on this post:

http://trevershick.github.io/atom/2015/12/04/plantuml-snippets.html

I was able to get through all of the installation steps in order to get the package working in atom, but when i pressed:

cntrl-alt-p to initiate the preview i got the error below.

This was what was in my atom ( test.pu ) file, before i executed the preview command.

s t a r t s
s t activate r  t @startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response

Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response

@enduml

I looked at where the preview was trying to pull the file from , and the director ( /var/folders/wf/... ) exists but the file does not.

===== Stack Trace Below ======

Atom Version: 1.8.0 System: Mac OS X 10.10.3 Thrown From: plantuml-preview package, v0.11.2

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open '/var/folders/wf/_1_gmcyj4v5b1wxs_bd_7vzc0000gn/T/plantuml-preview/test.svg'

At fs.js:584

Error: ENOENT: no such file or directory, open '/var/folders/wf/_1_gmcyj4v5b1wxs_bd_7vzc0000gn/T/plantuml-preview/test.svg'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:159:20)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:427:29)
    at /Users/john/.atom/packages/plantuml-preview/lib/plantuml-preview-view.coffee:310:23
    at exit (/Users/john/.atom/packages/plantuml-preview/lib/plantuml-preview-view.coffee:326:7)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:229:18
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:100:18)
    at emitOne (events.js:82:20)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Commands

  5x -3:55.3.0 plantuml-preview:toggle (atom-text-editor.editor.is-focused)
  2x -0:38 settings-view:open (atom-text-editor.editor.is-focused)
     -0:14.5.0 plantuml-preview:toggle (div.panels-item)
     -0:11.6.0 settings-view:open (div.panels-item)
     -0:01.5.0 plantuml-preview:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-beautify",
      "linter-python-pep8",
      "linter-pep8"
    ],
    "ignoredNames": [
      ".git",
      "*.pyc",
      ".DS_Store",
      "venv",
      "media",
      ".coverage",
      "bower_components",
      "dist",
      "htmlcov"
    ],
    "openEmptyEditorOnStart": false
  },
  "plantuml-preview": {
    "dotLocation": "/usr/local/bin/dot",
    "jarLocation": "/Users/john/code/plugins/plantuml.jar",
    "java": "/usr/bin/java"
  }
}

Installed Packages

# User
color-picker, v2.1.1
language-plantuml, v0.2.0
linter, v1.11.3
linter-js-standard, v3.2.1
plantuml-preview, v0.11.2
python-tools, v0.6.7
react, v0.12.6
standard-formatter, v2.0.0

# Dev
No dev packages