Skip to content

store in sync.js called twice #61

@mgraauw

Description

@mgraauw

Having Sync on in Atom.

Whenever I save a local file, I get a message from busy-signal:
"Status .... is already set..."
caused by line 70 in syn.js:
this.emit("status", Uploading ${file} to ${relPath} as ${contentType}...);
Not an busy-signal issue (see similar problems in busy-signal git).
Files are actually synced to eXist, no problems there.

Replacing the lines in sync.js with:
console.log('hi')
var d = new Date()
this.emit("status", Uploading ${d.getTime()}: ${file} to ${relPath} as ${contentType}...);
resolves the busy-signal error, however the console does say 'hi' twice for every save.

Seems the underlying problem is store being called twice.

Atom 1.34.0 x64 on Win10, eXist 4.3.1, atom existdb package 0.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions