objectbox-go icon indicating copy to clipboard operation
objectbox-go copied to clipboard

objectbox-gogen can't prepare bindings

Open icobani opened this issue 9 months ago • 1 comments
trafficstars

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 avatar Feb 13 '25 08:02 icobani

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 avatar Feb 17 '25 08:02 greenrobot-team