cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
323 stars 22 forks source link

[macOS] `@behaviour :wx_object does not exist` #200

Closed cocoa-xu closed 4 months ago

cocoa-xu commented 1 year ago

See https://github.com/cocoa-xu/evision/actions/runs/5452347663/jobs/9919734388?pr=199#step:11:16

cocoa-xu commented 11 months ago

It also appears on Linux,

$ iex -S mix
Compiling 432 files (.ex)
warning: @behaviour :wx_object does not exist (in module Evision.Wx)
  lib/evision_wx.ex:1: Evision.Wx (module)

warning: got "@impl true" for function handle_call/3 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
  lib/evision_wx.ex:169: Evision.Wx (module)

warning: got "@impl true" for function handle_event/2 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
Invalid call found at 2 locations:
  lib/evision_wx.ex:134: Evision.Wx (module)
  lib/evision_wx.ex:149: Evision.Wx (module)

warning: got "@impl true" for function handle_sync_event/3 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
Invalid call found at 2 locations:
  lib/evision_wx.ex:154: Evision.Wx (module)
  lib/evision_wx.ex:164: Evision.Wx (module)

warning: got "@impl true" for function init/1 but no behaviour specifies such callback. There are no known callbacks, please specify the proper @behaviour and make sure it defines callbacks
  lib/evision_wx.ex:95: Evision.Wx (module)
cocoa-xu commented 4 months ago

Should be fixed in https://github.com/cocoa-xu/evision/commit/cf822977b412f40d112b79d830d979eeefad1584