Giter Site home page Giter Site logo

Compilation failure about credo HOT 9 CLOSED

rrrene avatar rrrene commented on May 7, 2024 3
Compilation failure

from credo.

Comments (9)

bbense avatar bbense commented on May 7, 2024

Same thing happening on my machine.

mix deps.compile
==> credo
Compiled lib/credo/check/code_pattern.ex
Compiled lib/credo.ex
Compiled lib/credo/check.ex
Compiled lib/credo/check/params.ex
Compiled lib/credo/check/property_value.ex
Compiled lib/credo/check/refactor/helper.ex
Compiled lib/credo/cli/command/categories.ex
Compiled lib/credo/cli/command/version.ex
Compiled lib/credo/cli/command/help.ex
Compiled lib/credo/cli/filename.ex
Compiled lib/credo/cli/output/categories.ex
Compiled lib/credo/cli/output.ex
Compiled lib/credo/cli/output/ui.ex
Compiled lib/credo/code/name.ex

== Compilation error on file lib/credo/code/module.ex ==
** (ArgumentError) argument error
:erlang.++(nil, [:when])
lib/credo/code/module.ex:41: (module)
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6

could not compile dependency :credo, "mix compile" failed. You can recompile this dependency with "mix deps.compile credo", update it with "mix deps.update credo" or clean it with "mix deps.clean credo"
12:10:21 Mini:erlman > iex --version
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.1.1

from credo.

bbense avatar bbense commented on May 7, 2024

Seems like the problem is in this line in module.ex

 @def_ops Application.get_env(:credo, :def_ops)

Maybe if you put in a suitable default value.

from credo.

rrrene avatar rrrene commented on May 7, 2024

Seems like maybe I misunderstood the configuration of apps.

I thought I could define the default values for Credo in Credo's config/config.exs. Isn't that the case?

from credo.

paulcsmith avatar paulcsmith commented on May 7, 2024

I don't believe that's the case. config/config.exs applies to Credo itself, but not the app that is using it. So you could probably add some notes to the README about what the config option should be, or set the default in the code itself instead of in config/config.exs.

from credo.

paulcsmith avatar paulcsmith commented on May 7, 2024

I could be wrong though. My app/OTP skills are not the best :)

from credo.

rrrene avatar rrrene commented on May 7, 2024

Mmmh ... now I feel pretty stupid. Will fix right away!

from credo.

rrrene avatar rrrene commented on May 7, 2024

@paulcsmith @bbense pushed v0.1.3 can you please check if it compiles?

from credo.

paulcsmith avatar paulcsmith commented on May 7, 2024

@rrrene Works for me now! Thank you! This is a very beautiful tool so far. Can't wait to dive in more :D

from credo.

bbense avatar bbense commented on May 7, 2024

0.1.3 compiles and works fine for me as well.

from credo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.