New issue
Advanced search Search tips
Starred by 6 users

Issue metadata

Status: Submitted
Owner: ----
Closed: Jan 31

Sign in to add a comment

Issue 10279: Syntax highlighting broken for Dart files

Reported by, Jan 9

Issue description

Affected Version:

What steps will reproduce the problem?
1. got to
2. see public/dart/widgets/lib/src/model/provider.dart file

What is the expected output?
syntax highlighting works through the entire file

What do you see instead?
half way through the file syntax highlighting is broken

Comment 1 by, Jan 10

Project Member
Status: AwaitingInformation (was: New)
Hi, thanks for the report. Is this a regression or has this never worked? Is this happening on many files or just this one? We are using a third party library (highlightjs) to do the syntax highlighting, so this would likely have to be fixed upstream [1]. 

We are currently very thinly staffed and won't get to this immediately, but if you could try to reproduce if this is also broken upstream, you can either file an issue against them or let us know that we need to update our version of highlightjs (but I believe we already use their latest version).


Comment 2 by, Jan 10

Project Member
 Issue 10246  has been merged into this issue.

Comment 3 by, Jan 10

I think this issue is inconsistent, meaning some CLs are fine and highlight all files correctly while others break half way similar to the one I linked to. So because of that it's hard to say if it's a regression or not.

I'm not sure how to even go about reproducing this upstream, I only use gerrit for this specific project for now.

Comment 4 by, Jan 11

Project Member
Makes sense. We have a big backlog of open issues to look through, and we will hopefully get to it in the next weeks. The suggestion for reproducing it upstream (probably by checking out highlightjs and using it directly) was just if you prefer not to wait on us.

Comment 5 by, Jan 14

Comment 6 by, Jan 15

Project Member

Comment 7 by, Jan 21

I had a few minutes and wrote up a fix:

Comment 8 by, Jan 22

Project Member
Status: Accepted (was: AwaitingInformation)
Thanks, the fix was merged upstream, so that we need
to bump highlight JS version to master.

Comment 9 by, Jan 24

Project Member
Status: Started (was: Accepted)

Comment 10 by, Jan 24

Project Member
Status: ChangeUnderReview (was: Started)

Comment 11 by, Jan 24

Project Member
Labels: Hotlist-SyntaxHighlighting

Comment 12 by, Jan 31

Project Member
Status: Submitted (was: ChangeUnderReview)

Comment 13 by, Feb 8

Project Member
Labels: FixedIn-2.16.5

Sign in to add a comment