tonini / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
906 stars 103 forks source link

IO.gets causes emacs to hang #297

Open Rageoholic opened 7 years ago

Rageoholic commented 7 years ago

So when I run IO.gets emacs hangs until I C-g. After that I have to kill IEx because its still waiting for input. Tested on Emacs 26 and 24

jojojames commented 7 years ago

You can do M-x toggle-debug-on-quit and when you press C-g, it'll tell you what's hanging.

Rageoholic commented 7 years ago
Debugger entered--Lisp error: (quit)
  accept-process-output(#<process Alchemist-IEx> nil)
  alchemist-iex-wait-for-prompt(#<process Alchemist-IEx>)
  #[(line) "\303!\210\304!b\210\305   \306P!\210\n`\307\223\210\310  \306P\"\207" [proc line comint-last-input-end alchemist-iex-wait-for-prompt process-mark insert-before-markers "\n" nil comint-send-string] 4](#("Test" 0 4 (fontified t)))
  mapcar(#[(line) "\303!\210\304!b\210\305    \306P!\210\n`\307\223\210\310  \306P\"\207" [proc line comint-last-input-end alchemist-iex-wait-for-prompt process-mark insert-before-markers "\n" nil comint-send-string] 4] (#("Test" 0 4 (fontified t))))
  -map(#[(line) "\303!\210\304!b\210\305  \306P!\210\n`\307\223\210\310  \306P\"\207" [proc line comint-last-input-end alchemist-iex-wait-for-prompt process-mark insert-before-markers "\n" nil comint-send-string] 4] (#("Test" 0 4 (fontified t))))
  alchemist-iex--send-command(#<process Alchemist-IEx> #("Test" 0 4 (fontified t)))
  comint-send-input()
  funcall-interactively(comint-send-input)
  call-interactively(comint-send-input nil nil)
  command-execute(comint-send-input)