-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
timing out (another one) #73
Comments
@iautom8things I created a new issue. Can you share your .credo.exs file? |
Hey, thank you for this. It's actually the same config (and project) that John was working on, we're teammates 🤜 🤛 %{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/", "config/"],
excluded: []
},
checks: [
{Credo.Check.Refactor.Nesting, max_nesting: 3},
{Credo.Check.Refactor.Apply, false},
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Warning.LazyLogging, false},
{Credo.Check.Design.TagTODO, exit_status: 0}
]
}
]
} And I just confirmed with @barkerj that the same thing is true for him: if we don't include the |
ahh gotcha, i'll double check tonight if i can reproduce. credo-language-server uses these command line flags under the hood you might check if |
It seems like Which if this is somehow happening by default via the language server, then it makes sense why explicitly excluding the Though, I haven't figured out why credo would be trying to search the top level of the repo when called by credo-language-server. |
so technically the ls is doing dir = |
Can you try running iex |
With iex(4)> ["--strict", "--all", "--working-dir", File.cwd!()] |> Credo.run() |> Map.get(:files)
%{
excluded: [],
included: ["lib/**/*.{ex,exs}", "test/**/*.{ex,exs}", "config/**/*.{ex,exs}"]
} |
Sorry, lost track of the state of this. This issue still needs action, correct? |
I'm having the same issue that @barkerja was having but the solution that worked for him does not appear to work for me.
I'll try to list out all applicable versions:
1.79.2
elixir-tools.vscode
:v0.2.2
24.3.4.8
1.14.2-otp-24
1.6.4
and1.7.0
I've tried blowing away
.elixir-tools
,_build
anddeps
,mix local.hex --force
andmix local.rebar --force
,mix deps.get
and restarting vscode but it yields the same issue.Also, I may very well be mistaken but it doesn't seem like using the
excluded
field to exclode_build
anddeps
even though those folders weren't included should do anything.This yields the same result for me.
Originally posted by @iautom8things in #67 (comment)
The text was updated successfully, but these errors were encountered: