Skip to content
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

CssSemanticAnalyser needs to flatten OffsetRanges for highlights #5151

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

matthiasblaesing
Copy link
Contributor

CssSemanticAnalyser reported overlapping ranges for highlights, for
example when an attribute is used in a :not() pseudo class construct.

The formatting behind the embedded range is lost and results in a
broken view.

The embedded OffsetRanges need to be flattened into a sequenze of
non-overlapping ranges.

… ranges are not deteced

This case for example:

OR1:    |--------------|
OR2:          |---|

was not caught.
@matthiasblaesing matthiasblaesing added CSS [ci] enable web job ci:all-tests [ci] enable all tests labels Dec 26, 2022
@matthiasblaesing matthiasblaesing added this to the NB17 milestone Dec 26, 2022
@matthiasblaesing matthiasblaesing linked an issue Dec 26, 2022 that may be closed by this pull request
@apache apache locked and limited conversation to collaborators Dec 26, 2022
@apache apache unlocked this conversation Dec 26, 2022
@matthiasblaesing
Copy link
Contributor Author

@mbien
Copy link
Member

mbien commented Dec 27, 2022

@matthiasblaesing not sure if you know. But we can now also create test builds by simply adding the ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) label. It has a 7 day retention time atm.

@matthiasblaesing
Copy link
Contributor Author

@mbien I knew this in the back of my mind. When it became important, my mind did not want to help in remembering. Thanks for the input!

CssSemanticAnalyser reported overlapping ranges for highlights, for
example when an attribute is used in a :not() pseudo class construct.

The formatting behind the embedded range is lost and results in a
broken view.

The embedded OffsetRanges need to be flattened into a sequenze of
non-overlapping ranges.

Closes: apache#5012
@matthiasblaesing
Copy link
Contributor Author

Reduced logging verbosity and will merge when unittests come back green

@matthiasblaesing matthiasblaesing merged commit e5dd712 into apache:master Jan 10, 2023
@matthiasblaesing matthiasblaesing deleted the GH-5012 branch January 10, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:all-tests [ci] enable all tests CSS [ci] enable web job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CSS] Color error on Pseudo-classes
2 participants