jerel / ecto_fields

Provides common fields for Ecto
MIT License
44 stars 7 forks source link

Many warnings compiling ecto_fields against {:ecto_sql, "~> 3.0"} #8

Closed tensiondriven closed 4 years ago

tensiondriven commented 4 years ago

Here are my deps:

 defp deps do
    [
      {:phoenix, "~> 1.4.10"},
      {:phoenix_pubsub, "~> 1.1"},
      {:phoenix_ecto, "~> 4.0"},
      {:phoenix_live_view, "~> 0.9.0"},
      {:ecto_sql, "~> 3.0"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 2.11"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:gettext, "~> 0.11"},
      {:jason, "~> 1.1"},
      {:plug_cowboy, "~> 2.1"},
      # {:mix_test_watch, "~> 0.8", only: :dev},
      {:nanoid, "~> 2.0.1"},
      {:map_diff, "~> 1.3.2"},
      {:poison, "~> 3.1.0"},
      {:ueberauth_google, "~> 0.8"},
      {:timex, "~> 3.6.1"},
      {:merkle_tree, "~> 1.6.0"},
      {:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
      {:dialyxir, "~> 0.5", only: [:dev], runtime: false},
      {:paper_trail, "~> 0.8.1"},
      {:csv, "~> 2.3"},
      {:rollbax, ">= 0.0.0"},
      {:hound, "~> 1.0", only: [:test]},
      {:bamboo, "~> 1.3"},
      {:premailex, "~> 0.3.10"},
      {:earmark, "~> 1.3.2"},
      {:inflex, "~> 2.0.0"},
      {:recase, "~> 0.5"},
      {:faker, "~> 0.13"},
      {:ecto_fields, "~> 1.2.0"},
      {:phoenix_html_simplified_helpers, "~> 2.1.0"},
      {:mix_test_watch, "~> 1.0", only: :dev, runtime: false},
      {:ex_unit_notifier, "~> 0.1", only: :test},
      {:phoenix_slime, "~> 0.13.1"},
      {:httpoison, "~> 1.6"},
      {:shorter_maps, "~> 2.1.0"}
    ]
  end

And the warnings shown during mix.deps.get:

==> ecto_fields
Compiling 10 files (.ex)
warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.Atom)
  lib/fields/atom.ex:1: EctoFields.Atom (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.Atom)
  lib/fields/atom.ex:1: EctoFields.Atom (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.IP)
  lib/fields/ip.ex:1: EctoFields.IP (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.IPv4)
  lib/fields/ip4.ex:1: EctoFields.IPv4 (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.Email)
  lib/fields/email.ex:1: EctoFields.Email (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.IP)
  lib/fields/ip.ex:1: EctoFields.IP (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.Email)
  lib/fields/email.ex:1: EctoFields.Email (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.IPv4)
  lib/fields/ip4.ex:1: EctoFields.IPv4 (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.Slug)
  lib/fields/slug.ex:1: EctoFields.Slug (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.PositiveInteger)
  lib/fields/positive_integer.ex:1: EctoFields.PositiveInteger (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.IPv6)
  lib/fields/ip6.ex:1: EctoFields.IPv6 (module)

warning: function embed_as/1 required by behaviour Ecto.Type is not implemented (in module EctoFields.URL)
  lib/fields/url.ex:1: EctoFields.URL (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.PositiveInteger)
  lib/fields/positive_integer.ex:1: EctoFields.PositiveInteger (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.IPv6)
  lib/fields/ip6.ex:1: EctoFields.IPv6 (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.Slug)
  lib/fields/slug.ex:1: EctoFields.Slug (module)

warning: function equal?/2 required by behaviour Ecto.Type is not implemented (in module EctoFields.URL)
  lib/fields/url.ex:1: EctoFields.URL (module)
Generated ecto_fields app
jerel commented 4 years ago

Thanks for reporting this. I've just released v1.3.0 which should address these new callbacks for Ecto 3.0+