atom-script: Uncaught TypeError: Cannot read property 'remove' of undefined
[Enter steps to reproduce:]
- …
- …
Atom: 1.40.1 x64 Electron: 3.1.10 OS: Ubuntu 18.04.3 Thrown From: script package 3.25.0
Stack Trace
Uncaught TypeError: Cannot read property ‘remove’ of undefined
At /home/paul/.atom/packages/script/node_modules/atom-message-panel/lib/MessagePanelView.js:189
TypeError: Cannot read property 'remove' of undefined
at ScriptView.MessagePanelView.remove (/packages/script/node_modules/atom-message-panel/lib/MessagePanelView.js:189:30)
at ScriptView.detach (/packages/open-in-browsers/node_modules/jquery/dist/jquery.js:5357:15)
at ScriptView.removePanel (/packages/script/lib/script-view.js:89:10)
at Object.closeScriptViewAndStopRunner (/packages/script/lib/script.js:161:21)
at HTMLElement.scriptCloseView (/packages/script/lib/script.js:94:39)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:349123)
at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:347598)
at ScriptView.close (/packages/script/lib/script-view.js:99:19)
at /packages/open-in-browsers/node_modules/space-pen/lib/space-pen.js:220:36)
at HTMLDivElement.dispatch (/packages/open-in-browsers/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLDivElement.elemData.handle (/packages/open-in-browsers/node_modules/jquery/dist/jquery.js:4121:28)
Commands
4x -0:24.8.0 core:save (input.hidden-input)
-0:22.7.0 core:close (input.hidden-input)
-0:22 editor:consolidate-selections (input.hidden-input)
-0:22 core:cancel (input.hidden-input)
-0:21.4.0 editor:consolidate-selections (input.hidden-input)
-0:21.4.0 core:cancel (input.hidden-input)
-0:21.2.0 editor:consolidate-selections (input.hidden-input)
-0:21.2.0 core:cancel (input.hidden-input)
-0:21.1.0 editor:consolidate-selections (input.hidden-input)
-0:21.1.0 core:cancel (input.hidden-input)
-0:20.9.0 editor:consolidate-selections (input.hidden-input)
-0:20.9.0 core:cancel (input.hidden-input)
-0:20.7.0 editor:consolidate-selections (input.hidden-input)
-0:20.7.0 core:cancel (input.hidden-input)
-0:14.3.0 core:close (atom-pane.pane.active)
-0:05.7.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
Non-Core Packages
emmet 2.4.3
open-in-browsers 0.0.30
script 3.25.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 22
- Comments: 38
Here’s a temporary solution. Modify function in line 187 under .atom\packages\script\node_modules\atom-message-panel\lib\MessagePanelView.js from
to:
@medardm 's solution worked for me!
This same issue is happening in Mac OS as well. Atom: 1.41.0 OS : Catalina 10.15.1.
This shows up on other keyboard shortcuts not dealing with the module as well. Not able to close active tabs using
cmd + w
is really annoyingMacOS: Mojave 10.14.6 (18G103) Atom: 1.40.1 x64
Im trying to fix this, but for know fou can use ctrl-shift-f5. And i know, it’s not solution
Thank’s @medardm for the fix ! Maybe you could made a pull request to include it ?
It works also for me thanks
When the output pane is stuck already, i also get an error thrown when I press ESC
@wesgt thanks!
@wesgt That appears to have worked for me as well. Thanks!
@junepark6 I had a similar problem. But follow below to make changes and it worked for me.
go to .atom\packages\script\node_modules\atom-message-panel\lib\MessagePanelView.js
This hasn’t worked for me 😦
Also, editing the files seems to have no effect, even if I intentionally add syntax errors or just comment out the code. I’m looking in
<Username>\.atom\packages\script\node_modules\atom-message-panel\lib
.