Skip to content

Uncaught TypeError: Cannot read property 'getPath' of undefined #2

@yamarten

Description

@yamarten

I'm receiving the error when trying to preview a (markdown | Asciidoc) file.

Atom Version: 0.207.0
System: Mac OS X 10.10.3
Thrown From: default-encoding package, v0.8.0

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:128

TypeError: Cannot read property 'getPath' of undefined
  at /Users/me/.atom/packages/default-encoding/lib/atom-default-encoding.coffee:16:26
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:485:25
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:817:14
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:357:13)

Commands

     -7:09.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -1:03.6.0 asciidoc-preview:toggle (atom-text-editor.editor.is-focused)
     -0:32.7.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:29.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:29.7.0 markdown-preview:toggle (atom-text-editor.editor)
     -0:20.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:18.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:18.2.0 markdown-preview:toggle (atom-text-editor.editor)
     -0:14.3.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:12.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:12.6.0 markdown-preview:toggle (atom-text-editor.editor)
     -0:10.5.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:08.7.0 application:new-file (atom-text-editor.editor.is-focused)
     -0:07.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:06.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:06.0 markdown-preview:toggle (atom-text-editor.editor)

Config

{
  "core": {
    "disabledPackages": [
      "welcome",
      "wrap-guide",
      "texlicious"
    ],
    "projectHome": "~"
  }
}

Installed Packages

# User
asciidoc-preview, v0.5.1
atom-alignment, v0.12.1
atom-runner, v2.4.1
auto-update-packages, v1.0.0
autocomplete-paths, v1.0.2
browser-plus, v0.0.23
default-encoding, v0.8.0
gist-it, v0.7.0
hide-tree, v0.0.4
highlight-column, v0.4.1
highlight-line, v0.10.2
highlight-selected, v0.9.3
japanese-menu, v0.6.0
japanese-wrap, v0.2.10
keybinding-cheatsheet, v0.0.9
language-asciidoc, v0.11.1
local-history, v3.2.2
open-recent, v2.2.4
redpen, v0.3.3
save-session, v0.15.5
simple-drag-drop-text, v0.2.3
symbols-tree-view, v0.9.3
typewriter-sounds, v0.1.0
wordcount, v2.2.2

# Dev
No dev packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions