elixir_course icon indicating copy to clipboard operation
elixir_course copied to clipboard

lesson_07_05_typed_struct learning experience

Open Pilot93 opened this issue 1 year ago • 0 comments

После вызова mix dialyzer

https://github.com/yzh44yzh/elixir_course/blob/eeaa8d70350911680b26b0d6711aff9974546046/lesson_07/07_05_typed_struct.md?plain=1#L130

Ошибок с типом 10 штук, а не только с Broom.t

mix dialyzer
Finding suitable PLTs
Checking PLT...
[:compiler, :elixir, :event, :kernel, :logger, :stdlib]
PLT is up to date!
No :ignore_warnings opt specified in mix.exs and default does not exist.

Starting Dialyzer
[
  check_plt: false,
  init_plt: '/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/dialyxir_erlang-26.0.2_elixir-1.14.2_deps-dev.plt',
  files: ['/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/lib/event/ebin/Elixir.Model.Map.Participant.beam',
   '/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/lib/event/ebin/Elixir.Model.TypedStruct.Address.beam',
   '/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/lib/event/ebin/Elixir.Model.Tuple.Participant.beam',
   '/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/lib/event/consolidated/Elixir.Model.CalendarItem.beam',
   '/home/dimawork/Programs/elixir/zhloba_course/elixir_course/lesson_07/event/_build/dev/lib/event/ebin/Elixir.Model.Calendar.beam',
   ...],
  warnings: [:unknown]
]
Total errors: 10, Skipped: 0, Unnecessary Skips: 0
done in 0m1.6s
lib/model/calendar.ex:6:unknown_type
Unknown type: CalendarItem.t/0.
________________________________________________________________________________
lib/model/calendar.ex:17:unknown_type
Unknown type: CalendarItem.t/0.
________________________________________________________________________________
lib/model/event_record.ex:73:unknown_type
Unknown type: Partcipant.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:7:unknown_type
Unknown type: Location.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:8:unknown_type
Unknown type: Participant.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:9:unknown_type
Unknown type: Topic.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:16:unknown_type
Unknown type: CalendarItem.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:21:unknown_type
Unknown type: CalendarItem.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:46:unknown_type
Unknown type: Address.t/0.
________________________________________________________________________________
lib/model/event_typed_struct.ex:47:unknown_type
Unknown type: Broom.t/0.
________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2

Pilot93 avatar Feb 26 '24 13:02 Pilot93