-
Notifications
You must be signed in to change notification settings - Fork 211
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
Flutter for Web - Error compiling dartdevc module:stock_notes|web/main.ddc.js #2362
Comments
cc @jensjoha any ideas on this one? |
It seems like we're trying to load an empty (i.e. 0-byte) file. |
Is there any better error message we can give here? On the build side, should we suggest folks clean and restart? |
I also wonder if we can detect this earlier - when we first see the empty output rather than when we try to give it as input. Can we assume that a kernel output should never be empty? |
Towards #2362 We don't know where the zero byte files are being introduced to the system - if they are coming from the kernel worker try to catch them earlier by checking for when we copy a file with no content. This won't solve the issue but if errors surface through this they should be more clear. - Add a `requireContent` argument to `copyOutput`. In the future we might consider making the default either with or without an output - we don't know of any use cases where we want to allow copying a zero byte file. - Use the new argument from the kernel builder to check earlier whether a kernel file is empty.
Towards #2362 We don't know where the zero byte files are being introduced to the system - if they are coming from the kernel worker try to catch them earlier by checking for when we copy a file with no content. This won't solve the issue but if errors surface through this they should be more clear. - Add a `requireContent` argument to `copyOutput`. In the future we might consider making the default either with or without an output - we don't know of any use cases where we want to allow copying a zero byte file. - Use the new argument from the kernel builder to check earlier whether a kernel file is empty.
A kernel file should never be empty.
Maybe we should add some checks in the ddc and bazel pipelines to check up front both if the input is non-empty and the output is non-empty..? |
I published a new version of |
We haven't hit this, I think, for quite a while now. Probably because flutter web is no longer using @jakemac53 do you recall seeing any more recent reports of this issue from non-flutter users? |
I have not seen any recent reports |
@L-Sypniewski commented on Sat Jul 13 2019
Hi,
I've encountered an error while trying to run the page via
webdev serve --auto restart
command, however, when I deploy the website to Firebase Hosting or simulate the hosting locally by executingFirebase serve --only hosting
everything works fine.The code that produces an error worked at first, then I made some changes that made the web app stop working. Thinking it was some error in my code I reverted the code to the last known working version, but it didn't work anymore.
I'm attaching an error message below:
We're sorry, you've found a bug in our compiler.
You can report this bug at:
https://github.com/dart-lang/sdk/issues/labels/area-dev-compiler
Please include the information below in your report, along with
any other information that may help us track it down. Thanks!
The text was updated successfully, but these errors were encountered: