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 TypeError: Cannot read property 'getPath' of undefined #2

Open
ssteinerx opened this issue Nov 30, 2015 · 0 comments
Open

Comments

@ssteinerx
Copy link

  1. Just try to execute it.
  2. ...

Atom Version: 1.2.4
System: Mac OS X 10.10.5
Thrown From: header-42 package, v0.3.0

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /Users/ssteiner/.atom/packages/header-42/lib/header-42.coffee:63

TypeError: Cannot read property 'getPath' of undefined
    at Object.module.exports.Header42.getHeaderText (/Users/ssteiner/.atom/packages/header-42/lib/header-42.coffee:63:36)
    at Object.module.exports.Header42.getHeader (/Users/ssteiner/.atom/packages/header-42/lib/header-42.coffee:71:21)
    at Object.module.exports.Header42.insert (/Users/ssteiner/.atom/packages/header-42/lib/header-42.coffee:106:15)
    at atom-workspace.subscriptions.add.atom.commands.add.header-42:insert (/Users/ssteiner/.atom/packages/header-42/lib/header-42.coffee:38:31)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:533:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:356:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:99:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  5x -6:23 core:backspace (atom-text-editor.editor.is-focused)
     -6:20 core:save (atom-text-editor.editor.is-focused)
     -1:07.8.0 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:58.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:57.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:57.3.0 settings-view:install-packages-and-themes (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:54 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:30.9.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:27.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:25.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:25.5.0 auto-header:generate (atom-text-editor.editor)
 20x -0:23.5.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:05.7.0 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-dark-theme.theme-atom-dark-ui)
     -0:01.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.6.0 header-42:insert (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-base16-tomorrow-dark-theme.theme-atom-dark-ui)

Config

{
  "core": {
    "disabledPackages": [
      "metrics"
    ],
    "themes": [
      "atom-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.3.0
atom-beautify, v0.28.19
auto-header, v0.2.4
block-comment, v0.4.3
block-cursor, v0.13.1
comment-headers, v2.13.0
commentcode, v0.1.0
header-42, v0.3.0
jshint, v1.8.3
linter, v1.11.3
minimap, v4.16.2
pigments, v0.19.1
sass-watch, v0.3.1

# Dev
No dev packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant