Open jrmnl opened 4 years ago
You can successfully create plt files in non existent folder.
Is this what people would really expect? Is there another mix task that handles non-existent paths that way for example? I'm just not really sure that the expectation should be to silently create the full path.
I would support a --create-if-not-exists
type flag but creating by default is surprising behavior to me as a user.
You can successfully create plt files in non existent folder.
Is this what people would really expect? Is there another mix task that handles non-existent paths that way for example? I'm just not really sure that the expectation should be to silently create the full path.
If I specify :plt_file
in non-existent path it will create it, for example. And here :plt_core_path
sounds like output folder if it's empty or not exists.
--create-if-not-exists
makes usage less obvious.
When this error was occured my first thoughts were:
@asummers after looking at this more closely I've kind of come around to @jrmnl point of view here - since this is a file we create, it may not be surprising to create its path and we already do this when we copy the base PLT's to the target directory.
Environment
elixir: 1.10.3 otp_release: 23.0
Current behavior
When you set
:plt_core_path
to non existent folder you will get following exceiption onmix dialyzer
:Expected behavior
You can successfully create plt files in non existent folder.