Closed silvernode closed 7 years ago
Change line 75 of /.atom/packages/crystal/lib/util/compiler.js
from:
if (match.length === 2) {
to
if (!match && match.length === 2) {
Only been testing for 1 minute, though.
Still appears to be an issue. Gets thrown on occasion
[Enter steps to reproduce:]
Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.5 Thrown From: crystal package 0.2.1
Uncaught TypeError: Cannot read property 'length' of null
At /Users/<username>/.atom/packages/crystal/lib/util/compiler.js:75
TypeError: Cannot read property 'length' of null
at /packages/crystal/lib/util/compiler.js:75:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
2x -2:48.6.0 core:move-right (input.hidden-input)
-2:47.1.0 core:backspace (input.hidden-input)
15x -2:45.9.0 core:move-right (input.hidden-input)
3x -2:43 core:select-right (input.hidden-input)
-2:41.8.0 core:backspace (input.hidden-input)
-2:41.2.0 core:move-right (input.hidden-input)
-2:40.4.0 core:move-up (input.hidden-input)
5x -2:39.4.0 core:move-right (input.hidden-input)
5x -2:38.3.0 core:select-right (input.hidden-input)
-2:35.9.0 core:backspace (input.hidden-input)
-2:34.5.0 autocomplete-plus:cancel (input.hidden-input)
-2:34.2.0 core:move-down (input.hidden-input)
5x -2:33.9.0 core:move-left (input.hidden-input)
23x -2:33.1.0 core:select-right (input.hidden-input)
2x -2:27.1.0 core:save (input.hidden-input)
2x -0:08.8.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
atom-beautify 0.30.3
atom-material-syntax 1.0.6
autocomplete-elixir 1.5.14
busy 0.7.0
busy-signal 1.4.3
crystal 0.2.1
file-icons 2.1.8
flatwhite-syntax 0.8.1
intentions 1.1.2
isotope-light-ui 2.2.7
language-crystal-actual 0.35.0
language-elixir 0.19.0
language-rust 0.4.11
linter 2.2.0
linter-clang 4.1.1
linter-elixirc 1.6.0
linter-rust 0.8.0
linter-ui-default 1.6.2
nucleus-dark-ui 0.12.3
platformio-ide-terminal 2.5.2
racer 0.20.0
rustfmt 0.1.3
rustsym 0.3.1
symbols-tree-view 0.14.0
This error is always thrown.
[Enter steps to reproduce:]
Open any crystal file OR Save any crystal file
Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.6 Thrown From: crystal package 0.2.1
Uncaught TypeError: Cannot read property 'length' of null
At /Users/tecphonik/.atom/packages/crystal/lib/util/compiler.js:75
TypeError: Cannot read property 'length' of null
at /packages/crystal/lib/util/compiler.js:75:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
6x -2:48.1.0 core:select-up (input.hidden-input)
-2:46.2.0 core:move-right (input.hidden-input)
-2:45.6.0 editor:select-to-first-character-of-line (input.hidden-input)
6x -2:45.4.0 core:select-up (input.hidden-input)
-2:43.8.0 core:move-right (input.hidden-input)
-2:43.4.0 editor:select-to-first-character-of-line (input.hidden-input)
6x -2:43.1.0 core:select-up (input.hidden-input)
-2:41.6.0 core:move-right (input.hidden-input)
-1:30.8.0 editor:newline (input.hidden-input)
-1:30.3.0 core:save (input.hidden-input)
-1:25.7.0 editor:select-to-first-character-of-line (input.hidden-input)
2x -1:25.4.0 core:backspace (input.hidden-input)
-1:25 core:save (input.hidden-input)
-1:23.8.0 editor:consolidate-selections (input.hidden-input)
-1:23.8.0 core:cancel (input.hidden-input)
-1:18.2.0 core:save (input.hidden-input)
atom-beautify 0.30.4
auto-detect-indentation 1.3.0
busy-signal 1.4.3
crystal 0.2.1
crystal-block 0.4.0
crystal-tools 0.3.0
emmet 2.4.3
git-diff-details 1.4.0
highlight-selected 0.13.1
intentions 1.1.5
itg-dark-syntax 2.0.0
itg-flat-dark 0.3.0
javascript-snippets 1.2.1
language-crystal-actual 0.35.0
linter 2.2.0
linter-rubocop 2.1.1
linter-ui-default 1.6.3
minimap 4.29.3
minimap-highlight-selected 4.6.1
mukluk-syntax 0.4.0
predawn-syntax 1.0.4
razor-atom-syntax-theme 2.2.3
save-session 0.15.7
seti-syntax 1.1.3
seti-ui 1.9.0
spacegray-black-syntax 0.1.4
spacegray-dark-syntax 0.2.0
spacegray-dark-ui 0.13.0
spacegray-mocha-ui 2.0.0
spacegray-monokai-ui 2.0.0
spacegray-peacock-ui 1.0.0
tree-view-open-files 0.3.0
vibrant-ink 1.0.1
[Enter steps to reproduce below:]
Atom Version: 1.11.2 Electron Version: 0.37.8 System: Debian GNU/Linux Thrown From: crystal package, v0.2.0
Stack Trace
Uncaught TypeError: Cannot read property 'length' of null
Commands
Config
Installed Packages