microsoft / vscode-recipes

MIT License
5.88k stars 579 forks source link

Server fails when changing a file (and Meteor restarts) #181

Open znat opened 5 years ago

znat commented 5 years ago

Using the Node or All configuration, when changing a file, the server becomes available. The debug console outputs


Failed to load resource: net::ERR_CONNECTION_REFUSED [http://localhost:3000/sockjs/info?cb=gk3423xfq4]
`
khaledalyawad commented 5 years ago

same happens to me

bedinsky commented 5 years ago

same happens to me using an official meteor demo project using vuejs

git clone https://github.com/chris-visser/meteor-vue-admin

After I changed a file on vs code workspace, the server is no more responding on port 3000 This is what is logged in debug console

/usr/local/bin/npm run debug

meteor-vue-admin@ debug /home/bedinsky/git/meteor-vue-admin MONGO_URL=mongodb://127.0.0.1:27017/sea-mes meteor run --settings settings.json --inspect-brk=9229 [[[[[ ~/git/meteor-vue-admin ]]]]] => Started proxy.

=> [HMR] Dev server listening on port 3003. W20190719-11:23:46.683(2)? (STDERR) Debugger listening on ws://127.0.0.1:9229/6e4cbb36-5fd1-4613-a732-574b42913aa0 W20190719-11:23:46.739(2)? (STDERR) For help see https://nodejs.org/en/docs/inspector W20190719-11:23:46.863(2)? (STDERR) Debugger attached. => Started your app. => App running at: http://localhost:3000/ => Server modified -- restarting...

joshleblanc commented 5 years ago

There's a workaround here: https://github.com/microsoft/vscode-recipes/issues/112#issuecomment-406493567