Enabling Iex tab-completion in Windows

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?

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?

1 Like

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

5 Likes

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 :grimacing: .

@CharlesO I’ve tested some solutions on Windows without much success. I’ve posted more details on my findings in the existing issue: https://github.com/elixir-lang/elixir/issues/4103

.

2 Likes

same here. I just manage Cmder/ ConEmu and live without auto-completion

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