Resetting the terminal after running rebar3
Sometimes, when you run rebar3 shell and you press Ctrl+C twice to quit, your terminal is messed up. This is how I
fixed it in zsh.
Sometimes, when you run rebar3 shell and you press Ctrl+C twice to quit, your terminal is messed up. This is how I
fixed it in zsh.
When you’re investigating a problem with a deployed application, it’s useful to know precisely which version you’re looking at. Here’s how to automatically set the version number in an Erlang project.
I noticed that whenever I made any change to the application, it caused the dockerpodman build to re-fetch and
recompile all of the dependencies. On the tiny laptop I was using at the time, this was taking several extra minutes for
every build.
Some notes about using rebar3 with an umbrella project.
rebar3 new umbrella name=foo # umbrella and release are aliases
cd umbrella/cd apps/
rebar3 new app name=bar
rebar3 new lib name=bazIt doesn’t set up the application dependencies (because it can’t know what you mean to do), so you’ll need to do that
yourself. Edit apps/foo/src/foo.app.src:
The ErlangLS extension for VS Code includes formatting, using rebar3_format. I’d prefer to use erlfmt, so here’s how I set it up.