Skip to content

“.credo.exs file does not exist” in project located in sub directory #463

@exit9

Description

@exit9

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions