You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Uncaught TypeError: undefined is not a function #4775
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
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)
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)
/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?)
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.
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)
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.
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)
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.
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!
Activity
CyberShadow commentedon Jan 1, 2015
Getting a different stack trace here:
francodacosta commentedon Jan 6, 2015
here is my stack trace
lynchpin4 commentedon Jan 6, 2015
happens after switching out of a tab containing the webview.
& also keyboard backspace doesn't work (maybe related to the guy above me?)
abe33 commentedon Jan 10, 2015
Guys,
undefined is not functionis 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.shingonoide commentedon Jan 21, 2015
👍 to @abe33 explanation
izuzak commentedon Feb 10, 2015
Noticed again in #5478.
@bigblind can you reproduce the problem if you start Atom in safe mode?
carlosh2k4 commentedon Mar 6, 2015
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.
CyberShadow commentedon Mar 6, 2015
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.
jaygriz commentedon Mar 21, 2015
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...
jaygriz commentedon Mar 21, 2015
[Enter steps to reproduce below:]
Atom Version: 0.187.0
System: Microsoft Windows 7 Ultimate
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: undefined is not a function
Commands
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
kevinsawicki commentedon Jul 7, 2015
This is really strange, the
sendfunction is missing on theChildProcessinstance 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.
lock commentedon Jan 21, 2019
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!