Nodemon: Is `rs` supposed to work after the app crashed?

Created on 13 Dec 2018  Â·  7Comments  Â·  Source: remy/nodemon

  • nodemon -v: 1.18.7
  • node -v: v11.3.0
  • Operating system/terminal environment: MacOS Mojave 10.14.2 / iterm2
  • Command you ran: nodemon index.js

Question

Hello. Is nodemon supposed to restart if I write rs after a script fails?
If that is the case, this isn't working on my system.
If that isn't, that would be a cool feature request.
image

bug has PR

Most helpful comment

All 7 comments

Yes it should.

Please can you provide full details on how to replicate (with a fully parred down example case).

@remy thanks for replying.
The code I had is basically a express server, and that's it.
When it fails "rs" doesn't get detected.

This is the example code that will just reproduce the error:

const express = require('express');
var app = express();
app.listen('7003', '0.0.0.0', function() {
  throw 'hey'
});

Save it to index.js and then nodemon index.js
image

Can you give it a try with the latest nodemon? 1.18.8

Not working

image

I'm able to replicate.

It's specific to [email protected] - as it's not a problem in node@10.

If you want to have a go at a PR, I'd be happy to merge (not sure this area of code has tests though…).

Can confirm it's fixed on 1.18.9 :)

image

Thanks. 😸

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fabianMendez picture fabianMendez  Â·  4Comments

Mohammad-Quanit picture Mohammad-Quanit  Â·  5Comments

Exeteres picture Exeteres  Â·  4Comments

remy picture remy  Â·  5Comments

jonerer picture jonerer  Â·  4Comments