-
Notifications
You must be signed in to change notification settings - Fork 33
Warning on Elixir v1.14 #102
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
Comments
Fixed by 81bd15a |
Looks like the warning is still being triggered:
|
Same here! Maybe we can reopen a new issue @sergchernata? |
It seems this has been resolved in #116, but there has not been a new release? |
I was looking into this issue, because I got the warning too. It looks like the @max_runs Application.compile_env(:crontab, :max_runs, 10_000) But the latest release (23rd Oct 2024) does contain the old code: # TODO: Remove if when requiring Elixir 1.10 + only
if function_exported?(Application, :compile_env, 3) do
@max_runs Application.compile_env(:crontab, :max_runs, 10_000)
else
# credo:disable-for-next-line Credo.Check.Warning.ApplicationConfigInModuleAttribute
@max_runs Application.get_env(:crontab, :max_runs, 10_000)
end It's a bit unclear to me why the latest release did not pick up the changes on Thus, only a new release should be required to fix the warning (as long as it's made from |
Cool. Thanks |
I'm doing a bit of preliminary testing with https://github.com/elixir-lang/elixir/releases/tag/v1.14.0-rc.1, and noticed the following warning, so I'm opening an issue to report it :
Apparently not fixed on
master
:https://github.com/jshmrtn/crontab/blob/c7641a424abc1191c3bf91ace369350097eb4890/lib/crontab/scheduler.ex#L21
The text was updated successfully, but these errors were encountered: