zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.99k stars 2.83k forks source link

Editor issue when opening some HTML #7910

Open krstp opened 7 months ago

krstp commented 7 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Here is a weird thing. Find attached some weird HTML that I was trying to process, when drag'n'dropping the file into editor, this is what is happening with the editor when the search tab is invoked CMD+F) and one of the characters is pressed for match. It will find the first character, but then the neighboring pane would get affected getting empty. Screenshot 2024-02-16 at 9 57 22 AM

I am working in 4 pane setup, and the ones in screenshot are two most right.

Attachment (try to drag'n'drop this file into ZED with neighboring pane: test.html.zip

Environment

Zed: v0.123.1 (Zed Preview) OS: macOS 14.2.1 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

See above screenshot for bug details

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

This is the log, which is fully flooded with the same message top to bottom.

[...]
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
2024-02-16T09:58:14-06:00 [ERROR] scene too large: 406 paths, 1 shadows, 1531 quads, 9 underlines, 19701 mono, 0 poly, 0 surfaces
github-actions[bot] commented 1 week ago

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. Are you able to reproduce this issue in the latest version of Zed? If so, please let us know by commenting on this issue and we will keep it open; otherwise, we'll close it in a week. Feel free to open a new issue if you're seeing this message after the issue has been closed. Thanks for your help!