Skip to content

Conversation

@zackradisic
Copy link
Contributor

What does this PR do?

Fixes #21042

Fixes an issue where editing an entrypoint in Vim would not hot reload

@robobun
Copy link
Collaborator

robobun commented Aug 15, 2025

Updated 2:49 PM PT - Aug 18th, 2025

@autofix-ci[bot], your commit ff58806 has 5 failures in Build #23310:


🧪   To try this PR locally:

bunx bun-pr 21874

That installs a local version of the PR into your bun-21874 executable, so you can run:

bun-21874 --bun

Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner left a comment

Choose a reason for hiding this comment

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

  • What keeps the file paths in the hash table alive?
  • stat on every file? is that the best we can do here?
  • is there a way to reduce the potential of TOUTTOC bugs here? can re-opening a file for watching happen and that removes the stat() call and means fewer syscalls?

zackradisic and others added 11 commits August 14, 2025 19:23
…ven-sh/bun into zack/devserver-fix-watching-entrypoint
- Add deleted_entrypoints field to VoidFieldTypes initialization in memory_cost.zig
- Handle macOS-specific GuardedValue memory cost calculation for DeletedEntrypointWatchlist
- Make DeletedEntrypointWatchlist.Entry public to allow @sizeof access from memory_cost.zig

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
…ven-sh/bun into zack/devserver-fix-watching-entrypoint
- Remove duplicate deleted_entrypoints field in VoidFieldTypes struct
- Make DeletedEntrypointWatchlist.Entry public for external access
- Fix SmallList API usage: replace .items with .slice() method
- Add memoryCostSmallList helper function for SmallList memory calculation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Replace std.StringArrayHashMapUnmanaged with bun.StringArrayHashMapUnmanaged for better performance
- Fix Windows EPERM error in vim-file-swap test by using fs.renameSync instead of fs.cpSync

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[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.

Removing served html file crashes bun

4 participants