Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Base62 module alias in 1.7.0 #176

Open
IvanIvanoff opened this issue Oct 10, 2022 · 0 comments
Open

Wrong Base62 module alias in 1.7.0 #176

IvanIvanoff opened this issue Oct 10, 2022 · 0 comments

Comments

@IvanIvanoff
Copy link

Describe the bug
After upgrading from 1.6.2 to 1.7.0 I started seeing this error when calling the EventBus.EventSource.notify/2 macro:

** (UndefinedFunctionError) function Base62.unique_id/0 is undefined (module Base62 is not available)
    Base62.unique_id()
    (sanbase 0.0.1) lib/sanbase/event_bus/event_bus.ex:84: Sanbase.EventBus.notify/1
    iex:1: (file)

This is fixed by adding the following to my config.exs file:

config :event_bus,
  id_generator: EventBus.Util.Base62

Alternatively, it should be fixed by properly referring to the module from the EventBus.EventSource.build/2 macro.

The issue seems to be introduced here:
89fbe49#diff-db1da10c33c19893e8843ec6476e5a3fb7525fdc8b7da6c81f3d5c1344408b55L18-R55

Expected behavior
The module to be properly aliased and not reported as undefined.

Enviroment:

  • OS: MacOS Monterey 12.6
  • Elixir version: 1.14.0
  • OTP version: 25.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant