core icon indicating copy to clipboard operation
core copied to clipboard

yaegi import fails with go 24.1

Open rcoreilly opened this issue 8 months ago • 1 comments

Describe the bug

this happens when running our yaegicore update make script, only with go 24.1, not with 23.7:

cd /Users/oreilly/go/src/cogentcore.org/core/yaegicore/basesymbols (from: {FileDirPath})
packages.go:1193: internal error: package "errors" without types was imported from "fmt"
failed to run "yaegi extract fmt strconv strings math time log/slog reflect path/filepath: exit status 1"
goal run failed: context canceled

https://pkg.go.dev/golang.org/x/tools/go/packages

packages.go file contains line:

 	log.Fatalf("internal error: package %q without types was imported from %q", path, lpkg)
		panic("unreachable")
	})

unclear at this point why hitting this with 24 and not 23 and what versions are being used etc.

How to reproduce

run it.

Example code


Relevant output


Platform

macOS

rcoreilly avatar Apr 01 '25 20:04 rcoreilly