Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Undefined has attribute error. #34

Open
stephendparker opened this issue Nov 10, 2017 · 1 comment
Open

Undefined has attribute error. #34

stephendparker opened this issue Nov 10, 2017 · 1 comment

Comments

@stephendparker
Copy link

Great library - thanks for the work! When I try to generate a go file from an XSD, I get a error compiling the file:

assets\model\items.xsd_go\items.xsd.go:430: undefined: XsdGoPkgHasAttr_Uniquename

on this code block generated:


type XsdGoPkgHasAtts_ItemBase struct {
	XsdGoPkgHasAttr_Uniquename

	XsdGoPkgHasAttr_Tier_Ttiernumber_

	XsdGoPkgHasAttr_Unlockedtocraft_XsdtBoolean_False

	XsdGoPkgHasAttr_Foodcategory

}

XSD file:
https://www.dropbox.com/s/6lwj4maomah7pn0/items.xsd?dl=0
GO file:
https://www.dropbox.com/s/lqy97t53tmxwvir/items.xsd.go?dl=0
XML file:
https://www.dropbox.com/s/zcqdvrypmv9jflz/items.xml?dl=0

@metaleap
Copy link
Owner

metaleap commented Nov 10, 2017

Regrettably I have really let this package "bit-rot" a bit over the years (thanks to not having had to work with any XMLs/XSDs for years), that is, I let all maintenance and bug hunting fall by the wayside. Ideally I'd "one of these days" get in touch with its major forkers to see whether existing fixes out-there (if any) can be re-consolidated into the master.

Hopefully between x-mas and new-years I might finally find the leisure+quiet to bring this whole package up to speed.

In the meantime, if time is of the essence I'd suggest to check out which of the dozens of forks have had actual changes made to them and/or found a number of starrers/followers/watchers. These might be the candidates to try in-place of this original repo and see if they do not cause the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants