-
Notifications
You must be signed in to change notification settings - Fork 66
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
Panic when attempting to output complex values as text/table #5154
Comments
This is happening because tableio.Writer and textio.Writer use a single arena with types from two zed.Contexts. (They create the second context for expr.NewFlattener. csvio.Writer and zeekio.Writer use NewFlattener in the same way but don't seem to be affected by this bug, presumably because they never create values in the arena using types created by the flattener's zed.Context.) Some ways to fix this:
|
Fixed in #5278. |
Verified in Zed commit 4a1ebf5. Repeating the repro steps, we now once again see the expected outputs in
Thanks @nwt! |
Repro is with Zed commit ce9626e.
This issue was reported in a community Slack thread. I confirmed that it started failing at commit ce9626e, which is associated with the arrival of the Arena changes in #5118.
No panic at the prior commit.
The text was updated successfully, but these errors were encountered: