Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Hot Reload in Flet 0.10.x #1945

Closed
alisanoelia opened this issue Oct 12, 2023 · 6 comments
Closed

Bug: Hot Reload in Flet 0.10.x #1945

alisanoelia opened this issue Oct 12, 2023 · 6 comments

Comments

@alisanoelia
Copy link

Hello everyone,

I'm experiencing the same issue with the Hot Reload feature in Flet 0.10.x. I'm using Void Linux and Python 3.12. Unfortunately, the automatic reload is not functioning as expected, and it's causing some disruption in my development workflow. This issue did not occur in previous versions, such as Flet 0.7.x.

Is there an anticipated solution or fix for this problem on the horizon? I'd appreciate any guidance or information on how to address this, as it's impacting my work.

Thank you for your help!

@plugeit
Copy link

plugeit commented Oct 12, 2023

what i think is python 3.12 may be causing the issue because for me hot reload is working fine and i am using latest version of it too you can try github codespaces and there it will for sure work

@frankhuurman
Copy link

Can confirm that on Ubuntu 22.04 with Flet 0.10.3 and Python 3.11.4 hot reload also doesn't work:
image

When I save the .py file with an update of the text of a ft.Text widget it just shows me a frozen loading circle forever with nothing shown in the terminal.

It also does it with any example I try like the To-Do app.

@alisanoelia
Copy link
Author

"I'd like to share a solution I found for the Hot Reload issue in Flet. It seems that adding 'port' and 'view' parameters to the last line of your code can resolve the problem. Simply use the following line: ft.flet.app(target=main, view=WEB_BROWSER, port=8080). This adjustment has enabled the Hot Reload functionality for me, and I hope it proves helpful to others facing a similar challenge."

@elakdmico
Copy link

Same problem. Hot Reload not working on flet. I try python 3.11 and 3.9, same problem.

@barju6693
Copy link

"I'd like to share a solution I found for the Hot Reload issue in Flet. It seems that adding 'port' and 'view' parameters to the last line of your code can resolve the problem. Simply use the following line: ft.flet.app(target=main, view=WEB_BROWSER, port=8080). This adjustment has enabled the Hot Reload functionality for me, and I hope it proves helpful to others facing a similar challenge."

Thanks @alisanoelia, I added the port parameter and it worked for me!

@ndonkoHenri
Copy link
Collaborator

Closing in favour of #1556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants