How does Iex tab-completion work in Linux?
How can we emulate same or similar in Windows without WERL.exe ?
Where can we start looking?
https://github.com/elixir-lang/elixir/issues/4103
I doubt if this is a VM related issue.
If linux simply provides modules required for this feature that are missing on windows, then I believe we have a direction for a solution.
Your thoughts?
You can get auto completion in windows by passing
–werl when opening iex.
iex --werl -S mix
or in powershell
iex.bat --werl -S mix
you can set this as your default option by setting your environment veriable
IEX_WITH_WERL
I think that werl is not the best solution for someone working on the terminal since it disrupts the experience by opening a new window - also it’s ugly as hell .
@CharlesO I’ve tested some solutions on Windows without much success. I’ve posted more details on my findings in the existing issue: Autocomplete in IEx broken (on Windows) · Issue #4103 · elixir-lang/elixir · GitHub
.
same here. I just manage Cmder/ ConEmu and live without auto-completion
Arpple
November 29, 2019, 3:11am
5
using elixir in ubuntu wsl + window terminal, everything works
I think the point is to have native support on Windows. Besides, WSL (1 and 2) has a lot of problems and puts yet another step that generates friction on preping your dev environment.
I don’t bother with WSL at all.
Like you mentioned IRB works just fine with the windows console out of the box, hopefully IEx will get to that level
Coming to this after several years, I just wanted to point out there is currently a chance at getting funding to implement this functionality (if someone is interested). You can find out more about it here:
https://github.com/elixir-lang/elixir/issues/4103#issuecomment-1002135512
For the record, it was fixed (see the issue above in erlang OTP 26.
You can grab Erlang OTP 26 RC1 here: Release OTP 26.0-rc1 · erlang/otp · GitHub
This may be the default once that’s released.