[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
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)
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)
emmet 2.4.3
open-in-browsers 0.0.30
script 3.25.0
when ever I try to run my code by pressing keys ctrl + shift + B. The down pane opens up and shows output of the code. When ever I try to close the pane it raises an error. Please look into this issue, it's very irritating.
Im trying to fix this, but for know fou can use ctrl-shift-f5. And i know, it's not solution
when ever I try to run my code by pressing keys ctrl + shift + B. The down pane opens up and shows output of the code. When ever I try to close the pane it raises an error. Please look into this issue, it's very irritating.
I am getting the same error. It was fine until yesterday. I think there is something wrong with the library that deals with MessagePanelView
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 annoying
MacOS: Mojave 10.14.6 (18G103)
Atom: 1.40.1 x64
When the output pane is stuck already, i also get an error thrown when I press ESC
This same issue is happening in Mac OS as well.
Atom: 1.41.0
OS : Catalina 10.15.1.
The same error occurs when I try to kill this process.
Atom 1.41.0 x64锛寃in10
Same issue here
This same issue is happening in Mac OS as well.
Atom: 1.41.0
OS : Catalina 10.15.1.
+1
Same issue here. Windows 10, Atom 1.41.0 x64
I have the same issue, also occurs when I press ESC or use CTRL+W. Ubuntu 18.04, Atom 1.40.0
same with @AStartledRaccoon
Still no solution to this issue? :(
Here's a temporary solution. Modify function in line 187 under
.atom\packages\script\node_modulesatom-message-panellib\MessagePanelView.js
from
MessagePanelView.prototype.remove = function (index) {
this.messages.splice(-index, 1);
this.body.children()[index].remove();
};
to:
MessagePanelView.prototype.remove = function (index) {
$('.native-key-bindings.script-view').remove();
};
@medardm 's solution worked for me!
@AStartledRaccoon I'm glad it worked. :)
It works also for me thanks
[Enter steps to reproduce:]
Atom: 1.41.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15
Thrown From: script package 3.25.0
Uncaught TypeError: Cannot read property 'remove' of undefined
```
At /Users/jasonli/.atom/packages/script/node_modules/atom-message-panel/lib/MessagePanelView.js:188
Thank's @medardm for the fix !
Maybe you could made a pull request to include it ?
I will when I find a long term solution. Because the solution I introduced was an adjustment with one of the dependencies, not with the actual package.
When I press escape and or try to close the output panel I get this error.
@medardm Could you tell us which dependecy you used? So we can use your fix. Thanks!
@medardm Thanks for the fix!!!
@medardm thanks I hadn't seen that solution. It works
same issue here, please fix it!
Windows 10 | Atom 1.41.0 x64
@CharaDraemurr I didn't change any of the dependencies, just modified a line of code on one of the dependencies of this package, but this is not a long term solution.
Here's a temporary solution. Modify function in line 187 under
.atom\packages\script\node_modulesatom-message-panellib\MessagePanelView.js
fromMessagePanelView.prototype.remove = function (index) { this.messages.splice(-index, 1); this.body.children()[index].remove(); };to:
MessagePanelView.prototype.remove = function (index) { $('.native-key-bindings.script-view').remove(); };
Just downloaded this package and found this bug, please fix it!
@Fellox . There's already a PR to fix this issue (#2004). You can review it on your side. I already checked it and it works
Here's a temporary solution. Modify function in line 187 under
.atom\packages\script\node_modulesatom-message-panellib\MessagePanelView.js
fromMessagePanelView.prototype.remove = function (index) { this.messages.splice(-index, 1); this.body.children()[index].remove(); };to:
MessagePanelView.prototype.remove = function (index) { $('.native-key-bindings.script-view').remove(); };
That is the solution for now. Thanks for it. :)
nice bro, works for me.
Thanks!
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.
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.
I had a similar problem. Gave up on it for now.
I also still have this issue. Panel could be removed after modifying the source as you suggested, but it was only working one time. I mean, if I removed the panel before and run again the script, then I cannot remove the panel.
@junepark6 I had a similar problem. But follow below to make changes and it worked for me.
go to .atom\packages\script\node_modulesatom-message-panellib\MessagePanelView.js
MessagePanelView.prototype.remove = function (index) {
this.messages.splice(-index, 1);
this.body.children().remove(index);
};
@wesgt That appears to have worked for me as well. Thanks!
It fixed itself for me... Didn't make any changes, but all's good now! :)
@wesgt I now have a problem after your fix where i cant run the program after i close the script window
@wesgt thanks!
Most helpful comment
Here's a temporary solution. Modify function in line 187 under
.atom\packages\script\node_modulesatom-message-panellib\MessagePanelView.js
from
to: