GithubHelp home page GithubHelp logo

Comments (4)

blazerw avatar blazerw commented on June 20, 2024

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.

from atom-ide-crystal.

blazerw avatar blazerw commented on June 20, 2024

PR: #14
Fork w/ fix: https://github.com/blazerw/atom-crystal

from atom-ide-crystal.

rustomax avatar rustomax commented on June 20, 2024

Still appears to be an issue. Gets thrown on occasion

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.18.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.5
Thrown From: crystal package 0.2.1

Stack Trace

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)

Commands

  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)

Non-Core Packages

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 

from atom-ide-crystal.

phongdgm59 avatar phongdgm59 commented on June 20, 2024

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

Stack Trace

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)

Commands

  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)

Non-Core Packages

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 

from atom-ide-crystal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.