atom-community / atom-community/atom-script
Error when trying to close the python window
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
Here is a copy of the error message.
[Enter steps to reproduce:]
1. ...
2. ...
**Atom**: 1.45.0 x64
**Electron**: 4.2.7
**OS**: Ubuntu 18.04.4
**Thrown From**: [script](https://github.com/rgbkrk/atom-script) package 3.25.0
### Stack Trace
Uncaught TypeError: Cannot read property 'remove' of undefined
```
At /home/shenko/.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/script/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 (/snap/atom/248/usr/share/atom/resources/app/static/:11:349290)
at CommandRegistry.dispatch (/snap/atom/248/usr/share/atom/resources/app/static/:11:347765)
at ScriptView.close (/packages/script/lib/script-view.js:99:19)
at /packages/script/node_modules/space-pen/lib/space-pen.js:220:36)
at HTMLDivElement.dispatch (/packages/script/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLDivElement.elemData.handle (/packages/script/node_modules/jquery/dist/jquery.js:4121:28)
```
### Commands
```
-2:41.2.0 script:run (input.hidden-input)
4x -1:50.5.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-atom-dark-ui)
3x -0:55.8.0 script:run (input.hidden-input)
-0:40.8.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-atom-dark-ui)
```
### Non-Core Packages
```
kite 0.178.0
minimap 4.29.9
script 3.25.0
split-diff 1.6.1
```
Contributor guide
Assessment
This issue has not been assessed yet.