Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Editor broken after trying to open large file #777

@peterflynn

Description

@peterflynn
  1. Try to open a large JS file (> 3 MB seems to do the trick)

Result: no code shown; gutter shows only line #1; editor background color only covers the top half of its area. Clicking anywhere in the editor throws "TypeError: Cannot call method 'chunkSize' of undefined".

Expected: file opens normally. I can open files up to at least 2.8 MB without a problem.

Worst case: if we absolutely can't open files beyond a certain size / line count / whatever, we should detect that, apologize, and then block CodeMirror from trying to load the text so we don't wind up showing broken UI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions