Skip to content

Hot reload not working on flet version 0.24.1 #4034

Open
@SteveSant26

Description

@SteveSant26

Duplicate Check

Describe the bug

I'm trying to use the hot reload feature by running "flet run main.py -d", but everytime i make a change, my app crashes (?), for example in this code, where i just deleted one letter to the word worlddd, it crashed and didnt make the change.
image
When I use --web, the hot reload does work as expected, but when i run it as a desktop app, it doesnt.

Code sample

Code
import flet as ft

def main(page: ft.Page):
    page.title = "CRUD SQLITE"
    page.window.min_height = 500
    page.window.min_width = 500
    
    page.theme_mode = "dark"
    
    page.add(ft.Text("Hello Worldd!"))

if __name__ == "__main__":
    ft.app(target=main, view=ft.AppView.FLET_APP)

To reproduce

  1. Run the code
  2. Make a change in the code
  3. See it doesnt changes

Expected behavior

I would expect the hot reload to work properly

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11 pro 23H2

Flet version

0.24.1

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: regressionA feature that worked correctly doesn't anymoreplatform: desktopSpecific to the desktop platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions