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
Just run it, then I got
`[Running] go run "d:\backup\pkl-go-examples\pkl-go-examples\main.go"
panic: org.pkl.core.PklBugException: An unexpected error has occurred. Would you mind filing a bug report?
goroutine 1 [running]:
main.main()
d:/backup/pkl-go-examples/pkl-go-examples/main.go:23 +0x1db
exit status 2
[Done] exited with code=1 in 3.145 seconds
`
How can fix it? Or how can I report this error?
The text was updated successfully, but these errors were encountered:
go version go1.22.5 windows/amd64
Pkl 0.26.3 (Windows 10.0, native)
pkl-gen-go 0.8.0
foo.pkl
foo: String = "hello" bar: Int = 5
main.go
`package main
import (
"context"
"fmt"
)
type MyConfig struct {
Foo string
pkl:"foo"
Bar int
pkl:"bar"
}
func main() {
evaluator, err := pkl.NewEvaluator(context.Background(), pkl.PreconfiguredOptions)
if err != nil {
panic(err)
}
defer evaluator.Close()
var cfg MyConfig
if err = evaluator.EvaluateModule(context.Background(), pkl.FileSource("foo.pkl"), &cfg); err != nil {
panic(err)
}
fmt.Printf("Got module: %+v", cfg)
}
`
Just run it, then I got
`[Running] go run "d:\backup\pkl-go-examples\pkl-go-examples\main.go"
panic: org.pkl.core.PklBugException: An unexpected error has occurred. Would you mind filing a bug report?
goroutine 1 [running]:
main.main()
d:/backup/pkl-go-examples/pkl-go-examples/main.go:23 +0x1db
exit status 2
[Done] exited with code=1 in 3.145 seconds
`
How can fix it? Or how can I report this error?
The text was updated successfully, but these errors were encountered: