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

fix: dialyzer errors on Elixir 1.16 #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dgvncsz0f
Copy link

@dgvncsz0f dgvncsz0f commented Mar 1, 2024

Even though the code still works, dialyzer fails when using Elixir 1.16.

The fix is the same as described in this comment: elixir-lang/elixir#13212 (comment). I’ve removed the :read_ahead option as I understand Elixir will add it with a reasonable value by default. Let me know your thoughts about this.

@dgvncsz0f
Copy link
Author

This is the same as #18 but keeps support for older Elixir versions.

@lud-wj
Copy link

lud-wj commented May 7, 2024

Do you know why does dialyzer fail on this ? The read ahead option seems to be declared in the File.stream_mode type.

@lud-wj
Copy link

lud-wj commented May 7, 2024

Ah ok it's about the order of arguments.

File.stream!(path, 1024, [{:read_ahead, 4096}]) should work.

Edit: well that's what the other PR does.

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

Successfully merging this pull request may close these issues.

None yet

2 participants