-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[DDC] Crash on Safari: "Duplicate parameter 'char' not allowed in function with default parameter values." #43520
Comments
Thanks for filing the issue. I should point out that support for the development compiler (DDC) in Safari is not complete and we have several known issues there. We usually recommend running apps in development mode in Chrome or FF, and only run the release/deploy version (dart2js) of the program in Safari. Sounds from your other bug that you also run into issues in Safari with the release version? I sense it may be higher priority to investigate that first? |
@sigmundch Yes, that is correct. The release bug has to be something different and that is high priority while the debug one was only relevant because I am trying to debug the release one. I am having a really hard time debugging it because I either get nothing from the console or logs that I do not know exactly how to work with (not human readable or not verbose). Ideally, I would need some way to properly debug in Safari. Examples: I get In release mode, the app also does not run, but I do not see any logs. We have another Flutter web app that runs on Safari just fine and the code base is partially shared, which makes it even weirder. |
any update on this? I'm having this issue as well in the production release of our app. [Error] SyntaxError: Duplicate parameter 'char' not allowed in function with default parameter values. |
Sorry, we don't have any updates at the moment, we have prioritized work on other areas and have not yet looked into this issue. I worry about the problems you mention on the production version of the app though. When we fix the issue in DDC, it will not help with the error you may be hitting in production (which uses a different compiler pipeline). @creativecreatorormaybenot was seeing a blank console in production. @smunozp - do you happen to have errors from your production version of your app? Any tips on how to create a small repro for that? |
I was able to do a workaround to make the app work on safari... I had an async function on main to initialize firebase that was without a try-catch, hope this helps others facing a similar issue |
Bug
When running a Flutter Web app that uses
petitparser
(a Dart only package), the app crashes immediately when starting on Safari.The app does not need to call any
petitparser
code - it just needs to reference the dependency in order to include it in the app.Reproducible steps
The reproducible steps on the Flutter side can be found here. They are simply adding the
petitparser
dependency, referencing it, and running it on Safari.Error
The error logs are the following:
Logs
The text was updated successfully, but these errors were encountered: