Skip to content

[analyzer] analyzer starts leaking when typing a switch expression #52352

Description

@incendial

When I type the following code, analyzer memory usage just skyrockets. Restarting the process via VS Code does not kill the existing one.

Screenshot 2023-05-11 at 17 04 33 Screenshot 2023-05-11 at 17 00 21

Been able to repro this 2 times in a row.

Here is a video on produced errors.

Screen.Recording.2023-05-11.at.17.06.20.mov

Let me know what else I need to provide for this to be fixed.

#### General info

- Dart 3.0.0-417.4.beta (beta) (Tue May 2 10:26:14 2023 +0000) on "macos_x64"
- on macos / Version 12.6 (Build 21G115)
- locale is en-GB

#### Project info

- sdk constraint: '>=3.0.0-417.1.beta <4.0.0'
- dependencies: ansicolor, collection, crypto, file, glob, html, meta, path, pub_semver, recase, source_span, xml, yaml
- dev_dependencies: lints, mocktail, test
- elided dependencies: 4

#### Process info

|  Memory |   CPU | Elapsed time | Command line                                                                           |
| ------: | ----: | -----------: | -------------------------------------------------------------------------------------- |
| 6996 MB | 67.8% |        07:31 | dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.65.20230510 |

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failures

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions