Comments (2)
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.
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)
- Serialization of custom OT types HOT 2
- 'createSubscribeQuery' only works when share is connected under WebSockets
- Main Example HOT 1
- Will encrypting operations ever be supported
- Issues with resubscribed docs removed HOT 1
- http://sharejs.org/ is down? HOT 3
- How to inform the client when init a `doc` that whether the `doc` exists or not?
- Linear performance issues with larger number of operations submitted
- Sharejs.org Demo Site Not Live HOT 2
- Require ShareJS with Browserify, cannot find module 'ot-json0' HOT 1
- Authorization with latest ShareJS
- Project status HOT 5
- Multiple Documents using sharejs HOT 1
- Is it possible to run ShareJS in a multi clustered environment ?
- Issue in ShareJS Codemirror editor
- Postgres for backend store
- What is the current status?
- Error: `make` failed with exit code: 2 HOT 2
- Cannot read property 'handle' of undefined HOT 1
- please delete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharejs.