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

Nodemon is incompatible with blessed. #217

Closed
JounQin opened this issue Oct 30, 2017 · 4 comments
Closed

Nodemon is incompatible with blessed. #217

JounQin opened this issue Oct 30, 2017 · 4 comments

Comments

@JounQin
Copy link

JounQin commented Oct 30, 2017

Please provide a description of the bug / issue, and provide the details below:

It is inserting a lot of characters when using nodemon to start dashboard

====================================================================

If the issue is visual, please provide screenshots here

Original and Longer Gif

Steps to reproduce the problem
  1. install nodemon
  2. run dev script:
    nodemon --execute "webpack-dashboard -- webpack-dev-server"
  3. move mouse or enter keyboard

====================================================================

More Details
  • What operating system are you on?
    macOS 10.13
  • What terminal application are you using?
    system terminal + zsh + oh-my-zsh
  • What version of webpack-dashboard are you using?
    ^1.0.0
  • What is the output of running echo $TERM?
    xterm-256color
@ryan-roemer
Copy link
Member

Can you please create a minimal repository with code + install + steps to reproduce the error so that we can see it too? Thanks!

@pk-pranshu
Copy link

I have the same issue with nodemon. The gif is perfect for an example

@JounQin
Copy link
Author

JounQin commented Nov 7, 2017

@ryan-roemer It should be very easy to add nodemon in every project and reproduce this issue.
Or you can check https://github.com/JounQin/ng-study/tree/webpack-dashboard and run

yarn
yarn dev

Then you will see this issue.

@ryan-roemer ryan-roemer changed the title could not work with nodemon correctly Nodemon is incompatible with blessed. Nov 7, 2017
@ryan-roemer
Copy link
Member

Thanks for the repository! Unfortunately, I am now able to confirm that this is an incompatibility between nodemon and blessed (the library webpack-dashboard uses under the hood for terminal magic). This is a similar issue to the incompatibility in shelljs we found in #214

You may want to search issues on nodemon (and they have tried fixes for webpack-dashboard in the past) with https://github.com/remy/nodemon/search?q=blessed&type=Issues&utf8=%E2%9C%93 -- or create a new one. If there is some hack / option that would help on the webpack-dashboard that you find from research, we'd definitely be open for incorporating that here.

But unfortunately, when I take your repository and completely remove webpack-dashboard and just use a super-simple example in the blessed project like:

diff --git a/package.json b/package.json
index 15d1f85..516bc08 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
   "author": "JounQin <admin@1stg.me>",
   "license": "MIT",
   "scripts": {
-    "dev": "nodemon --exec \"webpack-dashboard -- webpack-dev-server\"",
+    "dev": "nodemon --exec \"node node_modules/blessed/example/simple-form.js\"",
     "build": "rimraf dist && cross-env NODE_ENV=production webpack --colors --progress -p",
     "tslint": "tslint -p . -e 'node_modules/**' -t stylish '**/*.ts'",
     "stylelint": "stylelint **/**/*.scss",
@@ -25,6 +25,7 @@
     "@angular/platform-browser": "^5.0.0",
     "@angular/platform-browser-dynamic": "^5.0.0",
     "@angular/router": "^5.0.0",
+    "blessed": "^0.1.81",
     "rxjs": "^5.5.2",
     "zone.js": "^0.8.18"
   },

Running yarn dev produces the exact same gibberish text you are seeing:

screen shot 2017-11-07 at 10 00 26 am

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

3 participants