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

objectbox-gogen can't prepare bindings #54

Open
icobani opened this issue Feb 13, 2025 · 1 comment
Open

objectbox-gogen can't prepare bindings #54

icobani opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working more info required Further information is requested

Comments

@icobani
Copy link

icobani commented Feb 13, 2025

i m trying to sample project on my desktop. But first step for gogen get an error.

$ objectbox-gogen ./...
Generating ObjectBox bindings for ./...
Requested to generate for directory/pattern ./..., performing an implicit cleanup first
Removing internal\model\task.obx.go
Removing main.obx.go
can't prepare bindings for vendor\github.com\google\flatbuffers\go\builder.go: unknown type map[string]UOffsetT on property sharedStrings found in Builder

my go.mod file can be found below.

module objectbox-sample


go 1.23.6

require (
	github.com/google/flatbuffers v25.2.10+incompatible
	github.com/objectbox/objectbox-go v1.8.1
)

require github.com/objectbox/objectbox-generator v0.14.0 // indirect`


any suggession for this.

thanks

@icobani icobani added the bug Something isn't working label Feb 13, 2025
@greenrobot-team
Copy link
Member

Thanks for reporting! As the error originates in the flatbuffers builder and the version from your module file differs: have you tried using the flatbuffers version that this repo uses? See https://github.com/objectbox/objectbox-go/blob/main/go.mod

@greenrobot-team greenrobot-team added the more info required Further information is requested label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more info required Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants