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
fix: process is killed on linter warning #460
Comments
Hi @mrgnhnt96 👋 This doesn’t appear to be an issue with Dart Frog. Based on the warning it looks like the generated code for your user model includes an |
Yeah, the code is being generated by a different package, but because of the warning, the process gets killed, which I don't expect. Its worth noting, if I comment out the |
Yeah Dart Frog exits if there is anything reported to stderr initially. I can try to improve that 👍 |
After looking into this problem, here are my description of the current situation: Fact 1:The VM (started by These wearing messages are popped from Fact 2:
The process with hot reload forwards the error messages to the process Fact 3:After calling starting the server, That is our problem. Proposed solutionConsidering that we cannot disable these warnings and that the VM can and should pop messages to stderr for problems with higher severity than WARNING (see this file), We should filter warning messages from stdrrr as criteria for killing the process. The affected logic is here. To reproduce this issue locally, one should follow OP's steps but lock |
Added a quick proposal for fix here: #592 |
Description
A clear and concise description of what the bug is.
I am getting a warning in the console when running
dart_frog dev
from some of my generated code.Steps To Reproduce
copy_with_extension
,copy_with_extension_gen
(dev),build_runner
(dev)a. Add the
@CopyWith()
annotationb. Add a field
final String id
dart_frog dev
Expected Behavior
A clear and concise description of what you expected to happen.
I'd expect for this warning to be omitted. I've added in the analysis_options to exclude generated files from the linter
Screenshots
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: