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

Uncaught TypeError: undefined is not a function #4775

Closed

Description

@frederikcreemers

Uncaught TypeError: undefined is not a function

Atom Version: 0.158.0
System: Mac OS X 10.10.1
Thrown From: Atom Core

Steps To Reproduce

Not sure, actually.

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/src/task.js:95

TypeError: undefined is not a function
  at Task.module.exports.Task.send (/Applications/Atom.app/Contents/Resources/app/src/task.js:95:27)
  at Task.module.exports.Task.start (/Applications/Atom.app/Contents/Resources/app/src/task.js:86:12)
  at Function.module.exports.Task.once (/Applications/Atom.app/Contents/Resources/app/src/task.js:21:18)
  at GitRepository.module.exports.GitRepository.refreshStatus (/Applications/Atom.app/Contents/Resources/app/src/git-repository.js:392:37)
  at /Applications/Atom.app/Contents/Resources/app/src/git-repository.js:81:26

Activity

  1. CyberShadow commented on Jan 1, 2015

    @CyberShadow

    Getting a different stack trace here:

    c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\window-event-handler.js:153
    Hide Stack Trace
    TypeError: undefined is not a function
      at HTMLDocument.<anonymous> (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\window-event-handler.js:153:20)
      at HTMLDocument.handler (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\space-pen-extensions.js:115:32)
      at HTMLDocument.jQuery.event.dispatch (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9)
      at HTMLDocument.elemData.handle (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\command-registry.js:243:29)
      at c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:549:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:391:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (c:\Users\Vladimir\AppData\Local\atom\app-0.165.0\resources\app\src\window-event-handler.js:167:20)
    
  2. francodacosta commented on Jan 6, 2015

    @francodacosta

    here is my stack trace

    TypeError: undefined is not a function
      at Config.module.exports.Config.getAll (/usr/local/share/atom/resources/app/src/config.js:189:57)
      at LanguageMode.module.exports.LanguageMode.toggleLineCommentsForBufferRows (/usr/local/share/atom/resources/app/src/language-mode.js:33:39)
      at TextEditor._results.push._this.(anonymous function) [as toggleLineCommentsForBufferRows] (/usr/local/share/atom/resources/app/node_modules/delegato/lib/delegator.js:67:61)
      at Selection.module.exports.Selection.toggleLineComments (/usr/local/share/atom/resources/app/src/selection.js:658:68)
      at /usr/local/share/atom/resources/app/src/text-editor.js:1054:26
      at /usr/local/share/atom/resources/app/src/text-editor.js:781:27
      at History.module.exports.History.transact (/usr/local/share/atom/resources/app/node_modules/text-buffer/lib/history.js:115:18)
      at TextBuffer.module.exports.TextBuffer.transact (/usr/local/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
      at TextEditor.module.exports.TextEditor.transact (/usr/local/share/atom/resources/app/src/text-editor.js:1150:26)
      at TextEditor.module.exports.TextEditor.mutateSelectedText (/usr/local/share/atom/resources/app/src/text-editor.js:774:19)
      at TextEditor.module.exports.TextEditor.toggleLineCommentsInSelection (/usr/local/share/atom/resources/app/src/text-editor.js:1053:19)
      at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.editor:toggle-line-comments (/usr/local/share/atom/resources/app/src/text-editor-element.js:585:19)
      at /usr/local/share/atom/resources/app/src/text-editor-element.js:291:34
      at History.module.exports.History.transact (/usr/local/share/atom/resources/app/node_modules/text-buffer/lib/history.js:115:18)
      at TextBuffer.module.exports.TextBuffer.transact (/usr/local/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
      at TextEditor.module.exports.TextEditor.transact (/usr/local/share/atom/resources/app/src/text-editor.js:1150:26)
      at atom-text-editor.newCommandListeners.(anonymous function) (/usr/local/share/atom/resources/app/src/text-editor-element.js:290:22)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/local/share/atom/resources/app/src/command-registry.js:243:29)
      at /usr/local/share/atom/resources/app/src/command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/local/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/local/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/local/share/atom/resources/app/src/window-event-handler.js:167:20)
    
  3. lynchpin4 commented on Jan 6, 2015

    @lynchpin4
    /Applications/Atom.app/Contents/Resources/atom/renderer/lib/web-view.js:380
    TypeError: undefined is not a function
      at WebView.handleBrowserPluginAttributeMutation (/Applications/Atom.app/Contents/Resources/atom/renderer/lib/web-view.js:380:62)
      at browserplugin.proto.attributeChangedCallback (/Applications/Atom.app/Contents/Resources/atom/renderer/lib/web-view.js:598:23)
    

    happens after switching out of a tab containing the webview.
    & also keyboard backspace doesn't work (maybe related to the guy above me?)

  4. abe33 commented on Jan 10, 2015

    @abe33
    Contributor

    Guys, undefined is not function is probably one of the most common issues in javascript history. If the source in the stack is different it should be filled as different issues.

  5. shingonoide commented on Jan 21, 2015

    @shingonoide

    👍 to @abe33 explanation

  6. izuzak commented on Feb 10, 2015

    @izuzak
    Contributor

    Noticed again in #5478.

    @bigblind can you reproduce the problem if you start Atom in safe mode?

  7. carlosh2k4 commented on Mar 6, 2015

    @carlosh2k4

    I just installed Atom for the first time and tried to install the "language-batch" package to get syntax highlighting for *.bat files.
    I got an error message that says "Compiler tools not found" in a red box. I get the TypeError any time I try to copy text from the red box using Ctrl+Insert.

    TypeError: undefined is not a function
      at HTMLDocument.<anonymous> (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\src\window-event-handler.js:168:20)
      at HTMLDocument.handler (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\src\space-pen-extensions.js:115:32)
      at HTMLDocument.jQuery.event.dispatch (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9)
      at HTMLDocument.elemData.handle (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\src\command-registry.js:243:29)
      at C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\src\command-registry.js:3:61
      at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:558:16)
      at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\node_modules\atom-keymap\lib\keymap-manager.js:396:22)
      at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\caha\AppData\Local\atom\app-0.186.0\resources\app\src\window-event-handler.js:182:20)
    
  8. CyberShadow commented on Mar 6, 2015

    @CyberShadow

    Guys, undefined is not function is probably one of the most common issues in javascript history. If the source in the stack is different it should be filled as different issues.

    FYI, the built-in bug reporter seems to look for existing GitHub issues with the same exception string, which is why it directed me to this one.

  9. jaygriz commented on Mar 21, 2015

    @jaygriz

    All I did was try and use the clip board, just installed a few days ago and have no real idea what I am doing.
    Nice program tho...

  10. jaygriz commented on Mar 21, 2015

    @jaygriz

    [Enter steps to reproduce below:]

    1. ...
    2. ...

    Atom Version: 0.187.0
    System: Microsoft Windows 7 Ultimate
    Thrown From: Atom Core

    Stack Trace

    Uncaught TypeError: undefined is not a function

    At C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\window-event-handler.js:168
    
    TypeError: undefined is not a function
      at HTMLDocument.<anonymous> (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\window-event-handler.js:168:20)
      at HTMLDocument.handler (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\space-pen-extensions.js:115:32)
      at HTMLDocument.jQuery.event.dispatch (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\node_modules\space-pen\vendor\jquery.js:4681:9)
      at HTMLDocument.elemData.handle (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\node_modules\space-pen\vendor\jquery.js:4359:46)
      at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\command-registry.js:246:29)
      at CommandRegistry.handleCommandEvent (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\command-registry.js:3:61)
      at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\command-registry.js:159:19)
      at EventEmitter.<anonymous> (C:\Users\jhgjr\AppData\Local\atom\app-0.187.0\resources\app\src\window-event-handler.js:75:30)
      at EventEmitter.emit (events.js:116:17)
    
    

    Commands

         -8:43.6 window:toggle-dev-tools (atom-text-editor.editor)
         -6:25.7 markdown-preview:toggle (atom-text-editor.editor)
         -2:18.1 styleguide:show (atom-text-editor.editor)
         -0:19.4 core:copy (div.styleguide.pane-item.native-key-bindings.padded)
    

    Config

    {
      "core": {
        "themes": [
          "atom-dark-ui",
          "atom-dark-syntax"
        ],
        "followSymlinks": true,
        "autoHideMenuBar": true
      },
      "editor": {
        "invisibles": {},
        "softWrap": true,
        "softWrapAtPreferredLineLength": true,
        "showInvisibles": true,
        "showIndentGuide": true
      }
    }

    Installed Packages

    this is the error

    # User
    minimap, v4.6.0
    
    # Dev
    No dev packages
  11. kevinsawicki commented on Jul 7, 2015

    @kevinsawicki
    Contributor

    This is really strange, the send function is missing on the ChildProcess instance which should always be there since it is part of the official API. I wonder if a package or library deleted it somehow.

    I'm going to close this out since we've upgraded several node/io.js versions since this was last hit and also the package listing is missing from the issue body so recreating it with the same packages won't be possible.

  12. lock commented on Jan 21, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  13. locked as resolved and limited conversation to collaborators on Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions