jayhjkwon / atom-block-comment

block comment/uncomment for atom editor
MIT License
13 stars 11 forks source link

Uncaught TypeError: Cannot read property 'getTitle' of undefined #22

Open jonyeezs opened 8 years ago

jonyeezs commented 8 years ago

[Enter steps to reproduce below:]

  1. I just open atom and this happened.
  2. I have a few files open on startup

Atom Version: 1.8.0 System: Microsoft Windows 10 Home Thrown From: block-comment package, v0.4.3

Stack Trace

Uncaught TypeError: Cannot read property 'getTitle' of undefined

At /C:/Users/Jonathan/.atom/packages/block-comment/lib/block-comment.coffee:12

TypeError: Cannot read property 'getTitle' of undefined
    at atom-workspace.module.exports.toggle (file:///C:/Users/Jonathan/.atom/packages/block-comment/lib/block-comment.coffee:9:22)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Jonathan\AppData\Local\atom\app-1.8.0\resources\app.asar\src\command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (C:\Users\Jonathan\AppData\Local\atom\app-1.8.0\resources\app.asar\src\command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Jonathan\AppData\Local\atom\app-1.8.0\resources\app.asar\src\command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (C:\Users\Jonathan\AppData\Local\atom\app-1.8.0\resources\app.asar\src\atom-environment.js:1106:28)
    at EventEmitter.outerCallback (C:\Users\Jonathan\AppData\Local\atom\app-1.8.0\resources\app.asar\src\application-delegate.js:340:25)
    at emitThree (events.js:97:13)
    at EventEmitter.emit (events.js:175:7)

Commands

     -0:07.5.0 block-comment:toggle (div.line)
  2x -0:00.3.0 core:backspace (input.hidden-input)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "disabledPackages": [
      "refactor",
      "symbols-view",
      "omnisharp-atom",
      "json-schema",
      "atom-yeoman"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "jasmine-runner",
      "tree-view"
    ],
    "projectHome": "C:\\Development",
    "themes": [
      "atom-material-ui",
      "new-moon-atom-syntax"
    ]
  }
}

Installed Packages

# User
aligner, v0.22.0
aligner-ruby, v1.4.0
angularjs, v0.3.4
atom-jasmine, v0.8.1
atom-material-ui, v1.2.13
autoclose-html, v0.23.0
autocomplete-paths, v1.0.2
block-comment, v0.4.3
blocky, v0.8.0
color-picker, v2.2.2
column-select, v0.2.0
docblockr, v0.7.3
double-tag, v0.2.0
editorconfig, v1.4.1
feedback, v0.38.0
file-icons, v1.7.17
highlight-selected, v0.11.2
language-batch, v0.3.3
language-cshtml, v0.2.1
language-gherkin, v1.0.4
language-powershell, v2.1.1
language-puppet, v0.19.1
linter, v1.11.14
linter-jscs, v4.0.5
linter-jshint, v2.1.0
linter-rubocop, v0.4.7
minimap, v4.24.7
minimap-highlight-selected, v4.4.0
minitest-snippets, v0.2.0
new-moon-atom-syntax, v2.0.6
open-recent, v5.0.0
pretty-json, v1.4.4
ruby-block, v0.3.5
save-session, v0.16.0
script, vundefined
sync-settings, v0.7.2
tab-switcher, v1.5.3

# Dev
No dev packages