“.credo.exs file does not exist” in project located in sub directory
exit9 opened this issue · comments
Background
I have an app with the following structure:
:.
├───angular
│ └───src
├───phoenix
│ └───mix.exs
│ └───.mix.lock
│ └───.credo.exs
...
When working with my project, I usually open the root folder of the project and work in the desired application folder from there.
My .credo.exs. file is the default one generated by mix credo gen.config and I have {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, in my phoenix/mix.exs
file.
I have also installed credo and its dependencies using:
mix archive.install hex credo
mix archive.install hex bunt
mix archive.install hex jason
So I am sure I have all the dependencies installed.
I also launch VSCode with code . using Linux zsh to make sure I get all the ENV vars from the shell loaded.
Problem
The issue here is that no matter what I do, I always get the .credo.exs file does not exist. Ignoring .... no matter what I do.
I configured "elixir.credo.configurationFile": "phoenix/.credo.exs"
and have the same issue.
Questions
How can I fix this?
Maybe there can be config for project dir "elixir.credo.projectDir": "phoenix"
? Like "elixirLS.projectDir": "phoenix" or "credo.projectDir": "phoenix" in https://github.com/adamzapasnik/vscode-credo-linter
Hm, that's odd. Do you have a reproduction example repo? For me, everythings seems to be in order.