practicalmeteor / meteor-sinon

Depreciated - Sinon.JS, wrapped for meteor
https://atmospherejs.com/practicalmeteor/sinon
Other
20 stars 11 forks source link

Breaks server restart when meteor shell is running #16

Open yourcelf opened 9 years ago

yourcelf commented 9 years ago

When you have a meteor shell instance running, and a code change causes the server to restart, the following exception is thrown repeatedly by the server as it attempts to restart:

W20150908-12:42:12.346(-6)? (STDERR) Error: Cannot find module './sinon/util/core'
W20150908-12:42:12.346(-6)? (STDERR)     at Function.Module._resolveFilename (module.js:338:15)
W20150908-12:42:12.346(-6)? (STDERR)     at Function.Module._load (module.js:280:25)
W20150908-12:42:12.346(-6)? (STDERR)     at Module.require (module.js:364:17)
W20150908-12:42:12.346(-6)? (STDERR)     at require (module.js:380:17)
W20150908-12:42:12.346(-6)? (STDERR)     at loadDependencies (packages/practicalmeteor:sinon/sinon-1.14.1.js:1106:1)
W20150908-12:42:12.346(-6)? (STDERR)     at packages/practicalmeteor:sinon/sinon-1.14.1.js:1128:1
W20150908-12:42:12.347(-6)? (STDERR)     at packages/practicalmeteor:sinon/sinon-1.14.1.js:1135:1
W20150908-12:42:12.347(-6)? (STDERR)     at sinonChai.sinonChai.slice (packages/practicalmeteor:sinon/sinon-1.14.1.js:5921:1)
W20150908-12:42:12.347(-6)? (STDERR)     at /project/.meteor/local/build/programs/server/packages/practicalmeteor_sinon.js:5945:4
W20150908-12:42:12.347(-6)? (STDERR)     at packages/practicalmeteor:sinon/Helpers.coffee:1:1

Quitting the meteor shell session lets the server restart properly, but it is an annoyance to have to quit/restart the meteor shell on any code change.