wails/v3/internal
Lea Anthony b0871c19e1
[v3] Fix: Vite server not cleaned up when build fails (#4436)
* fix: properly clean up Vite server when build fails

Ensures the Vite server process is terminated when a build fails
during 'wails3 dev', preventing port conflicts on subsequent runs.

Fixes #4403

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: add defer for watcher cleanup and tidy up returns

- Add defer cleanup() to ensure resources are always freed
- Remove manual cleanup in error path since defer handles it
- Simplify error handling for better maintainability

Addresses feedback on PR #4436

* fix: prevent channel deadlock in watcher cleanup

- Separate cleanup logic from channel notification
- cleanup() only stops the engine
- signalCleanup() handles both cleanup and channel notification
- Prevents deadlock when function exits normally

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-02 17:48:01 +10:00
..
assetserver Update runtime 2025-07-15 22:55:12 +10:00
buildinfo [v3] Late service registration and error handling overhaul (#4066) 2025-02-19 09:27:41 +01:00
capabilities Add Linux stubs for badge service and fix capabilities compilation 2025-06-11 23:45:34 +10:00
changelog Nightly release action 2025-07-17 06:28:19 +10:00
commands [v3] Fix: Vite server not cleaned up when build fails (#4436) 2025-08-02 17:48:01 +10:00
dbus [V3-Linux] Systray OnClick on initial icon click (#3907) 2024-11-24 07:46:14 +11:00
debug Run go mod tidy on project creation. Use better method of relative module location. 2023-08-12 14:32:52 +10:00
doctor [V3] fix: enhance doctor command to verify Windows SDK dependencies (#4392) 2025-07-15 18:43:23 +10:00
fileexplorer [v3] Fix OpenFileManager on windows (#4375) 2025-07-03 05:36:59 +10:00
flags Add goModTidy function to clean up Go module dependencies during inst… (#4286) 2025-08-02 15:51:30 +10:00
generator Refactor Manager API to use singular naming convention (#4367) 2025-06-22 12:19:14 +10:00
github Fix tests 2025-01-20 19:56:03 +11:00
go-common-file-dialog [v3] allow build with garble (#3192) 2025-01-10 16:36:24 +11:00
hash [v3] Late service registration and error handling overhaul (#4066) 2025-02-19 09:27:41 +01:00
operatingsystem Add Linux stubs for badge service and fix capabilities compilation 2025-06-11 23:45:34 +10:00
packager [V3-Linux] Support for deb,rpm,arch linux packager packaging (#3909) 2024-11-30 13:31:56 +11:00
runtime feature: V3 alpha feature/snapassist support (#4463) 2025-08-02 16:59:49 +10:00
s Support template generation 2025-01-01 20:58:49 +11:00
service Breaking Change: Service method names 2025-01-16 07:47:23 +11:00
signal # Conflicts: 2024-09-18 05:55:49 +10:00
templates Add goModTidy function to clean up Go module dependencies during inst… (#4286) 2025-08-02 15:51:30 +10:00
term [v3] Pass build flags to binding generator (#4023) 2025-01-23 10:58:35 +00:00
version v3.0.0-alpha.17 2025-07-31 02:48:09 +00:00