We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cue version
$ cue version 72567b93ca6309a865fd45a3ffe14f9957134a25
v0.13.0-alpha.3
exec go mod tidy exec go run . cmp stdout want-stdout -- want-stdout -- struct <nil> -- go.mod -- module tstcue go 1.23.0 require ( cuelang.org/go v0.13.0-alpha.3 github.com/go-quicktest/qt v1.101.0 ) -- main.go -- package main import ( "fmt" "cuelang.org/go/cue/cuecontext" ) func main() { ctx := cuecontext.New() v := ctx.CompileString(` import "struct" {x?: bool} & struct.MinFields(1) `) fmt.Println(v.IncompleteKind()) fmt.Println(v.Err()) }
A passing test. Adding a MinFields constraint that may be satisfied later should not cause IncompleteKind to return bottom.
This behaviour means it's not possible to inspect such incomplete values to see what kind they might be, which hinders tooling.
> exec go mod tidy > exec go run . [stdout] _|_ invalid value {x?:bool} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1) > cmp stdout want-stdout diff stdout want-stdout --- stdout +++ want-stdout @@ -1,2 +1,2 @@ -_|_ -invalid value {x?:bool} (does not satisfy struct.MinFields(1)): len(fields) < MinFields(1) (0 < 1) +struct +<nil> FAIL: /tmp/x.txtar:4: stdout and want-stdout differ
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
v0.13.0-alpha.3
What did you do?
What did you expect to see?
A passing test. Adding a MinFields constraint that may be satisfied later should not cause IncompleteKind to return bottom.
This behaviour means it's not possible to inspect such incomplete values to see what kind they might be, which hinders tooling.
What did you see instead?
The text was updated successfully, but these errors were encountered: