Closed mjmerrell closed 3 years ago
I got the same error.
Got the same error on attempts to close Script window.
ctrl+shift+B
to run the Python scriptAtom: 1.41.0 x64 Electron: 4.2.7 OS: Debian GNU/Linux Thrown From: script package 3.25.0
Uncaught TypeError: Cannot read property 'remove' of undefined
At ~/.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/atom-toolbar/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:349392)
at CommandRegistry.dispatch (/usr/share/atom/resources/app/static/<embedded>:11:347867)
at ScriptView.close (/packages/script/lib/script-view.js:99:19)
at /packages/atom-toolbar/node_modules/space-pen/lib/space-pen.js:220:36)
at HTMLDivElement.dispatch (/packages/atom-toolbar/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLDivElement.elemData.handle (/packages/atom-toolbar/node_modules/jquery/dist/jquery.js:4121:28)
-0:22.8.0 editor:move-to-end-of-screen-line (input.hidden-input)
-0:22.6.0 editor:newline (input.hidden-input)
-0:16.4.0 intentions:highlight (input.hidden-input)
-0:16 script:run (input.hidden-input)
-0:11.2.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-atom-material-syntax.theme-atom-dark-ui)
atom-beautify 0.33.4
atom-history 1.0.8
atom-keyboard-macros 0.12.1
atom-material-syntax 1.0.8
atom-toolbar 0.1.6
busy-signal 2.0.1
git-history 3.3.0
intentions 1.1.5
linter 2.3.1
linter-shellcheck 1.6.0
linter-ui-default 1.8.0
markdown-preview-enhanced 0.17.0
script 3.25.0
sequential-number 0.5.0
split-diff 1.6.1
@arashilmg, here's an idea: fix it yourself. You have a right to feel frustrated but there's no need for this kind of talk here. #1550
@jmiskinis this could be easily fixed by just reverting changes to previous working version
I found the same error in #1222
The error occurred due to the atom-message-panel package version update. The remove method of the MessagePanelView class in the atom-message-panel package appears to have been added.
The temporary way to avoid the problem is the same as before. Open the package.json file, modify the atom-message-panel version to 1.2.7, and then npm update.
"atom-message-panel": "1.2.7"
@neur0hak This fixes the error on the first run. But Script fails to run afterwards.
Got the same problem! :(
I have the same problem. How do i list my installed packages?
I'm on Windows
I found the same error in #1222
The error occurred due to the atom-message-panel package version update. The remove method of the MessagePanelView class in the atom-message-panel package appears to have been added.
The temporary way to avoid the problem is the same as before. Open the package.json file, modify the atom-message-panel version to 1.2.7, and then npm update.
"atom-message-panel": "1.2.7"
the solution indeed worked, but I had to run "apm clean" "apm install" instead of npm update... (I'm on mac)
@jmiskinis this could be easily fixed by just reverting changes to previous working version
To do that: apm install script@3.18
Worked for me!
edit: oh haha, I just realized you're talking about the development, not the install
Same problem on Windows 10
The following steps worked for me:
download version 3.5.0 of jquery.js from this link https://code.jquery.com/jquery-3.5.0.js
replace the jquery.js file in the following folder: ~/.atom/packages/script/node_modules/jquery/dist/jquery.js
restart atom
@ongbuntu Thank you! That worked for me too! (Windows 10)
@ongbuntu Thank you! That worked for me too! (Windows 10)
You are welcomed. Glad it helps.
[Enter steps to reproduce:]
Running on OSX Mojave
Atom: 1.41.0 x64 Electron: 4.2.7 OS: Mac OS X 10.14.6 Thrown From: script package 3.25.0
Stack Trace
Uncaught TypeError: Cannot read property 'remove' of undefined
Commands
Non-Core Packages