-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“.credo.exs file does not exist” in Umbrella project #462
Comments
Thanks for submitting this issue! Apologies for the late reply, but I'm trying to pick this project up again! Just to clarify, have to you tried to create a |
I didnt know this was an option! I will let you know once I try ! |
When I added the complete path it fixed the issue:
This held true for both the Perhaps there is an issue when credo is building the path to find the file? |
Okay, great that we have a workaround for this issue! 👍🏽 I think, the main problem is that the extension searchs for the credo configuration inside the folder of the mix project of the active elixir file. And since in each directory, there is a vscode-elixir-credo/src/credo-utils.ts Lines 70 to 75 in 39383cb
|
If that is the case, then perhaps the
And this is the
Notice we have specific fields, such as Perhaps we can leverage this? If no |
I would love to get this fixed, and happy to even contribute if needed. How about we use the lockfile path? I'm not sure if people tend to change any of these configs from the defaults, but I would assume the lockfile is at least always at the project root, where the umbrella |
Hm, I don't think parsing the
We just have to change the detection of this piece right here: vscode-elixir-credo/src/credo-utils.ts Lines 70 to 75 in 39383cb
It has to support that the detected mix project folder is part of an |
I've drafted a PR that should fix that, I just have to find some time to fix and extend the tests: #473 |
Background
I have an umbrella app with the following structure:
When working with my umbrella project, I usually open the root folder of the project and work in the desired application from there.
My
.credo.exs.
file is the default one generated bymix credo gen.config
and I have{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
in my root'smix.exs
file.I have also installed credo and its dependencies using:
So I am sure I have all the dependencies installed.
I also launch VSCode with
code .
using Windows cmd 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.To try and fix my issues I read this post:
https://elixirforum.com/t/configure-credo-to-use-global-credo-exs-file/2707
However this wont do it for me. Not only do I still get the error once I get inside the individual applications, it also does not fit with my workflow, as I mostly work with the root directory open.
Questions
How can I fix this?
The text was updated successfully, but these errors were encountered: