OleMchls / atom-wordcount

Counts the words in your current document
https://atom.io/packages/wordcount
MIT License
38 stars 27 forks source link

Uncaught TypeError: Cannot read property 'match' of undefined #103

Open holleyy opened 6 years ago

holleyy commented 6 years ago

[Enter steps to reproduce:]

  1. ... Open a document
  2. ... Wait
  3. ... Errors (see below)

Atom: 1.29.0 x64 Electron: 2.0.5 OS: Mac OS X 10.13.6 Thrown From: wordcount package 3.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'match' of undefined

At /Users/alexanderholley/.atom/packages/wordcount/lib/main.coffee:168

TypeError: Cannot read property 'match' of undefined
    at Object.show_or_hide_for_item (/packages/wordcount/lib/main.coffee:168:5)
    at /packages/wordcount/lib/main.coffee:145:8
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at Workspace.didChangeActivePaneItemOnPaneContainer (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:443:26)
    at WorkspaceCenter.paneContainer.onDidChangeActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace-center.js:17:20)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at PaneContainer.didChangeActiveItemOnPane (/Applications/Atom.app/Contents/Resources/app/src/pane-container.js:285:26)
    at PaneContainer.didActivatePane (/Applications/Atom.app/Contents/Resources/app/src/pane-container.js:263:18)
    at Pane.activate (/Applications/Atom.app/Contents/Resources/app/src/pane.js:1018:46)
    at Pane.focus (/Applications/Atom.app/Contents/Resources/app/src/pane.js:401:23)
    at HTMLElement.handleFocus (/app.asar/src/pane-element.js:41:20)

Commands

     -5:03.7.0 core:cut (input.hidden-input)
     -5:01.9.0 core:paste (input.hidden-input)
  4x -4:53 core:backspace (input.hidden-input)

Non-Core Packages

change-case 0.6.5 
counter 0.3.5 
document-outline 2.1.2 
hey-pane 1.1.0 
language-markdown 0.26.0 
linen-light-syntax 0.3.0 
markdown-img-paste 0.3.11 
markdown-pdf 2.2.0 
markdown-scroll-sync 2.1.2 
markdown-table-editor 1.1.1 
markdown-toc 0.4.2 
markdown-writer 2.9.0 
pen-paper-coffee-syntax 0.17.0 
teletype 0.13.3 
tidy-markdown 3.0.1 
wordcount 3.0.0 
Zen 0.18.0