subsaharancoder
Iex history not showing recent commands
Something weird is happening in my iex, recent commands I’ve typed are not showing up in the history when I press the up arrow key, instead I’m seeing really old commands from modules I haven’t used in weeks. I’ve tried restarting iex, new terminal, restarting the machine, confirmed that export ERL_AFLAGS="-kernel shell_history enabled" is in .zshrc file but nothing seems to work. Even starting iex in a vscode terminal still has the same problem, has anyone else experienced this?
My elixir version on Mac Apple M2 Max
Erlang/OTP 28 [erts-16.0] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit] [dtrace]
Elixir 1.18.4 (compiled with Erlang/OTP 27)
Most Liked
josevalim
We recompile when versions change but we did not recompile rebar projects. This has been fixed on v1.19. You should not need to nuke _build nor deps.
kevinschweikert
It’s an issue in OTP 28. I think they fixed it in OTP 28.0.1
LostKobrakai
Yeah and there you have my reason not to use homebrew for anything, where I want to be in control over the used versions. Homebrew really only supports “latest” as soon as you have interdependencies. You can make it do otherwise, but it’s a lot of work.
Hermanverschooten
Have you removed your _build folder?
dimitarvp
Any Erlang / Elixir / Rebar / Hex version changes, your standard playbook is always rm -rf _build deps && mix do deps.get, compile. Remove your language server directory/ies as well i.e. rm -rf .elixir_ls .lexical (while the editor is stopped, delete the directories and then restart your editor).







