-
Notifications
You must be signed in to change notification settings - Fork 323
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
An Atom
is recognized as a Primitive
when WithWarnings
wrap another WithWarnings
#6258
Comments
Note that My first hypothesis was that it's the warnings being attached that breaks the
Actually worked as it should (all paired lines display the same results). So it is something more subtle. Through trial and error, I see that if I replaced |
So, the workaround that just removes warnings from the value before doing However, I don't think the solution is to just add |
Warning that once I implement #5159, this and related repros will stop working - because I was meaning to update these repros right now, but I will not go ahead of myself - once I do #5159 I will revisit these. |
I am trying to reproduce the problem on 6404332 - if I past the initial program into
Can you merge with recent |
Sorry, when writing this issue, I probably assumed my pending PR #6298 will be merged very soon - but I did not anticipate the many other obstacles. The latest commit on #6298 shall work, but I cannot guarantee that something else will not break it as it's WIP - the safest commit to try this on should be d96d159 - it is done right after I reported this bug and it must have been reproducible at that point. Please let me know if there are any issues with this and I can try to double check the repro if needed. |
Thanks. I can reproduce the problem now. It is caused by We should probably avoid such a |
Atom
is recognized as a Primitive
by Meta
under _certain circumstances_Atom
is recognized as a Primitive
when WithWarnings
wrap another WithWarnings
Glad the repro works.
Indeed, I'd even propose adding an or having a similar assert on the result of |
I have it locally on my disk to debug the situation ;-) |
Then I think it's worth keeping :) |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-04-18): Progress: - investigating
Next Day: Multiple warnings issues |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-04-19): Progress: - Avoid double wrapping: #6348
Next Day: <| functions
|
Run the following code:
The output that I'm seeing is:
while what I'd expect would be
For some reason, for
x = Value_Type.Char Nothing True
- a typical Atom instance,Meta.meta x
is yielding aPrimitive
. This is wrong and is breaking my code.Meta.meta
of an atom should always beMeta.Atom
.The text was updated successfully, but these errors were encountered: