DavidLGoldberg / qolor

An atom package to color your queries!
https://atom.io/packages/qolor
MIT License
16 stars 3 forks source link

Error on switch language #14

Closed DavidLGoldberg closed 8 years ago

DavidLGoldberg commented 8 years ago

[Enter steps to reproduce below:]

  1. Open a SQL (Mustache) file
  2. Switch to SQL (Mustache)

Atom Version: 1.5.3 System: Mac OS X 10.9.4 Thrown From: grammar-selector package, v0.48.0

Stack Trace

Uncaught TypeError: this.update is not a function

At /Users/dgoldberg/github/qolor/lib/qolor-view.coffee:28

TypeError: this.update is not a function
    at /Users/dgoldberg/github/qolor/lib/qolor-view.coffee:28:18
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TextEditor.module.exports.TextEditor.handleGrammarChange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2812:27)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at TokenizedBuffer.module.exports.TokenizedBuffer.setGrammar (/Applications/Atom.app/Contents/Resources/app.asar/src/tokenized-buffer.js:201:27)
    at DisplayBuffer.module.exports.DisplayBuffer.setGrammar (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:848:35)
    at TextEditor.module.exports.TextEditor.setGrammar (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2411:33)
    at GrammarListView.module.exports.GrammarListView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/grammar-selector/lib/grammar-list-view.js:60:21)
    at GrammarListView.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:260: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:536:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:359:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  5x -0:22 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  7x -0:21.5.0 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  3x -0:20.9.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:18.6.0 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:17.4.0 vim-mode:move-to-line (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  3x -0:17 vim-mode:move-up (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:16 emmet:toggle-comment (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:16 editor:toggle-line-comments (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:15.6.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:15 vim-mode:move-up (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:14.8.0 vim-mode:undo (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:13.7.0 grammar-selector:show (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:11.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:08.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:08.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:08.5.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "live-archive",
      "neon-selection",
      "remote-sync",
      "theme-roulette",
      "search",
      "minimap-color-highlight",
      "switch-branch",
      "linter-rubocop",
      "atom-beautify",
      "wakatime",
      "tabs-to-spaces",
      "build",
      "git-blame",
      "neon-cursor",
      "coffee-navigator",
      "linter-shellcheck"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.4
bookmarklet, v0.7.1
bottom-dock, v0.3.7
bug-report, v0.7.1
build-npm-apm, v0.8.0
coffee-refactor, v0.7.0
color-picker, v2.1.1
command-logger, v0.23.0
copy-filename, v1.0.1
editor-stats, v0.17.0
emmet, v2.4.1
git-log, v0.4.1
git-tab-status, v1.9.2
highlight-selected, v0.11.2
hyperclick, v0.0.35
indentation-indicator, v0.6.0
js-hyperclick, v1.4.1
js-refactor, v0.6.0
jumpy, v3.0.2
language-aspx, v0.4.0
language-cjsx, v0.3.0
language-csharp, v0.11.0
language-generic-config, v1.0.0
language-gitignore, v0.2.0
language-javascript-jsx, v0.3.7
language-javascript-semantic, v0.2.1
language-splunk, v0.1.1
linter, v1.11.3
linter-alex, v2.0.0
linter-coffee-variables, v0.5.0
linter-coffeelint, v1.1.2
linter-csslint, v1.3.1
linter-eslint, v7.0.0
linter-flake8, v1.12.0
linter-gcc, v0.6.7
linter-javac, v1.7.0
linter-jsonlint, v1.1.6
linter-just-say-no, v0.6.1
linter-less, v2.4.2
linter-lua, v1.0.1
linter-manager, v0.2.8
linter-markdown, v1.5.0
linter-perl, v0.7.2
linter-ruby, v1.2.2
linter-tidy, v2.1.0
linter-write-good, v0.6.1
minimap, v4.19.0
minimap-find-and-replace, v4.4.0
minimap-git-diff, v4.1.8
minimap-highlight-selected, v4.3.1
minimap-linter, v1.1.1
minimap-pigments, v0.1.7
open-recent, v5.0.0
pain-split, v1.4.0
pigments, v0.24.1
qolor, v0.2.1
quick-highlight, v0.3.10
react, v0.14.1
refactor, v0.6.0
regex-railroad-diagram, v0.11.0
rest-client, v0.5.1
soft-wrap-indicator, v0.7.0
trailing-spaces, v0.3.2
vim-mode, v0.64.0
vim-surround, v0.8.1
white-cursor, v0.6.0
wordcount, v2.6.0

# Dev
indentation-indicator, v0.6.0
jumpy, v3.0.2
pigments, v0.19.1
qolor, v0.2.1
quick-highlight, v0.2.2