flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.05k stars 427 forks source link

Flet Hot Reload is no longer returned #3005

Open thinkORo opened 5 months ago

thinkORo commented 5 months ago

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
jdouble commented 4 months ago

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

taaaf11 commented 3 months ago

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