Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: ENOENT: no such file or directory, open 'C:\tmp\atom.apib' #24

Closed
ajackson-sonardesign opened this issue Apr 2, 2015 · 2 comments · May be fixed by #55
Closed

Uncaught Error: ENOENT: no such file or directory, open 'C:\tmp\atom.apib' #24

ajackson-sonardesign opened this issue Apr 2, 2015 · 2 comments · May be fixed by #55

Comments

@ajackson-sonardesign
Copy link

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.189.0
System: Microsoft Windows 7 Professional
Thrown From: api-blueprint-preview package, v0.3.0

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open 'C:\tmp\atom.apib'

At C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:128

Error: ENOENT: no such file or directory, open 'C:\tmp\atom.apib'
  at Error (native)
  at Object.fs.openSync (fs.js:544:18)
  at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
  at Object.fs.writeFileSync (fs.js:1155:15)
  at ApiBlueprintPreviewView.module.exports.ApiBlueprintPreviewView.renderApiBlueprintText (C:\Users\Allen\.atom\packages\api-blueprint-preview\lib\api-blueprint-preview-view.coffee:83:8)
  at ApiBlueprintPreviewView.module.exports.ApiBlueprintPreviewView.renderApiBlueprint (C:\Users\Allen\.atom\packages\api-blueprint-preview\lib\api-blueprint-preview-view.coffee:80:8)
  at C:\Users\Allen\.atom\packages\api-blueprint-preview\lib\api-blueprint-preview.coffee:48:33
  at _fulfilled (C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:794:54)
  at self.promiseDispatch.done (C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:823:30)
  at Promise.promise.promiseDispatch (C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:756:13)
  at C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:516:49
  at flush (C:\Users\Allen\AppData\Local\atom\app-0.189.0\resources\app\node_modules\q\q.js:110:17)
  at process._tickCallback (node.js:357:13)

Commands

     -1:46.6 core:page-down (atom-text-editor.editor)
 27x -1:45.8 core:page-up (atom-text-editor.editor)
  2x -1:12.0 core:page-down (atom-text-editor.editor)
 10x -1:05.8 core:move-up (atom-text-editor.editor)
  3x -1:04.5 core:delete (atom-text-editor.editor)
  2x -1:02.0 core:move-right (atom-text-editor.editor)
     -1:01.5 editor:move-to-end-of-word (atom-text-editor.editor)
     -1:01.0 core:move-left (atom-text-editor.editor)
     -0:59.6 core:move-down (atom-text-editor.editor)
  2x -0:59.6 core:delete (atom-text-editor.editor)
     -0:57.5 core:move-down (atom-text-editor.editor)
  5x -0:54.1 core:move-up (atom-text-editor.editor)
     -0:52.6 core:save (atom-text-editor.editor)
  2x -0:49.9 editor:move-to-first-character-of-line (atom-text-editor.editor)
  7x -0:49.3 core:select-down (atom-text-editor.editor)
  2x -0:28.7 api-blueprint-preview:toggle (atom-text-editor.editor)

Config

{}

Installed Packages

# User
api-blueprint-preview, v0.3.0

# Dev
No dev packages
@danielgtaylor
Copy link
Owner

@ajackson-sonardesign are you still getting this error? As a workaround, what happens if you make a directory called C:\tmp?

@danielgtaylor
Copy link
Owner

Actually, this is a duplicate of #17. We need to check if the directory exists first, and if not then either create it or use C:\temp or something.

elarivie added a commit to elarivie/atom-api-blueprint-preview that referenced this issue Feb 11, 2016
evocateur pushed a commit to evocateur/atom-api-blueprint-preview that referenced this issue Apr 11, 2016
* elarivie/master:
  Set maxbuffer length to Infinity to avoid stdout maxBuffer exceeded fix danielgtaylor#44
  Removed hardcoded path to tmp, now uses os library to get it.
  Add support for embeded image with data uri
  Added missing description of response to the template
  Randomize temp file name to avoid race condition fix danielgtaylor#17 fix danielgtaylor#24 fix danielgtaylor#42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants