8000 Is it possible to open traces from 1.24 go? · Issue #179 · dominikh/gotraceui · GitHub
[go: up one dir, main page]

Skip to content

Is it possible to open traces from 1.24 go? #179

Open

Description

@dolzenko

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

Image

Activity

  1. dominikh commented on Mar 4, 2025

    @dominikh
    Owner

    For the moment you will have to use master instead of latest.

  2. dolzenko commented on Mar 5, 2025

    @dolzenko
    Author

    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/gotraceui@v0.5.0-0.dev.0.20250304232220-00289f5f4c1d):
            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.
    
  3. ddkwork commented on Mar 5, 2025

    @ddkwork

    For the moment you will have to use master instead of latest.

    maybe we could go mod vendor it.
    Use go work first, then vendor it, last remove the go.work file.

  4. dominikh commented on Mar 5, 2025

    @dominikh
    Owner

    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/gotraceui@v0.5.0-0.dev.0.20250304232220-00289f5f4c1d):
            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.

  5. dolzenko commented on Mar 6, 2025

    @dolzenko
    Author

    @dominikh fantastic, I'm finally able to run it and open the traces, thank you very much for sharing the software and the knowledge ❤ .

  6. added a commit that references this issue on Sep 23, 2025
  7. added a commit that references this issue on Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0