scope-inspector icon indicating copy to clipboard operation
scope-inspector copied to clipboard

Uncaught TypeError: Cannot read property 'length' of undefined

Open azat-co opened this issue 9 years ago • 0 comments

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.0 System: Mac OS X 10.10.3 Thrown From: scope-inspector package, v1.0.1

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At /Users/azat/.atom/packages/scope-inspector/lib/scope-view-single.coffee:8

TypeError: Cannot read property 'length' of undefined
  at Object.content (/Users/azat/.atom/packages/scope-inspector/lib/scope-view-single.coffee:8:79)
  at Builder.tag (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:281:19)
  at Function.View.(anonymous function) (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:83:49)
  at Function.module.exports.ScopeView.content (/Users/azat/.atom/packages/scope-inspector/lib/scope-view-single.coffee:6:6)
  at Function.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:156:31)
  at Function.View.buildHtml (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:123:10)
  at ScopeView.View (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:155:33)
  at new ScopeView (/Users/azat/.atom/packages/scope-inspector/lib/scope-view-single.coffee:5:3)
  at ScopeInspectorView.module.exports.ScopeInspectorView.renderScope (/Users/azat/.atom/packages/scope-inspector/lib/scope-inspector-view.coffee:61:27)
  at Inspection.module.exports.Inspection.onCursorMoved (/Users/azat/.atom/packages/scope-inspector/lib/inspection.coffee:86:33)
  at Inspection.module.exports.Inspection.onSaved (/Users/azat/.atom/packages/scope-inspector/lib/inspection.coffee:138:6)
  at delayed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/node_modules/lodash/dist/lodash.js:5409:27)

Commands

     -0:15.6.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
  2x -0:13.5.0 editor:duplicate-lines (atom-text-editor.editor.is-focused)
  2x -0:12.3.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:11.2.0 editor:move-to-end-of-word (atom-text-editor.editor.is-focused)
     -0:10.6.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:10.3.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
  2x -0:09.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:08.9.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:08.5.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:08.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:05.9.0 editor:indent-selected-rows (atom-text-editor.editor.is-focused)
     -0:05.3.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:04.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:03.3.0 editor:indent-selected-rows (atom-text-editor.editor.is-focused)
     -0:03.0 core:save (atom-text-editor.editor.is-focused)
  3x -0:02.3.0 core:move-down (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ],
    "disabledPackages": [
      "autocomplete-atom-api",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor",
      "refactor"
    ]
  }
}

Installed Packages

# User
color-picker, v2.0.7
jshint, v1.3.8
language-babel, v0.8.1
language-javascript-jsx, v0.3.6
minimap, v4.10.1
react, v0.12.3
react-snippets, v0.1.4
scope-inspector, v1.0.1

# Dev
No dev packages

azat-co avatar Jul 01 '15 14:07 azat-co