When coming back to an old project and trying to run mix setup, it failed with:
All dependencies are up to date
** (Mix) You're trying to run :my_app on Elixir v1.11.0 but it has declared in its mix.exs file it supports only Elixir ~> 1.10.2
I tried just to modify Elixir version in mix.exs file to the latest one:
but it didn’t fix the issue. Removing the mix.lock file didn’t help either.
Why so and what is the right way to upgrade the elixir version of a project?
In Ruby, JS projects it works without any problem.
Yep, it was that. I had to remove .elixir_ls folder of the project (generated by the ElixirLS extension of VS Code), close the project folder in VS Code and quit.
After re-opening the same project, the errors related to the ElixirLS extension have gone.