Is it possible to open traces from 1.24 go?
When I try opening traces collected from 1.24 app with latest gotraceui (run from go 1.23)
go1.23.0 run honnef.co/go/gotraceui/cmd/gotraceui@latest
I get
For the moment you will have to use master instead of latest.
Sorry for bothering, I know you're in the middle of rewriting things, probably I should just wait? But with master repo clone
go1.23.0 run cmd/gotraceui/main.go ─╯
# command-line-arguments
cmd/gotraceui/main.go:178:14: undefined: ObjectLink
cmd/gotraceui/main.go:180:18: undefined: ObjectLink
cmd/gotraceui/main.go:300:2: undefined: HoveredLinker
cmd/gotraceui/main.go:310:18: undefined: Canvas
cmd/gotraceui/main.go:311:19: undefined: Trace
cmd/gotraceui/main.go:318:6: undefined: GCScheduler
cmd/gotraceui/main.go:346:15: undefined: DebugWindow
cmd/gotraceui/main.go:607:6: undefined: Canvas
cmd/gotraceui/main.go:1266:2: undefined: HoveredLinker
cmd/gotraceui/main.go:1455:17: undefined: Trace
cmd/gotraceui/main.go:1455:17: too many errors
running from URL
go1.23.0 run honnef.co/go/gotraceui/cmd/gotraceui@master ─╯
go: downloading honnef.co/go/gotraceui v0.5.0-0.dev.0.20250304232220-00289f5f4c1d
go: honnef.co/go/gotraceui/cmd/gotraceui@master (in honnef.co/go/[email protected]):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
For the moment you will have to use
masterinstead oflatest.
maybe we could go mod vendor it. Use go work first, then vendor it, last remove the go.work file.
Sorry for bothering, I know you're in the middle of rewriting things, probably I should just wait? But with master repo clone
go1.23.0 run cmd/gotraceui/main.go ─╯ # command-line-arguments cmd/gotraceui/main.go:178:14: undefined: ObjectLink cmd/gotraceui/main.go:180:18: undefined: ObjectLink cmd/gotraceui/main.go:300:2: undefined: HoveredLinker cmd/gotraceui/main.go:310:18: undefined: Canvas cmd/gotraceui/main.go:311:19: undefined: Trace cmd/gotraceui/main.go:318:6: undefined: GCScheduler cmd/gotraceui/main.go:346:15: undefined: DebugWindow cmd/gotraceui/main.go:607:6: undefined: Canvas cmd/gotraceui/main.go:1266:2: undefined: HoveredLinker cmd/gotraceui/main.go:1455:17: undefined: Trace cmd/gotraceui/main.go:1455:17: too many errors
You want go1.23.0 run ./cmd/gotraceui - trying to build a single file from a package is not the same as building the package.
running from URL
go1.23.0 run honnef.co/go/gotraceui/cmd/gotraceui@master ─╯ go: downloading honnef.co/go/gotraceui v0.5.0-0.dev.0.20250304232220-00289f5f4c1d go: honnef.co/go/gotraceui/cmd/gotraceui@master (in honnef.co/go/[email protected]): The go.mod file for the module providing named packages contains one or more replace directives. It must not contain directives that would cause it to be interpreted differently than if it were the main module.
This is infuriating. I will look into it.
@dominikh fantastic, I'm finally able to run it and open the traces, thank you very much for sharing the software and the knowledge ❤ .