config.go compilation problem. #44

Closed
kilim opened this Issue Jul 8, 2011 · 4 comments

2 participants

@kilim

config.go:107: invalid operation: nm == name (mismatched types reflect.StructTag and string)
config.go:179: cannot use name (type reflect.StructTag) as type string in function argument

Go's been updated so that tags on fields are not simple strings, but encoded key-value pairs.

type Foo struct {
bar int "This is not a description"
baz int "desc": "This is a correct tag"
}

The first tag cannot be retrieved from the reflection API.

@nsf
Owner
nsf commented Jul 8, 2011

Version, version! Tell me your compiler version. I'm checking the latest weekly right now :)

@nsf
Owner
nsf commented Jul 8, 2011

Fixed in the latest gocode commit. I've marked it with compatible-with-go-weekly.2011-07-07 tag as usual.

Please check it out and close the issue if it's gone.

@kilim

Ah, didn't realize that hg clone of go didn't pull in the latest, latest stuff.

It compiles cleanly now.

@kilim kilim closed this Jul 8, 2011
@kilim

Forgot to thank you much for this lovely bit of work, and for the prompt service!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment