-
Notifications
You must be signed in to change notification settings - Fork 352
evaluator: error involving self-alias does not include problem line #2428
Copy link
Copy link
Open
Labels
Description
What version of CUE are you using (cue version)?
$ cue version
cue version v0.0.0-20230511092117-a670427406af
go version devel go1.21-3ed8a1e629 Tue Mar 28 05:41:44 2023 +0000
-buildmode exe
-compiler gc
DefaultGODEBUG panicnil=1
CGO_ENABLED 1
GOARCH amd64
GOOS linux
GOAMD64 v1
vcs git
vcs.revision a670427406af7451da77cf477c0786d6f1b129c8
vcs.time 2023-05-11T09:21:17Z
vcs.modified false
Does this issue reproduce with the latest stable release?
Yes
What did you do?
! exec cue vet x.cue
stderr 'x\.cue:4:'
-- x.cue --
import "strconv"
a: #intlike
a: "235x5"
#intlike: x={
string
_#check: strconv.Atoi(x)
}
What did you expect to see?
A passing test.
What did you see instead?
> ! exec cue vet x.cue
[stderr]
a._#check: error in call to strconv.Atoi: strconv.Atoi: parsing "235x5": invalid syntax:
./x.cue:8:11
[exit status 1]
> stderr 'x\.cue:4:'
FAIL: /tmp/testscript3268229668/x.txtar/script.txtar:2: no match for `x\.cue:4:` found in stderr
The error that's printed does not point to the actual offending line of code.
Reactions are currently unavailable