Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix Chunk.traverse losing elements #2002

Merged
merged 3 commits into from
Aug 22, 2020

Conversation

SystemFw
Copy link
Collaborator

Fixes #2001

@mpilquist mpilquist merged commit 0735184 into typelevel:main Aug 22, 2020
@mpilquist
Copy link
Member

@johnynek FYI

@johnynek
Copy link
Contributor

Oh man. Sorry about that.

Also the next version of cats exposes a method on object Chain that can do this code so we can share the implementation so hopefully all bugs get fixed quickly.

I did make some changes in cats but I forgot to see if those changes were bugs in this PR.

:(

@mpilquist
Copy link
Member

:) No worries. I knew you made those cats PRs so just wanted to give you a heads up in case we need similar fixes anywhere.

@johnynek
Copy link
Contributor

The embarrassing part is that I noticed this in cats:

https://github.com/typelevel/cats/blob/187546a42854820fc3f570824ab6c82b8f36006c/core/src/main/scala/cats/data/Chain.scala#L706

But I forgot to look back to see if the bug was here. Cats tests exposed it.

Sorry for dropping the ball there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chunk.traverse loses elements in 2.4.3 for chunks larger than 255 elements
3 participants