doma-engineering / uptight

A collection of tools for tighter typing and advanced error-(un)-handling in Elixir.
Other
3 stars 0 forks source link

Runtime warnings! (Are the worst warnings) #14

Open cognivore opened 1 year ago

cognivore commented 1 year ago

Why?

This stuff is just scary.

λ iex -S mix
Erlang/OTP 24 [erts-12.3.2.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]

Compiling 2 files (.ex)
Compiling 2 files (.ex)
warning: redefining module Jason.Encoder.Uptight.Base.Sixteen (current version loaded from _build/dev/lib/uptight/ebin/Elixir.Jason.Encoder.Uptight.Base.Sixteen.beam)
  lib/uptight/base.ex:177

warning: function encode/2 required by protocol Jason.Encoder is not implemented (in module Jason.Encoder.Uptight.Base.Sixteen)
  lib/uptight/base.ex:177: Jason.Encoder.Uptight.Base.Sixteen (module)

warning: redefining module Jason.Encoder.Uptight.Base.ThirtyTwo (current version loaded from _build/dev/lib/uptight/ebin/Elixir.Jason.Encoder.Uptight.Base.ThirtyTwo.beam)
  lib/uptight/base.ex:184

warning: function encode/2 required by protocol Jason.Encoder is not implemented (in module Jason.Encoder.Uptight.Base.ThirtyTwo)
  lib/uptight/base.ex:184: Jason.Encoder.Uptight.Base.ThirtyTwo (module)

warning: redefining module Jason.Encoder.Uptight.Base.SixtyFour (current version loaded from _build/dev/lib/uptight/ebin/Elixir.Jason.Encoder.Uptight.Base.SixtyFour.beam)
  lib/uptight/base.ex:191

warning: function encode/2 required by protocol Jason.Encoder is not implemented (in module Jason.Encoder.Uptight.Base.SixtyFour)
  lib/uptight/base.ex:191: Jason.Encoder.Uptight.Base.SixtyFour (module)

What?

cognivore commented 1 year ago

More context:

Total errors: 3, Skipped: 0, Unnecessary Skips: 0
done in 0m1.83s
lib/uptight/base.ex:177:callback_missing
Undefined callback function encode/2 (behaviour Jason.Encoder).
________________________________________________________________________________
lib/uptight/base.ex:184:callback_missing
Undefined callback function encode/2 (behaviour Jason.Encoder).
________________________________________________________________________________
lib/uptight/base.ex:191:callback_missing
Undefined callback function encode/2 (behaviour Jason.Encoder).
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2