Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to build go-json-experiment #4804

Open
Gaubee opened this issue Mar 13, 2025 · 2 comments
Open

fail to build go-json-experiment #4804

Gaubee opened this issue Mar 13, 2025 · 2 comments

Comments

@Gaubee
Copy link

Gaubee commented Mar 13, 2025

tinygo version 0.36.0 darwin/arm64 (using go version go1.24.1 and LLVM version 19.1.2)

# github.com/go-json-experiment/json
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:784:8: k.SetIterKey undefined (type addressableValue has no field or method SetIterKey)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:798:8: v.SetIterValue undefined (type addressableValue has no field or method SetIterValue)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:806:8: k.SetIterKey undefined (type addressableValue has no field or method SetIterKey)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:834:8: k.SetIterKey undefined (type addressableValue has no field or method SetIterKey)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:836:8: v.SetIterValue undefined (type addressableValue has no field or method SetIterValue)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_inlined.go:133:8: mk.SetIterKey undefined (type addressableValue has no field or method SetIterKey)
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_inlined.go:145:8: mk.SetIterKey undefined (type addressableValue has no field or method SetIterKey)
@Syuparn
Copy link

Syuparn commented Mar 17, 2025

It seems to be related to #4790 (reflect#Value.SetIterKey is missing).

method SetIterKey and SetIterValue come from addressableValue's embbeded field reflect.Value.

https://github.com/go-json-experiment/json/blob/d3c622f1b874954c355e60c8e6b6baa5f60d2fed/arshal_default.go#L784

https://github.com/go-json-experiment/json/blob/d3c622f1b874954c355e60c8e6b6baa5f60d2fed/arshal.go#L496-L503

@sxzz
Copy link

sxzz commented Mar 18, 2025

Tried 0.37.0-dev-e5a8d693, SetIterKey and SetIterValue methods are resolved, but still remains some issues

tinygo version 0.37.0-dev-e5a8d693 darwin/arm64 (using go version go1.24.1 and LLVM version 19.1.2)

# github.com/go-json-experiment/json
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:829:39: undefined: reflect.SliceOf
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:830:39: undefined: reflect.SliceOf
../../../go/pkg/mod/github.com/go-json-experiment/[email protected]/arshal_default.go:927:36: undefined: reflect.MapOf

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

No branches or pull requests

3 participants