Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Uncaught TypeError when using atom-ide-crystal #23

Closed
peterschols opened this issue Aug 16, 2017 · 5 comments
Closed

Uncaught TypeError when using atom-ide-crystal #23

peterschols opened this issue Aug 16, 2017 · 5 comments

Comments

@peterschols
Copy link

peterschols commented Aug 16, 2017

When saving a .cr file to invoke atom-ide-crystal, we receive the following error.

Atom: 1.19.0 x64
Electron: 1.6.9
OS: Mac OS X 10.12.6
Thrown From: 'crystal' package vundefined

Stack Trace

Uncaught TypeError: Bad argument

At /Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:392

TypeError: Bad argument
    at ChildProcess.spawn (internal/child_process.js:289:26)
    at Object.exports.spawn (child_process.js:399:9)
    at BufferedProcess.spawn (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:321:63)
    at BufferedProcess.start (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:127:20)
    at new BufferedProcess (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:112:18)
    at format (/packages/crystal/lib/util/formatter.js:28:9)
    at /packages/crystal/lib/util/formatter.js:19:4
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1222:31

Commands

  3x -7:04.0 editor:newline (input.hidden-input)
     -6:49.1.0 core:save (input.hidden-input)
     -6:40 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)
     -0:12.4.0 core:save (input.hidden-input)

Non-Core Packages

atom-material-syntax 1.0.6 
autocomplete-ruby 0.2.8 
busy-signal 1.4.3 
ide-crystal 0.2.3 
intentions 1.1.5 
language-crystal-actual 0.36.0 
linter 2.2.0 
linter-js-standard 3.9.3 
linter-ruby 1.2.5 
linter-ui-default 1.6.5 
nucleus-dark-ui 0.12.3 
phantom-ui 1.0.0 
pretty-json 1.6.4 
rails-snippets 2.16.0 
ruby-block 0.3.6 
seti-ui 1.9.0 
spacegray-tomorrowdark-ui 2.1.0 
tail 0.1.0 
twilight-updated-syntax 0.5.5 
@konovod
Copy link

konovod commented Aug 17, 2017

@peterschols
Copy link
Author

Any updates on this issue? Thanks!

@ddgromit
Copy link

The issue is the plugin settings are saved under ide-crystal, but the plugin is looking under crystal. See compiler.js

For a temporary fix, open the atom config and rename the crystal-ide key to crystal:

"*":
  crystal:
    compilerExecPath: "/usr/local/bin/crystal"
    formatOnSave: true

@ddgromit
Copy link

ddgromit commented Dec 29, 2017

Submitted a PR with a fix: #26

@keplersj
Copy link
Contributor

keplersj commented Mar 7, 2018

Moved to a scry based implementation. No longer relevant.

@keplersj keplersj closed this as completed Mar 7, 2018
@faustinoaq faustinoaq added this to Done in Crystal Tools Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Crystal Tools
  
Done
Development

No branches or pull requests

4 participants