You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i attempt to auto reload with flet run -d ./app --recursive a restart race commences when a file is modified or opened in a subdir below ./app . Even without --recursive file opens in ./app trigger a restart/reload
Now cd example_app and then execute the app with flet run -d ./app --recursive
modify /components/my_flet_controls.py in your ide and save will trigger a restart race. additionally just cat ./app/components/__init__.py will trigger a restart
with flet run -d ./app (NO --recursive) just a cat ./app/__init__.py will trigger a restart
Issue Description:
when i attempt to auto reload with
flet run -d ./app --recursive
a restart race commences when a file is modified or opened in a subdir below./app
. Even without--recursive
file opens in./app
trigger a restart/reloadEnvironment
on a modification in recursive
Steps to Reproduce:
following setup
Now
cd example_app
and then execute the app withflet run -d ./app --recursive
modify
/components/my_flet_controls.py
in your ide and save will trigger a restart race. additionally justcat ./app/components/__init__.py
will trigger a restartwith
flet run -d ./app
(NO --recursive) just acat ./app/__init__.py
will trigger a restartFix
in the
flet run
cli, Only restart if the watchdogevent.event_type in ['modified','deleted','created','moved']
the handler is herehttps://github.com/flet-dev/flet/blob/a7d7c86930fe70550589c9ba665997c440980f51/sdk/python/packages/flet/src/flet/cli/commands/run.py#L291C12-L291C69
I will raise a PR for this
The text was updated successfully, but these errors were encountered: