-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Block uncomment throws exception near bottom of file #2887
Comments
To @peterflynn |
I think it might be problem with #2335 |
I ran unit tests (the full "All") manually on the Jenkins machine and they all pass. Also ran this suite locally on my machine and it passes, and NJ confirms same on his machine. I'm not seeing any evidence linking this to the tokenization race condition, other than it being not 100% reproducible. In #2335, the symptom was the command getting stale tokens back from CM and thinking some stuff was commented out when it wasn't (or vice versa). Here the symptom is CM crashing in updateDisplay() after we've made some edits... which often implies we passed it undefined or NaN as a line number at some point. |
Looking like a CM bug -- and it only occurs if CM has ever seen hidden lines (e.g. an inline editor before), which means whether or not this repros depends on the (nondeterministic) order that other test suites got run in. Will file an issue and disable the two tests for now. |
Filed codemirror/codemirror5#1255. Put up a pull request for disabling the tests, so reducing this to Low & adding Tracking label. |
Adding new info: there is a user-visible bug here too, but it's a little tricky to hit and not readily apparent unless you have Dev Tools open. Bumping up to Medium, though... The CM bug is now fixed, so this will be fixed with our next merge from upstream. |
- Update SHA to our CodeMirror fork's master, which is now clean with upstream (brackets-sprint20 branch in the adobe/CodeMirror2 fork is no longer needed) - Fix htmlmixed mode to specify parameters for handling mustache/handlebars templates, as required by latest CodeMirror - Reinstate commented-out unit tests from #2887 since the underlying CM bug should now be fixed
FBNC to @peterflynn |
Confirmed fixed |
Result: exception thrown in CodeMirror (although things seem to work fine afterward)
Original description:
Failures:
Both seem to be the same issue: TypeError: Cannot call method 'chunkSize' of undefined.
This only happens if certain other test suites are run before this one (so you have to run all the test suites, and the tests have to load in a certain order).
The text was updated successfully, but these errors were encountered: