Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Clear the dimensions cache after updating the soft wrap column - #15828

Merged
nathansobo merged 1 commit into
masterfrom
ns-clear-dimensions-cache
Oct 5, 2017
Merged

nathansobo merged 1 commit into
masterfrom
ns-clear-dimensions-cache

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

Updating the soft wrap column could cause us to compute different values for derived dimensions, so any dimensions that were cached in the process of updating the soft wrap column need to be cleared.

This fixes a randomized test failure found be @Ben3eeE.

/cc @Ben3eeE @as-cii

@Ben3eeE

Ben3eeE commented Oct 5, 2017

Copy link
Copy Markdown
Contributor

This seed is still failing: const initialSeed = 1507231571985 // Fails with 10 random edits
The others I found are fixed with this PR.

@nathansobo

Copy link
Copy Markdown
Contributor Author

@Ben3eeE It would be more helpful to get the value for seed instead of initialSeed to jump straight to the failure.

Updating the soft wrap column could cause us to compute different values
for derived dimensions, so any dimensions that were cached *in the
process* of updating the soft wrap column need to be cleared.
@nathansobo
nathansobo force-pushed the ns-clear-dimensions-cache branch from 5a1459c to 835efd3 Compare October 5, 2017 21:48
@nathansobo

Copy link
Copy Markdown
Contributor Author

Force pushed a rebase to hopefully resolve an unrelated issue.

I'm having trouble reproducing with @Ben3eeE's failing seed. Maybe it's a platform issue. @Ben3eeE could push another WIP pull request with the failing seed? I think this PR is an improvement so I'm inclined to proceed once we build green.

@Ben3eeE

Ben3eeE commented Oct 5, 2017 •

Copy link
Copy Markdown
Contributor

Yeah this is an improvement 🚢

I'll push a WIP PR with the failing seed to see what the builds say.

@nathansobo
nathansobo merged commit eb0da16 into master Oct 5, 2017
@nathansobo
nathansobo deleted the ns-clear-dimensions-cache branch October 5, 2017 23:55
nathansobo pushed a commit that referenced this pull request Oct 5, 2017
Clear the dimensions cache after updating the soft wrap column
nathansobo pushed a commit that referenced this pull request Oct 5, 2017
Clear the dimensions cache after updating the soft wrap column
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants