question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint-watch doesn't work with docker-compose

See original GitHub issue

I have been trying to get my front-end working on docker for the past day and I have narrowed down some irregular behaviour to eslint-watch and docker.

I have recreated a minimal working repo of the bug I am experiencing.

It seems that linting is somehow staggered when using docker-compose (docker-compose up specifically, docker-compose run seems to work fine). Rather the last console log statements are staggered. I am not sure what it is, but from my reading the best interpretation I can give is that the log messages that should be printed out for the linting are for some reason not flushed out of the node message queue.

I have narrowed down the message printing to the eslint watcher file. If I add in more console logs at the end of this method it prints out the linting fine, but it staggers my logs (i.e. the last logs in execution).

To replicate, download my repo, run docker-compose up and edit the test.js file and save. You will see what I mean.

I hope this is descriptive enough, it’s a really strange bug.

Any ideas how I can actually figure this out?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rizowskicommented, Nov 17, 2016

Haha I was using iTerm 2 v3.0.12 to test it out. Glad you were able to figure out the issue. Strange that it was the terminal causing the issue.

1reaction
rizowskicommented, Nov 17, 2016

Hey @ryannealmes I am just getting set up for the day. I’ll take a look at it in a few minutes and tell you what I think. Thanks for posting this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to figure out why eslint-watch doesn't work with docker ...
It seems that linting is somehow staggered when using docker-compose ( docker-compose up specifically, docker-compose run seems to work fine).
Read more >
EsLint with Docker compose timeout : WEB-55769 - YouTrack
Hello, I've managed to set up our mono repo in IntelliJ Idea Ultimate to work with Docker Compose and remote NodeJs plugin. Debugging,...
Read more >
Tasks in Visual Studio Code
Integrate with External Tools via Tasks. Lots of tools exist to automate tasks like linting, building, packaging, testing, or deploying software systems.
Read more >
Best Practices For Using NodeJS In Docker - Dev Genius
File Monitoring and Node Auto Restarts · Use nodemon for compose file monitoring · webpack-dev-server, etc. work the same · If windows, enable ......
Read more >
Docker Compose vs ESLint | What are the differences? - StackShare
Docker Compose and ESLint are both open source tools. ... It doesn't feel quite right to me to use ESLint, I wonder if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found