Skip to content

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

@cmaklouf

Description

@cmaklouf

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.3 x64
Electron: 1.3.13
OS: Ubuntu 16.04.1
Thrown From: header-42 package 0.3.3

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At /home/cmaklouf/.atom/packages/header-42/lib/header-42.coffee:66

TypeError: Cannot read property 'getPath' of undefined
    at Object.getHeaderText (/packages/header-42/lib/header-42.coffee:66:36)
    at Object.getHeader (/packages/header-42/lib/header-42.coffee:74:21)
    at Object.insert (/packages/header-42/lib/header-42.coffee:108:15)
    at /packages/header-42/lib/header-42.coffee:40:31)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/app.asar/node_modules/command-palette/lib/command-palette-view.js:210:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at /app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.dispatch (/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

  2x -1:11.9.0 application:open-file (atom-pane.pane.active)
     -0:52.1.0 core:backspace (input.hidden-input)
  2x -0:45.5.0 core:cancel (ul.list-inline.tab-bar.inset-panel)
     -0:33.4.0 command-palette:toggle (atom-pane.pane.active)
 11x -0:24.5.0 core:backspace (input.hidden-input)
     -0:10.1.0 header-42:insert (atom-pane.pane.active)

Non-Core Packages

header-42 0.3.3 
platformio-ide-terminal 2.3.1 

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