grafana / jfr-parser

Java Flight Recorder parser library written in Go.
Apache License 2.0
43 stars 16 forks source link

undefined: parser.ProcessSymbols #35

Closed eltonjr closed 3 months ago

eltonjr commented 3 months ago

Problem

I'm trying to use pprof as a dependency but my build fails with this message

# github.com/grafana/jfr-parser/pprof
/go/pkg/mod/github.com/grafana/jfr-parser/pprof@v0.0.0-20240815065100-4296f63fd6d7/parser.go:17:27: undefined: parser.ProcessSymbols
/go/pkg/mod/github.com/grafana/jfr-parser/pprof@v0.0.0-20240815065100-4296f63fd6d7/pprof.go:76:26: f.LineNumber undefined (type types.StackFrame has no field or method LineNumber)

Probable cause

As far as I can tell, it's because main branch still points to an outdated version of parser (v0.7.2) https://github.com/grafana/jfr-parser/blob/v0.8.0/pprof/go.mod#L7