Skip to content

Track the current collectable accumulator during for ..., into: ... - #15266

Closed
lukaszsamson wants to merge 3 commits into
elixir-lang:mainfrom
lukaszsamson:ls-fix-collectable-error-handling
Closed

Track the current collectable accumulator during for ..., into: ...#15266
lukaszsamson wants to merge 3 commits into
elixir-lang:mainfrom
lukaszsamson:ls-fix-collectable-error-handling

Conversation

@lukaszsamson

@lukaszsamson lukaszsamson commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Pass the current accumulator to final :halt invocation on exception
The PR addresses issue in for ... into: ..., Enum.into and Stream.into
Fixes #15265

Pass the current accumulator to final :halt invocation on exception

Fixes elixir-lang#15265
@josevalim

Copy link
Copy Markdown
Member

@lukaszsamson I believe instead we should wrap the content of the do-block in the try-catch.

@lukaszsamson

Copy link
Copy Markdown
Contributor Author

Is this what you had in mind @josevalim?

@josevalim

Copy link
Copy Markdown
Member

I think so but I will have to review carefully tomorrow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Stale accumulator passed to collectable halt on exception during for ... into: ...

2 participants