Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome tab not closing properly when using Nodemon #1

Closed
ebramanti opened this issue Dec 18, 2016 · 10 comments
Closed

Chrome tab not closing properly when using Nodemon #1

ebramanti opened this issue Dec 18, 2016 · 10 comments

Comments

@ebramanti
Copy link
Contributor

ebramanti commented Dec 18, 2016

I have an issue where restarting my server through Nodemon does not close the tab, but instead renders this error message:

screenshot 2016-12-17 21 19 28

After looking through the source code I think I've isolated the problem to here. The catch for the HTTP request does not consider a valid case where the debug server is not down, but the ID of the debugger websocket changes.

A proposed solution would be to store the unique identifier for each devtools session, and check if that identifier is in the returned JSON from the localhost debug server. Requests coulda also be minimized by making the request only once and filtering $scope.devToolsSessions according to the returned identifiers.

I'd be willing to PR this in the next couple days with your OK @june07

Edit: Initial conversation about this issue can be found here.

@june07
Copy link
Owner

june07 commented Dec 18, 2016 via email

@ebramanti
Copy link
Contributor Author

@june07 Dev environment is Node 6.9.1, I'm using [fly] and [fly-nodemon] to run Nodemon, and I pass inspect in as a nodeArgs option to Nodemon. Since the Fly process continues running the server hosting the websockets comes back up before the 3000ms check, I think that could be why your code is not detecting a change.

It might be easier if I show you in code... I have a PR ready that shows the solution I have in mind.

@june07
Copy link
Owner

june07 commented Dec 19, 2016 via email

@ebramanti
Copy link
Contributor Author

Thanks @june07, let me know when you update this on the Chrome Web Store.

@june07
Copy link
Owner

june07 commented Dec 26, 2016 via email

@DarrylD
Copy link

DarrylD commented Dec 26, 2016

Sorry, commented before I worked it out. Needed to update chrome apparently... Thx, awesome plugin!

@june07
Copy link
Owner

june07 commented Dec 26, 2016 via email

@duanjun
Copy link

duanjun commented Jan 14, 2017

macOS sierra 10.12.2 . chrome 55.0.2883.95 (64-bit)
had the same problem

@june07
Copy link
Owner

june07 commented Jan 14, 2017

Are you using the current version? Any additional information you can provide will be helpful in figuring out what is going on. I'm sure you have already but in case not, please read through the entire thread as some information may be helpful.

@duanjun
Copy link

duanjun commented Jan 16, 2017

it works now . thanks.
maybe my setting is not right !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants