Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Uncaught TypeError: undefined is not a function #10

@tomwganem

Description

@tomwganem

[Enter steps to reproduce below:]

  1. close a tab with ruby code in it.

Atom Version: 0.194.0 ⚠️ in 1.0 API Preview Mode ⚠️
System: Mac OS X 10.10.3
Thrown From: linter-ruby package, v0.1.4

Stack Trace

Uncaught TypeError: undefined is not a function

At /Users/tomwganem/.atom/packages/linter-ruby/lib/linter-ruby.coffee:30

TypeError: undefined is not a function
  at LinterRuby.destroy (/Users/tomwganem/.atom/packages/linter-ruby/lib/linter-ruby.coffee:30:17)
  at LinterView.remove (/Users/tomwganem/.atom/packages/linter/lib/linter-view.coffee:252:7)
  at /Users/tomwganem/.atom/packages/linter/lib/linter-view.coffee:124:8
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:279:27)
  at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/model.js:45:58)
  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:444:18)
  at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:419:12)
  at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:582:35)
  at Workspace.module.exports.Workspace.destroyActivePaneItemOrEmptyPane (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:621:21)
  at atom-workspace.atom.commands.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:307:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238: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:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands

  3x -5:16 core:backspace (atom-text-editor.editor.mini)
     -4:20.5.0 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
     -0:41.6.0 application:add-project-folder (atom-text-editor.editor.is-focused)
     -0:31.7.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -0:22 find-and-replace:show (atom-text-editor.editor.is-focused)
  2x -0:20 core:backspace (atom-text-editor.editor.mini)
     -0:18.7.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.mini)
  7x -0:16 core:backspace (atom-text-editor.editor.mini)
     -0:05.8.0 pane:split-left (atom-text-editor.editor.is-focused)
     -0:02.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai"
    ],
    "disabledPackages": [
      "vim-mode",
      "git-plus",
      "Zen",
      "git-difftool",
      "tabular",
      "autoclose-html",
      "minimap-color-highlight",
      "terminal-panel",
      "regex-railroad-diagram",
      "git-show",
      "symbols-view"
    ]
  }
}

Installed Packages

# User
angularjs, v0.1.0
atom-ctags, v3.1.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.12.0
autocomplete-ruby, v0.1.0
editor-stats, v0.17.0
git-diff-popup, v0.1.2
language-jade, v0.4.0
last-cursor-position, v0.8.0
linter, v0.12.1
linter-ruby, v0.1.4
minimap, v4.7.6
minimap-git-diff, v4.1.2
monokai, v0.14.0
ruby-block, v0.3.3
todo-show, v0.8.0

# Dev
No dev packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions