nicnilov

nicnilov

Disable automatic recompilation in IEx

Recently I noticed that when I save a source file from my editor while having an IEx session running, the latter automatically recompiles my project. I’m pretty sure this never happened before, even though an LLM states this behavior has been going on since Elixir 1.15. Previously I’d use either an explicit recompile call in IEx, or just ran an HTTP request against an app endpoint which also did trigger recompilation.

This behavior is pretty confusing, since I’m not really sure when and why it started (although it did just some days ago), and I haven’t found a way to disable it. I’m aware about the IEx’s auto_reload feature which is disabled in my setup and is about reloading, and not recompilation anyway.

I’d like my IEx state to be unaffected by whatever intermediary edits I happen to do in the code until I decide to apply those explicitly. Please let me know what I’m missing.

Marked As Solved

nicnilov

nicnilov

I really need to bring my question asking together. Sorry for not giving enough information right away. Yes, I am using Phoenix, but only to serve API endpoints, there is no LiveView or anything. There is also no browser when this happens - its just IEx and an editor (either Cursor or a basic vim setup)…

Thank you for making me elaborate all this!

While I don’t have a browser, I recently added Prometheus and Grafana to my setup and they do generate frequent requests. So what I was taking for some unfamiliar IEx activity was just a regular recompilation during an incoming request.

Thanks again and sorry for all the noise :blush:

Also Liked

josevalim

josevalim

Creator of Elixir

No problem, glad you figured it out! :heart:

Where Next?

Popular in Questions Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement