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 CLI client crash when a file is removed before we process the change notification #14616

Merged
merged 8 commits into from
Oct 9, 2024

Conversation

philipp-spiess
Copy link
Member

Fixes #14613

Don't crash when trying to read the modification time of a file that might already be deleted.

Note: This fix is purely theoretical right now as I wasn't able to reproduce the issue yet.

@philipp-spiess philipp-spiess force-pushed the fix/postcss-client-crash branch 2 times, most recently from e076e5f to 356fe9d Compare October 8, 2024 10:06
@philipp-spiess philipp-spiess marked this pull request as ready for review October 8, 2024 10:06
Copy link
Contributor

@thecrypticace thecrypticace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the PR title is wrong — this is about the CLI

packages/@tailwindcss-cli/src/commands/build/index.ts Outdated Show resolved Hide resolved
packages/@tailwindcss-cli/src/commands/build/index.ts Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@philipp-spiess philipp-spiess changed the title Fix postcss client crash when a file is removed before we process the change notification Fix CLI client crash when a file is removed before we process the change notification Oct 8, 2024
@philipp-spiess philipp-spiess force-pushed the fix/postcss-client-crash branch from 58030df to dfbfb78 Compare October 9, 2024 13:01
Copy link
Contributor

@thecrypticace thecrypticace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog has some extra stuff in it

@philipp-spiess
Copy link
Member Author

@thecrypticace how the hell 🫠 cursed PR

@philipp-spiess
Copy link
Member Author

@thecrypticace most changes were actually intended to fix some conflicts that are in main right now but there was one unnecessary duplicate from a previous version somehow 🤷

CHANGELOG.md Outdated Show resolved Hide resolved
@thecrypticace thecrypticace enabled auto-merge (squash) October 9, 2024 14:52
@thecrypticace thecrypticace merged commit 8b0d224 into next Oct 9, 2024
1 check passed
@thecrypticace thecrypticace deleted the fix/postcss-client-crash branch October 9, 2024 14:56
RobinMalfait pushed a commit that referenced this pull request Oct 9, 2024
…nge notification (#14616)

Fixes #14613

Don't crash when trying to read the modification time of a file that
might already be deleted.

Note: This fix is purely theoretical right now as I wasn't able to
reproduce the issue yet.

---------

Co-authored-by: Jordan Pittman <[email protected]>
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

Successfully merging this pull request may close these issues.

Temporary files created and removed causing cli to crash with ENOENT no such file or directory lstat error
2 participants