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

fix crash of wds when trying to follow emacs lock files by ignoring them #10706

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zalox
Copy link

@zalox zalox commented Mar 18, 2021

Hi,

The Webpack development server crashes when it tries to follow emacs lock files.

See #9056 for a more detailed description of the issue.

The default ignore options from watchpack (chokidar?) was changed at some point. This restores previous behavior of this package.

@facebook-github-bot
Copy link

Hi @zalox!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ericprud
Copy link

Anyone know why Azure barfed all over this? If it was a coincidential but, would those messages be cleared by @zalox pushing a trivial whitespace change?

@zalox
Copy link
Author

zalox commented Jun 1, 2021

Hello,

I just rebased my branch top of the current master.

@zalox
Copy link
Author

zalox commented Jun 1, 2021

Anyone know why Azure barfed all over this? If it was a coincidential but, would those messages be cleared by @zalox pushing a trivial whitespace change?

The tests were bad. They assumed that the ignoredFiles would return a regex. After this fix, it returned an array of regexes instead. See the two last commits.

@stale
Copy link

stale bot commented Jan 9, 2022

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
@ericprud
Copy link

@zalox , as far as you know, is this patch still necessary? If you merge main, do the tests still pass?
If yes on both, anyone know of any other blockers for merging?

@Invertisment
Copy link

Invertisment commented Jan 30, 2022

I think this is where monorepos and monoliths fail. If there is a problem and nobody exposes a way to configure it then people need to go through hoops to fix it. If that's even possible at all.

This repo has 1.2K of open issues. There is no way this is ever going to merged. Let's keep bumping it if it's the only way to provide any signalling.

https://drewdevault.com/2021/11/16/Cash-for-leftpad.html

@stale stale bot removed the stale label Jan 30, 2022
@Invertisment
Copy link

#!/bin/bash
set -e

# Fixes emacs file watcher temp file crashes
# Run from you project root

cd ./node_modules/react-dev-utils/
rm -vf ignoredFiles.js
wget 'https://raw.githubusercontent.com/facebook/create-react-app/a3dd649530f4c0c305fc183842399c9d36ecf97f/packages/react-dev-utils/ignoredFiles.js'

echo OK

@zalox
Copy link
Author

zalox commented Jan 30, 2022

After a bit of investigation I figured out that the issue was fixed upstream.
paulmillr/chokidar#1010
https://github.com/paulmillr/chokidar/blob/master/.github/full_changelog.md

Would it be productive to merge this anyways for the users running an old version of chokidar, to somehow pick this up as a minor update for this package? (Not completely sure how packages are resolved with npm/yarn)

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

Successfully merging this pull request may close these issues.

Development server errors due to emacs file lock
4 participants