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
parsing time "22-10-25" as "2006-01-02": cannot parse "22" as "2006"
What did you see instead?
parsing time "22-10-25" as "2006-01-02": cannot parse "0-25" as "2006"
It appears that this the parser is doing some blocking or chunking that gets misaligned in the error reporting when fewer than the expected number of digits appear in the input.
The text was updated successfully, but these errors were encountered:
Does this still reproduce at HEAD? @dsnet has landed a bunch of Parse fixes during the 1.20 development cycle.
bcmills
added
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Nov 15, 2022
> ./bin/go version
go version devel go1.20-cb5534c1c6 Wed Nov 16 02:02:26 2022 +0000 linux/amd64
> ./bin/go run /tmp/timebug.go
parsing time "22-10-25" as "2006-01-02": cannot parse "0-25" as "2006"
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Nov 17, 2022
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/PUywlZ7-BE5
What did you expect to see?
What did you see instead?
It appears that this the parser is doing some blocking or chunking that gets misaligned in the error reporting when fewer than the expected number of digits appear in the input.
The text was updated successfully, but these errors were encountered: