-
My prior running Program stopped working with Errors I cannot understand. Starting the program leads to errors below, and no screen is shown at all. I start the program the way I always did:
Is this a Flutter thing? I'd appreciate any hint! this is the rather lengthy output:
Thanks for the wonderful flet package and the work you are doing! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Thanks! Since it's NixOS, and issue filed without a template, and I'm moving it to discussions. Is Flutter supported on NixOS? What version of Flutter SDK do you have? Have you tried running |
Beta Was this translation helpful? Give feedback.
-
Thank you for the fast Response! I did a new setup in an ubuntu VM and it works as it was supposed to work. So it's definitely a Nixos problem. Although it also did work on Nixos before... I'm investigating a Nixos solution for this from here on. Maybe this comment will help others not blaming flet for this kind of error. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Hi I face same issue. Usually I do 'flutter upgrade' so in my case: PROBLEM: $ flutter upgrade 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 HOW I FIX IT: And works |
Beta Was this translation helpful? Give feedback.
-
@gjelsas Because I found this flutter issue so I tried to investigate: I upgrade again my flutter version to previously problematic one 3.22.1 - see error like :
So state on my machine:
Then check 3.22.1 release hello world example file with assumption it should work somehow and just tried to use it in flet. Just copy/paste patch :) and app works :). For better understanding see picture : Hope helps NOTE: Sometimes I have issue with first app run, but re-launch works (but I notice first run issue also from previous versions, so it is not related this "patch" ... ). |
Beta Was this translation helpful? Give feedback.
-
It seems it is a flutter issue and they are already working on the fix. So I'm still stuck on my Ubuntu-VM as I'm not able to get flutter 3.19 to work on my Nixos machine... |
Beta Was this translation helpful? Give feedback.
-
Okay, I found a way using the nixos overlay syntax to create a flutter 3.19 overlay and start my program. For anyone who is interested here are my shell.nix and the flutter-overlay.nix files. They are in the same folder. You can remove the shell-hooks, if you don't want to start the Program or source the virtual environment on activation of the nix-shell environment. to start execute shell.nix:
flutter-overlay.nix: |
Beta Was this translation helpful? Give feedback.
Okay, I found a way using the nixos overlay syntax to create a flutter 3.19 overlay and start my program. For anyone who is interested here are my shell.nix and the flutter-overlay.nix files. They are in the same folder. You can remove the shell-hooks, if you don't want to start the Program or source the virtual environment on activation of the nix-shell environment.
to start execute
nix-shell
in the folder containing the two files.shell.nix: