atom-community / atom-community/atom-script

Uncaught TypeError: Cannot read property 'lang' of null

Open
#2,554 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.58.0 x64
**Electron**: 9.4.4
**OS**: macOS 11.5.1
**Thrown From**: [script](https://github.com/atom-ide-community/atom-script) package 3.32.2

### Stack Trace

Uncaught TypeError: Cannot read property 'lang' of null

```
At /Users/drewmelancon/.atom/packages/script/lib/script.js:117

TypeError: Cannot read property 'lang' of null
at /packages/script/lib/script.js:117:32
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1186925)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1188366)
at /packages/script/lib/script-options-view.js:160:20
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/:11:1186925)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/:11:1188366)
at HTMLElement.coreConfirm (/packages/script/lib/script-input-view.js:46:24)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:352326)
at KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:1227728)
at KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:1223862)
at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/static/:11:286651)
```

### Commands

```
-0:48.4.0 core:paste (input.hidden-input)
-0:36.2.0 core:confirm (input.hidden-input)
-0:34.5.0 editor:consolidate-selections (input.hidden-input)
-0:33.6.0 core:cancel (atom-pane.pane.active)
-0:30.1.0 command-palette:toggle (atom-pane.pane.active)
-0:25.4.0 core:confirm (input.hidden-input)
-0:25.4.0 script:run-with-profile (atom-pane.pane.active)
-0:23.7.0 editor:consolidate-selections (input.hidden-input)
-0:23.7.0 core:cancel (input.hidden-input)
-0:19.2.0 command-palette:toggle (atom-pane.pane.active)
-0:15.4.0 core:confirm (input.hidden-input)
-0:15.4.0 script:run-options (atom-pane.pane.active)
-0:14.4.0 core:move-down (input.hidden-input)
-0:13.5.0 core:paste (input.hidden-input)
-0:08.3.0 core:confirm (input.hidden-input)
-0:06.6.0 command-palette:toggle (input.hidden-input)
```

### Non-Core Packages

```
atom-clock 0.1.18
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-datatip 0.25.0
atom-ide-definitions 0.4.2
atom-ide-hyperclick 1.0.11
atom-ide-markdown-service 2.1.0
atom-ide-outline 3.2.0
atom-ide-signature-help 0.16.0
atom-material-syntax 1.0.8
atom-material-ui 2.1.3
atom-turtle 0.1.0
autocomplete-python 1.17.0
busy-signal 2.0.1
cell-navigation 0.1.0
data-explorer 0.7.0
file-icons 2.1.47
Hydrogen 2.16.3
hydrogen-cell-separator 0.4.1
hydrogen-launcher 1.2.2
hydrogen-python 0.0.8
hydrogen-run 0.1.13
ide-python 1.9.7
ide-r 0.1.8
intentions 2.1.1
ipython-exec 1.2.0
linter 3.4.0
linter-flake8 2.4.0
linter-ui-default 3.4.1
platformio-ide-terminal 2.10.1
predawn-ui 1.0.7
python-autopep8 0.1.3
python-debugger 0.2.0
script 3.32.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.