wails icon indicating copy to clipboard operation
wails copied to clipboard

Hot Reload not working for backend changes on windows

Open vitorestevam opened this issue 2 years ago • 6 comments

Description

I'm using wails on windows and my code doenst hot reloads when I do changes in the backend .go files. If I pass a single file to the -reloaddirs it do work, but not for all files of my project. Any way I can archive this?

To Reproduce

  1. Create a project on windows
  2. Execute it with wails dev
  3. Change a .go file
  4. expect the code to do not a hot reload

Expected behaviour

The code should hot reload after the changes on the backend files

Screenshots

No response

Attempted Fixes

I've tried to use a bash command to list all my dirs, but this is not a very friendly way to do this, and the feature IS HERE, I just need to understand why it's not working

System Details

# Wails
Version | v2.6.0

# System
┌──────────────────────────────────────┐
| OS           | Windows 10 Enterprise |
| Version      | 2009 (Build: 19045)   |
| ID           | 22H2                  |
| Go Version   | go1.20.6              |
| Platform     | windows               |
| Architecture | amd64                 |
└──────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 117.0.2045.43 |
| Nodejs     | N/A          | Installed | 18.17.1       |
| npm        | N/A          | Installed | 9.6.7         |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

Additional context

I don't really know if it's my project's problem or a general one, but other people working on the same project also are not able to use hot reloads on .go file changes.

tnks in advance

vitorestevam avatar Sep 28 '23 17:09 vitorestevam

does your project's frontend package.json contain dependency of vite tool ?

This old issue maybe help, you can try it.

kerneltravel avatar Oct 06 '23 02:10 kerneltravel

does your project's frontend package.json contain dependency of vite tool ?

This old issue maybe help, you can try it.

The hot reload is working well for frontend, but not for backend .go files changes

vitorestevam avatar Oct 06 '23 14:10 vitorestevam

I'll take a look this weekend 👍

leaanthony avatar Oct 06 '23 21:10 leaanthony

Changes on the backend are not triggering a rebuild in my project either, also on windows

DaviAragorn avatar Oct 30 '23 17:10 DaviAragorn

It was working for me , but after I upgrade latest svelte and other dependencies in the frontend folder it is not working anymore.

Mrrajfactory avatar Apr 19 '24 23:04 Mrrajfactory

Experiencing same issue on windows. The reload works 1 or 2 times and then stops working

mjm918 avatar Jul 20 '24 13:07 mjm918