Elixirs iEX autocomplete output has a bug!
The same bug that mac operating systems have with file names in that they do a lexicographical sort.
(The purpose of this project is to prove the bug!)
Mostly this is just for fun discussion!
Do standard install things like download erlang and elixir and mix as needed.
To run the project use:
iex -S mix;
In the shell that opens type:
iex> ElixirAutocompleteBugOnMacComputer.hello<tab>
Now you should see your module of the project and the functions for hello not showing in numerical order!
See the screenshot below:
Shout out to github.com/murjax for finding the bug when I figured out how to get the autocomplete to sort by arity.
the mac issue of folder names not sorting correctly
regarding lexographic sort
preliminary research on changing LC_COLLATE, (very little time invested on this route so far.)
looks like a promising LC_COLLATE example that I should try out.
- change LC_COLLATE globally on the computer to sort differently by default.
- confirm erlang is doing the sort instead of the operating system and make the change to erlang itself.
Do you know a solution that I have not mentioned here or do you want to leave a comment about this project?
Open a github issue in the project to add to the discussion or make a pr proposing a change to the project. Thank you!