nordnet / cordova-hot-code-push-local-dev-addon

[DEPRECATED] - Cordova plugin that adds local development feature to the Hot Code Push plugin.
https://github.com/nordnet/cordova-hot-code-push-local-dev-addon/issues/29
MIT License
24 stars 30 forks source link

Local server crash #21

Closed kristfal closed 5 years ago

kristfal commented 7 years ago

Looks like lock is called incorrectly or is buggy. Stack trace:

Should trigger reload for build: 2017.08.04-17.38.45
a user connected
/usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/lock/index.js:18
    var i = locked[key].indexOf(exec) //should usually be 0
                       ^

TypeError: Cannot read property 'indexOf' of undefined
    at _release (/usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/lock/index.js:18:24)
    at /usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/lock/index.js:11:7
    at Socket.<anonymous> (/usr/local/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok/index.js:104:10)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at Pipe.onread (net.js:523:20)
[17:41:35] 'serve:apps-server' errored after 3.88 min
[17:41:35] Error: Command `cordova-hcp server` failed with exit code 1
    at ChildProcess.exithandler (child_process.js:203:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

This usually happens when multiple files are changed.

nordnet-deprecation-bot commented 5 years ago

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push-local-dev-addon anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #29 for more information.