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

Regenerate SpacetimeDB ClientAPI bindings #147

Closed
wants to merge 2 commits into from

Conversation

jdetter
Copy link
Collaborator

@jdetter jdetter commented Oct 3, 2024

Description of Changes

Describe what has been changed, any new features or bug fixes

Staging has been broken in Unity since this PR merged: #116

The errors:

C:\Users\lightfox\lightfox\com.clockworklabs.spacetimedbsdk\src\Primitives.cs(79,35): error CS0426: The type name 'U128' does not exist in the type 'AlgebraicType'
C:\Users\lightfox\lightfox\com.clockworklabs.spacetimedbsdk\src\Primitives.cs(42,35): error CS0426: The type name 'I128' does not exist in the type 'AlgebraicType'

I believe the reason for this is out of date bindings for the ClientAPI. I've regenerated the bindings and it seems to be building now.

Follow-up actions

  • Add Unity to our CI so that we can catch these issues in the future.

API

  • This is an API breaking change to the SDK

If the API is breaking, please state below what will break

Not breaking

Requires SpacetimeDB PRs

List any PRs here that are required for this SDK change to work

No PRs required

Testing

  • Please double check my work and try this in Unity.

@jdetter jdetter changed the base branch from master to staging October 3, 2024 05:55
@jdetter jdetter force-pushed the jdetter/regenerate-client-api-bindings branch from 6625591 to dc4b38d Compare October 3, 2024 06:10
@jdetter jdetter force-pushed the jdetter/regenerate-client-api-bindings branch from dc4b38d to 94f3506 Compare October 3, 2024 06:11
@@ -19,11 +18,11 @@ public partial class BsatnRowList
[DataMember(Name = "size_hint")]
public SpacetimeDB.ClientApi.RowSizeHint SizeHint;
[DataMember(Name = "rows_data")]
public byte[] RowsData;
public System.Collections.Generic.List<byte> RowsData;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmm this is suspicious. @RReverser what do you think?

@jdetter
Copy link
Collaborator Author

jdetter commented Oct 3, 2024

This must go into 0.12, without this PR this sdk doesn't build in Unity!

@jdetter jdetter force-pushed the jdetter/regenerate-client-api-bindings branch from 0962e9a to 94f3506 Compare October 3, 2024 06:23
@jdetter
Copy link
Collaborator Author

jdetter commented Oct 3, 2024

closing in favor of something like this: #148

@jdetter jdetter closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant