-
Notifications
You must be signed in to change notification settings - Fork 344
Don't fail at startup if textmate grammar can't be parsed by browser #4938
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
Don't fail at startup if textmate grammar can't be parsed by browser #4938
Conversation
I believe the bot failure is unrelated (related to the bumping of the SDK version):
|
@elliette should I hold off landing this until bots are green, or is it likely they'll be this way for a while? (I'm less familiar with the process and current status here) |
@kenzieschmoll for input! I haven't done much devtools development recently |
I'm trying to fix the bots now - #4941. The breakage is due to the move to Dart version > 3.0.0, since a lot of the packages we depend on have an upper bound sdk constraint of 3.0.0. |
the temporary fix has landed (#4944). If you merge master, the bots should go green. |
Yep, all green. Thanks! |
@kenzieschmoll @CoderDake I realised I didn't add this to any changelog, and there doesn't seem to be a milestone for the next release. Assuming this should be noted (it makes DevTools load in Safari), is https://github.com/flutter/devtools/blob/master/packages/devtools_app/lib/src/framework/release_notes/release-notes-next.md the correct place to add it? (it looks like it, though there's nothing else currently listed there so I'm unsure if it's just a template). |
Yes, any notable user facing issues should be documented in the release-notes-next.md file. We automatically generate the CHANGELOG when we do the release, but the release notes should be drafted as we go. |
Thanks - I've opened #4966 to add this. |
Nvm, it is released on 2.21 :) |
The textmate grammar uses negative lookbehinds which are not supported in Safari. I've had a go at changing the grammar, but I can't find a way to support what we need (without a significant change to how the textmate grammar works) so for now this change will just handle errors and leave syntax highlighting disabled for browsers that don't support this.
Before this change, DevTools fails to load in safari:
With the change, it loads and prints a warning about the failed syntax highlighting in the console:
And using the app works as normal:
Fixes #2856.