Git Product home page Git Product logo

Comments (4)

nemanja-tosic avatar nemanja-tosic commented on August 19, 2024

Ah removing the wasm test (IOW using the JS backend) fixes the issue for me. It could be a problem in the wasm backend then i suppose 🤔

from automerge.

ept avatar ept commented on August 19, 2024

Confirmed that this happens with the latest wasm backend, but not with the JS backend, so I will transfer this issue to the automerge-rs repository.

The test calls Automerge.applyChanges with an empty Automerge document an a single deflate-compressed change, and then calls Automerge.getAllChanges to read back the change. getAllChanges returns only the deflate-compressed byte array, which is lacking the 11 byte header that a change should have (consisting of 4 magic bytes, 4 bytes checksum, 1 byte chunk type, and 2 bytes chunk length). Looks like case of accidentally failing to add the header.

from automerge.

jeffa5 avatar jeffa5 commented on August 19, 2024

Hi @nemanja-tosic I've just merged the work that should fix this thanks to @alexjg, if you could maybe pull the latest main and check it again with your test to (hopefully) confirm this fixes it?

from automerge.

nemanja-tosic avatar nemanja-tosic commented on August 19, 2024

As far as i can tell it works fine now.

from automerge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.