Skip to content

Fix CLI client crash when a file is removed before we process the change notification#14616

Merged
thecrypticace merged 8 commits into
nextfrom
fix/postcss-client-crash
Oct 9, 2024
Merged

Fix CLI client crash when a file is removed before we process the change notification#14616
thecrypticace merged 8 commits into
nextfrom
fix/postcss-client-crash

Conversation

@philipp-spiess

Copy link
Copy Markdown
Contributor

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.

Comment thread packages/@tailwindcss-postcss/src/index.ts Outdated
@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

@thecrypticace thecrypticace left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread packages/@tailwindcss-cli/src/commands/build/index.ts Outdated
Comment thread packages/@tailwindcss-cli/src/commands/build/index.ts Outdated
Comment thread CHANGELOG.md Outdated
@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
Comment thread packages/@tailwindcss-cli/src/commands/build/index.ts Outdated
@philipp-spiess philipp-spiess force-pushed the fix/postcss-client-crash branch from 58030df to dfbfb78 Compare October 9, 2024 13:01

@thecrypticace thecrypticace left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@thecrypticace how the hell 🫠 cursed PR

@philipp-spiess

Copy link
Copy Markdown
Contributor 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 🤷

Comment thread CHANGELOG.md Outdated
@thecrypticace thecrypticace enabled auto-merge (squash) October 9, 2024 14:52
@thecrypticace thecrypticace merged commit 8b0d224 into next Oct 9, 2024
@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 <jordan@cryptica.me>
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