dotnet / dotnet/fsharp

IDE code analysis starts to freeze on large files affecting Intellisense, text coloring, tooltips and responsiveness

Open
#16,050 32 comments 3 reactions 0 assignees View on GitHub
Area-Compiler-Service Feature Improvement Theme-Performance
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

While working in `Fabulous.Avalonia`, had my project in a refactoring "broken" state, and suddenly it went in a borked state . Had to manually remove parts of the code until the IDE was able to handle it again.
**Repro steps**
Provide the steps required to reproduce the problem:
- Clone https://github.com/fabulous-dev/Fabulous.Avalonia/tree/repro-code-analysis-freeze
- Open `Fabulous.Avalonia.sln`
- Open Root/State.fs and observe that the code analysis does not finish affecting Intellisense, text coloring, tooltips and responsiveness

If possible, attach a zip file with the repro case. This often makes it easier for others to reproduce.
The zip file should ideally represent the situation just before the call/step that is problematic.

You can find the related IDE snapshot if that help diagnosing the issue https://github.com/fabulous-dev/Fabulous.Avalonia/tree/repro-code-analysis-freeze/idesnapshots

**Expected behavior**
Regardless of the state of your project. the IDE should be able to analyze/report the state of your code.

**Actual behavior**
IDE code analysis starts to freeze on large files affecting Intellisense, text coloring, tooltips and responsiveness

**Known workarounds**
Start removing part of the code in `State.fs` until the IDE/Compiler is able to handle the solution
Provide a description of any known workarounds.

**Related information**

Provide any related information (optional):
- Initially reported https://youtrack.jetbrains.com/issue/RIDER-98788/F-code-analysis-freezes-performance-degradation-in-large-files.#focus=Comments-27-8143607.0-0

* Operating system: Window, macOS
* .NET 7.0 (android, iOS)
* Editing Tools: Rider

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.