danielgtaylor / danielgtaylor/atom-api-blueprint-preview
Uncaught TypeError: Path must be a string. Received null
- Dominant language
- CoffeeScript
- Stars
- 44
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
1. Create a Simple API Blueprint doc
``` md
FORMAT: 1A
# Hello, World!
## Greeter [GET /:name]
Says hello.

+ Response 200 (text/plain)
Hello, World!
```
2. Render the HTML preview (^⇧A)
The following error appears in a red box w/a link to create this issue. If I remove the image, the rendered view works as expected.
**Atom Version**: 1.6.0
**System**: Mac OS X 10.10.5
**Thrown From**: [api-blueprint-preview](https://github.com/danielgtaylor/atom-api-blueprint-preview) package, v0.7.0
### Stack Trace
Uncaught TypeError: Path must be a string. Received null
```
At path.js:8
TypeError: Path must be a string. Received null
at assertPath (path.js:8:11)
at Object.posix.join (path.js:477:5)
at resolveImagePaths (/Users/xxxxxxx/.atom/packages/api-blueprint-preview/lib/renderer.coffee:54:32)
at /Users/xxxxxxx/.atom/packages/api-blueprint-preview/lib/renderer.coffee:39:20
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. (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
```
7x -3:05.1.0 core:move-down (atom-text-editor.editor.is-focused)
-3:03.3.0 core:backspace (atom-text-editor.editor.is-focused)
-3:01.2.0 editor:newline (atom-text-editor.editor.is-focused)
7x -2:55.7.0 core:move-up (atom-text-editor.editor.is-focused)
4x -2:54.2.0 core:move-left (atom-text-editor.editor.is-focused)
-2:53.3.0 editor:newline (atom-text-editor.editor.is-focused)
-2:50.7.0 core:save (atom-text-editor.editor.is-focused)
2x -2:43.1.0 api-blueprint-preview:toggle (atom-text-editor.editor.is-focused)
-1:02.5.0 find-and-replace:show (div.api-blueprint-preview.native-key-bindings)
-0:59 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-0:59 core:cancel (atom-text-editor.editor.mini.is-focused)
3x -0:23.6.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)
-0:21.2.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
-0:19.4.0 api-blueprint-preview:toggle (atom-text-editor.editor.is-focused)
-0:07.4.0 core:save (atom-text-editor.editor.is-focused)
-0:01.7.0 api-blueprint-preview:toggle (atom-text-editor.editor.is-focused)
```
### Config
``` json
{
"core": {
"disabledPackages": [
"metrics",
"feedback",
"exception-reporting"
]
},
"api-blueprint-preview": {}
}
```
### Installed Packages
``` coffee
# User
api-blueprint-preview, v0.7.0
atom-jade, v0.3.0
language-api-blueprint, v1.0.2
language-docker, v1.1.6
language-scala, v1.1.6
# Dev
No dev packages
```
Contributor guide
Assessment
This issue has not been assessed yet.