flet icon indicating copy to clipboard operation
flet copied to clipboard

Flet Hot Reload is no longer returned

Open thinkORo opened this issue 1 year ago • 2 comments

Description I have a Flet app with code distributed in several folders (like view, dialogs, ...). I want to use hot reload not to start the app after each code change in the subfolders.

For this I use the following command

flet run --web --port 8550 --directory --recursive main.py

Describe the results you received: Unfortunately with the "--directory --recursive" parameter this call is no longer returned. After minutes I have to cancel the command with STRG+C

Describe the results you expected: I would expect my Flet app to start and update automatically when there is a change in my codebase.

Flet version (pip show flet):

Version: 0.21.2

Operating system:

Linux with Python 3.11 in Conda virtual env

thinkORo avatar Apr 09 '24 06:04 thinkORo

I am seeing the same issue.

I noticed that it does work with the --directory switch. Unfortunately, that only works for the main.js script directory and not the subdirectories.

Flet version 0.22.1 OS version Linux 6.6.25-01713-g2f237acc8e50 x86_64

jdouble avatar Jun 06 '24 02:06 jdouble

This is working for me. With both --recursive and --directory and also with single --recursive.

taaaf11 avatar Jun 20 '24 07:06 taaaf11