divan / gotrace

Concurrency tracer and visualizer for Go (Golang) programming language
MIT License
1.97k stars 128 forks source link

trace.Parse error in go1.8.1 #16

Open MannyKayy opened 7 years ago

MannyKayy commented 7 years ago

I followed the advice given in this issue

But get the following error when trying to install the package: ./events.go:50: too many arguments in call to trace.Parse have (io.Reader, string) want (io.Reader)

When i attempt to do the same within the docker image provided in this repo,I also get the same error.

Any advice would be greatly appreciated, Thanks

dnutiu commented 7 years ago

I get

panic: not a trace file

goroutine 1 [running]:
main.main()
    /Users/denis/go/src/github.com/divan/gotrace/main.go:39 +0x1f7

go version go1.8 darwin/amd64

0Animal0 commented 7 years ago

not a trace file , me too!

divan commented 7 years ago

I think I've created a confusion with premature update of docker container.

docker container with gotrace creates trace in Go 1.8 format, but master branch of gotrace is expecting Go 1.6 trace format, hence this error.

You may try to use go18 branch of gotrace, but I have to fix this for sure.