autocomplete-elixir icon indicating copy to clipboard operation
autocomplete-elixir copied to clipboard

Uncaught TypeError: Cannot read property 'stdout' of undefined

Open Hades32 opened this issue 10 years ago • 17 comments

[Enter steps to reproduce below:]

  1. happens directly after installing
  2. ...

Atom Version: 0.201.0 System: C415M5CB3410TQN Thrown From: autocomplete-elixir package, v1.2.6

Stack Trace

Uncaught TypeError: Cannot read property 'stdout' of undefined

At C:\Users\MRAUSC\.atom\packages\autocomplete-elixir\lib\alchemide\wrapper.coffee:19

TypeError: Cannot read property 'stdout' of undefined
    at Object.exports.init (C:\Users\MRAUSC\.atom\packages\autocomplete-elixir\lib\alchemide\wrapper.coffee:36:21)
    at exit (C:\Users\MRAUSC\.atom\packages\autocomplete-elixir\lib\alchemide\wrapper.coffee:27:22)
    at triggerExitCallback (C:\Users\MRAUSC\AppData\Local\atom\app-0.201.0\resources\app.asar\src\buffered-process.js:213:47)
    at ChildProcess.<anonymous> (C:\Users\MRAUSC\AppData\Local\atom\app-0.201.0\resources\app.asar\src\buffered-process.js:235:18)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:169:7)
    at Process.ChildProcess._handle.onexit (child_process.js:1057:12)

Commands

Config

{
  "core": {}
}

Installed Packages

# User
atomatigit, v1.5.1
autocomplete-elixir, v1.2.6
go-plus, v3.3.11
language-elixir, v0.4.0

# Dev
No dev packages

Hades32 avatar May 25 '15 03:05 Hades32

On it

wende avatar May 25 '15 13:05 wende

It's probably an effect of issue #11

wende avatar May 25 '15 14:05 wende

I don't see autocomplete-plus installed in Your packages. Are You sure You've got that installed?

wende avatar Jun 04 '15 18:06 wende

No, I'm new to Atom. I assumed that it did dependency resolution itself, just like any other IDE...

Hades32 avatar Jun 04 '15 19:06 Hades32

@Hades32 Nope. It doesn't. autocomplete-elixir is a resolver for autocomplete-plus. Please install autocomplete-plus and it should be fine. Hit me up if it fixed the issue :)

/Edit I've also added a caution to Instalation instructions

wende avatar Jun 04 '15 20:06 wende

Yeah, it works now! Thanks!

I'm pretty disappointed by Atom though, that it doesn't support plugin dependencies...

Hades32 avatar Jun 04 '15 20:06 Hades32

Give them some time. It's still young. And to be honest, easiness of writting of plugins is absolutely amazing. They should fix MacOS and Windows integration though, beacuse I see a lot of errors on these. Especially MacOS. Have a good day and peace from alchemists' community :cocktail: :grinning:

wende avatar Jun 04 '15 22:06 wende

I still get this with the latest version 1.3.7

7sharp9 avatar Jun 28 '15 15:06 7sharp9

autocomplete-plus is installed (bundled with atom 1.0), getting this error since upgrading to 1.3.7 and 1.3.8

ghost avatar Jun 28 '15 17:06 ghost

@fibric Really? I thought I fixed potential issue in 1.3.8

wende avatar Jun 28 '15 18:06 wende

It is something related to failing to spawn the elixir command. Which means either the path is wrong, but I guess the error would've been different. I don't really get the BufferedProcess class of atom and it's experimental so I guess it's another problem

wende avatar Jun 28 '15 18:06 wende

what information from my machine do you need to find the root cause of this issue?

ghost avatar Jun 28 '15 18:06 ghost

Stack trace tells not that much here. But I guess it could help. I regret they don't send local variables with that

wende avatar Jun 28 '15 18:06 wende

https://discuss.atom.io/t/send-local-variables-with-stack-trace-when-sending-issue-report/18172?u=iraasta

wende avatar Jun 28 '15 18:06 wende

/Users/fibric/.atom/packages/autocomplete-elixir/lib/alchemide/wrapper.coffee:31

TypeError: Cannot read property 'stdout' of undefined
  at Object.exports.init (/Users/fibric/.atom/packages/autocomplete-elixir/lib/alchemide/wrapper.coffee:31:19)
  at exit (/Users/fibric/.atom/packages/autocomplete-elixir/lib/alchemide/wrapper.coffee:19:53)
  at triggerExitCallback (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:213:47)
  at ChildProcess.<anonymous> (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:235:18)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at Process.ChildProcess._handle.onexit (child_process.js:1057:12)

ghost avatar Jun 28 '15 19:06 ghost

atom/atom/issues/6956

wende avatar Jul 24 '15 20:07 wende

Does it happen anymore? Also I've added Troubleshooting to the README.md file Please check out if anything works for you from there

wende avatar Feb 19 '16 16:02 wende