js-padavan / atom-css-class-checker

This plugin checks matching of used classes and ids in HTML files with classes and ids described in CSS files
MIT License
4 stars 2 forks source link

Uncaught TypeError: undefined is not a function #6

Open petrsimon opened 9 years ago

petrsimon commented 9 years ago

Running "Open source" on the class in <ion-modal-view class="dialog-project-overview">, which is defined in SCSS, not CSS.

Atom Version: 1.0.4 System: Mac OS X 10.10.4 Thrown From: atom-css-class-checker package, v0.4.3

Stack Trace

Uncaught TypeError: undefined is not a function

At /Users/petr/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:244

TypeError: undefined is not a function
  at /Users/petr/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:244:40
  at Manager.openSource (/Users/petr/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:272:18)
  at atom-workspace.Manager.atom.commands.add.atom-css-class-checker:open-source (/Users/petr/.atom/packages/atom-css-class-checker/lib/atom-css-class-checker-manager.coffee:25:8)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241: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:241: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:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)

Commands

     -1:04.7.0 atom-css-class-checker:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:00.7.0 vim-mode:scroll-full-screen-up (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  2x -0:56.3.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:40.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:36.2.0 atom-css-class-checker:toggle (atom-text-editor.editor.vim-mode.normal-mode)
     -0:31.3.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:27.3.0 atom-css-class-checker:toggle (atom-text-editor.editor.vim-mode.normal-mode)
     -0:22.5.0 vim-mode:move-to-previous-whole-word (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  2x -0:09.1.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  2x -0:04.6.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:03.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:03.9.0 atom-css-class-checker:open-source (atom-text-editor.editor.vim-mode.normal-mode)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "solarized-light-syntax"
    ],
    "disabledPackages": [
      "scope-inspector"
    ]
  }
}

Installed Packages

# User
.bin, vundefined
Sass-Syntax-Highlight, v0.1.1
ScssBundle, v0.5.0
angularjs, v0.3.0
atom-css-class-checker, v0.4.3
atom-ternjs, v0.7.1
atom-typescript, v5.2.4
autocomplete-paths, v1.0.2
autocomplete-sass, v0.1.0
color-picker, v2.0.11
css-snippets, v0.8.0
emmet, v2.3.12
file-icons, v1.6.2
javascript-snippets, v1.0.0
jshint, v1.3.10
language-SCSS, v0.4.0
linter, v1.3.0
linter-scss-lint, v2.0.0
markdown-preview-plus, v1.6.0
minimap, v4.12.2
pigments, v0.9.3
preview-plus, v1.2.6
project-manager, v1.15.11
red-wavy-underline, v0.3.0
vim-mode, v0.57.0
vim-mode-visual-block, v0.2.13
vim-surround, v0.8.0

# Dev
No dev packages