You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if it's possible to easily identify this, but occasionally I've mistyped instantiations of structs. Maybe a = instead of a :, or a missing ,. The errors I get are misleading and don't help me find the typo.
I get errors: Cannot find Foo in this scope and Expected a ; separating these two statements, Expected a binary operator but found :.
Happy Case
I have no idea how complicated it is to identify, so you might decide to simply close this issue. But it would be cool if it could infer: "Hey, you might be missing a comma, you plonker" or "Hey, use a colon instead of a = inside a struct, you plonker".
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
…6236)
# Description
## Problem
Resolves#6215
## Summary
If we get '=' instead of ':' we error but continue parsing the field
value.
## Additional Context
None.
## Documentation
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
@asterite@jfecher thanks for resolving the first part of this issue.
It looks like this issue got auto-closed, but I suspect 2nd part of this issue (an accidentally-missing comma) is still unresolved. :)
Problem
Not sure if it's possible to easily identify this, but occasionally I've mistyped instantiations of structs. Maybe a
=
instead of a:
, or a missing,
. The errors I get are misleading and don't help me find the typo.Take this code:
Suppose I put
=
instead of:
:I get errors:
Cannot find Foo in this scope
andExpected a ; separating these two statements
.Suppose I forget a
,
:I get errors:
Cannot find Foo in this scope
andExpected a ; separating these two statements
,Expected a binary operator but found :
.Happy Case
I have no idea how complicated it is to identify, so you might decide to simply close this issue. But it would be cool if it could infer: "Hey, you might be missing a comma, you plonker" or "Hey, use a colon instead of a
=
inside a struct, you plonker".Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: