jhump / protoreflect

Reflection (Rich Descriptors) for Go Protocol Buffers
Apache License 2.0
1.33k stars 170 forks source link

go build error #587

Closed likhita-8091 closed 6 months ago

likhita-8091 commented 9 months ago

code

package main

import (
    "fmt"
    "github.com/jhump/protoreflect/desc/protoparse"
    "log"
)

func parse() {
    var parser protoparse.Parser
    files := "./hello-world.pro111to"
    descriptors, err := parser.ParseFiles(files)
    if err != nil {
        log.Println(err)
        return
    }
    fmt.Println(descriptors)
}

func main() {

    fmt.Println("xxx")
    //parse()
}

error

image

likhita-8091 commented 9 months ago

i use your protoreflect pkg , display the error. if i not import the "github.com/jhump/protoreflect/desc/protoparse", no error

jhump commented 9 months ago

@CodingJzy, sorry, but it looks like something is wrong with your Go toolchain. What does go version report?

jhump commented 7 months ago

@CodingJzy, any more info on this? Did you get it working? I am not able to reproduce and, as mentioned in previous comment, suspect something weird in your Go toolchain.