PJUllrich
Author of Building Table Views with Phoenix LiveView
Credo not working in VSCode
I am trying to integrate Credo checks into my VSCode setup, but for the love of god, I cannot make it work. Here’s what I’ve done:
- Add
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}to mymix.exs - Run
mix deps.get - Install the VS Code - Elixir Linter (Credo) extension.
- Enabled the
elixir.credo.onSaveoption. - Set the
elixir.credo.executePathto/Users/pullrich/.asdf/shims - Keep
elixir.credo.credoConfigurationasdefault - Keep
elixir.credo.configurationFileas.credo.exs - Restart VSCode.
I can run mix credo from my command line just fine. But I’d really like to have it integrated into VSCode. I also have ElixirLS installed, and that one works fine, just the @spec-type suggestions don’t work.
I also can’t see a Credo-like extension when I open my Output panel of the integrated terminal.
Can somebody maybe give me some leads/things to check, please?
First Post!
PJUllrich
Author of Building Table Views with Phoenix LiveView
It turned out that there’s a bug with showing the errors: Displaying of credo warnings throws "Illegal Argument" error · Issue #9 · pantajoe/vscode-elixir-credo · GitHub
Popular in Questions
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
I have followed this StackOverflow post to install the specific version of Erlang.
And When I am running mix ecto.setup then getting fol...
New
As a follow up to my earlier question:
I have the code compiling and running but not getting a successful login from the rest server. ...
New
Hello,
I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these
buyer = %{
id: ...
New
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Hey all, just started picking up Elixir last week and am writing a scraper as a learning project.
Baby step #1 is extracting the number ...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir
iex(2)...
New
Other popular topics
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New









