Git Product home page Git Product logo

Comments (2)

nornagon avatar nornagon commented on August 22, 2024

That does look like a bug (should probably check that path.length == match_path.length == common). Do you have a particular failing test case?

from sharejs.

collin avatar collin commented on August 22, 2024

Ah, yes I've been able to isolate it.

This test fails with an error in test/types/json-api.coffee

'collins failing test': (test) ->
  doc = new Doc name: "name", components: []
  doc.at("name").on "insert", (p, op) ->
  doc.at("components").on "child op", (p, op) ->
  doc.emit 'remoteop', [{p:['name', 4], si:'X'}]

this is the failure I get

✖ collins failing test

Error: paths match length and have commonality, but aren't equal?
    at Object.<anonymous> (/Users/collin/Code/ShareJS/src/types/json-api.coffee:330:27)
    at Object.<anonymous> (/Users/collin/Code/ShareJS/src/types/json-api.coffee:342:14)
    at Object.emit (/Users/collin/Code/ShareJS/src/client/microevent.coffee:54:20)
    at Object.<anonymous> (/Users/collin/Code/ShareJS/test/types/json-api.coffee:346:18)
    at Object.<anonymous> (/Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/lib/core.js:233:16)
    at /Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/lib/core.js:233:16
    at Object.runTest (/Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/lib/core.js:69:9)
    at /Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/lib/core.js:115:25
    at /Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/deps/async.js:508:13
    at /Users/collin/.nvm/v0.6.6/lib/node_modules/nodeunit/deps/async.js:118:13

from sharejs.

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.