-
Notifications
You must be signed in to change notification settings - Fork 12
Celest crashing when editing files #25
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
Comments
Hi @rubenferreira97, sorry you are facing this issue and thanks for the detailed report. I am taking a look and will get you an update soon. This should work, though, and I don't believe you're doing anything wrong. |
I've released version 0.1.8 of the CLI with a fix for this (it was a simple cache invalidation issue). You can get the latest by running |
Thank you for the quick input @dnys1! This issue seems to be solved, however I think it introduced a new issue on flutter hot reload (at least this was working in previous Celest versions): 1. In flutter, change FutureBuilder(
future: celest.functions.greeting.sayHello('Celest'), // Change 'Celest' to 'CelestA'
builder: (_, snapshot) => switch (snapshot) {
AsyncSnapshot(:final data?) => Text(data),
AsyncSnapshot(:final error?) =>
Text('${error.runtimeType}: $error'),
_ => const CircularProgressIndicator(),
},
), 2. App is reloaded but it still displays Sorry to bother, but I am testing this product and reporting issues because I really think it has a lot of potential! |
Oh no! 😬 I will look into it now. No bother at all! The feedback tells me you care which is great 🥳 please don't stop! |
Okay, I added some tests now and believe it is resolved 🤞 Would you be willing to run |
Hey @dnys1, I've upgraded to Celest 0.1.9, but I'm still encountering the flutter hot reload issue. I'm using Windows and Dart 3.3.0-279.2.beta. Do you think there might be a stale cache causing this? I managed to get it working once by creating a new project, but subsequent attempts haven't been successful. For future improvements, could we consider allowing user input after
Alternatively, adding more |
Thanks for the extra information. I will continue to look into it. At the moment, I'm not able to reproduce it but I'll keep you posted as I dig more! |
Does hot restarting the Flutter app display the correct information? |
Hey @dnys1, each time I hot reload flutter gives me a message that my application was restarted, however the old value still appears. After testing a bit, it seems hot reload is working, but after some time it stops working randomly. I think I have found the problem. Each time I run It seems 2024.02.02-22.56_03.mp4 |
Hey @dnys1, do you need me to do anything else or run any additional tests to help resolve this issue? I have upgraded to Celest version 0.1.13 and this issue still happens. No pressure, just asking! |
Hey @rubenferreira97, sorry for the radio silence. I haven't gotten a chance to dive in yet, but I should be able to look at it this weekend! Sorry for the inconvenience, and thanks for the data you've sent so far! |
Hi @rubenferreira97, I believe this is being caused by dart-lang/sdk#49234. I will see what I can do to workaround it! Apologies for the delay and thanks for your patience. |
Hi @rubenferreira97, I believe I have fixed this in the latest Would you be willing to run |
I also believe this is fixed! Thanks @dnys1! |
- Adds E2E test for #25 - Adds ability to force hot-reload via `SIGUSR1`/`SIGUSR2` (same as flutter) - Adds ability to set log file with all logs via env var
Steps to reproduce:
1. Given the following code:
functions/location.dart
:lib/models.dart
:functions/location.dart
:2. Change files and
Save All
:lib/models.dart
:3. See crash:
This seems to happen everytime I add or remove any fields from a
model
.The text was updated successfully, but these errors were encountered: