Skip to content

"not properly initialized" error regression in evalv3 involving builtinsΒ #3648

Open
@mvdan

Description

# With the old evaluator.
env CUE_EXPERIMENT=evalv3=0
exec cue vet -c

# With the new evaluator.
env CUE_EXPERIMENT=evalv3=1
exec cue vet -c

-- input.cue --
package p

import "list"

#Redirect: path?: string

[string]: {
	// Note that this bug disappears if the order of the fields below is swapped.
	allRedirects: list.Concat([redirects])
	redirects:    [...#Redirect]
}
foo: {}

As of 3f4e72d:

# With the old evaluator. (0.010s)
> env CUE_EXPERIMENT=evalv3=0
> exec cue vet -c
# With the new evaluator. (0.029s)
> env CUE_EXPERIMENT=evalv3=1
> exec cue vet -c
[stderr]
foo.allRedirects: error in call to list.Concat: not properly initialized (state: unprocessed, value: *adt.Vertex):
    ./input.cue:9:16
[exit status 1]

Thanks to @alecholmez for reporting this issue and providing a great reproducer.

Metadata

Assignees

No one assigned

    Labels

    evaluatorevalv3issues affecting only the evaluator version 3

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions