dotnet / dotnet/fsharp

Error list math: Build + Intellisense < Build

Open
#14,585 3 comments 0 reactions 0 assignees View on GitHub
Area-LangService-Diagnostics Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/Error-list-math:-Build--Intellisense--/10246361)._

---
[severity:It's more difficult to complete my work]
When building a solution, the error list includes warnings. After a few seconds (2-8 seconds), the list is truncated and important warnings disappear (that result in run-time exceptions). This is when the setting is Build + Intellisense. I am not expecting Build + Intellisense to ever contain less warnings and errors than Build alone, nor for the list to suddenly shrink after a rebuild has completed.

This particular issue, in combination with another error in WarningsAsErrors not working, resulted in shipping a critical defect in our software which should have been trivially caught by static analysis.

The solution consists mostly of F# projects and two C# projects.

The FS0025 warning disappeared from the error list.

---
### Addition from comments (i.e error repro)
I should be more precise:

Error panel: Build + Intellisense
Start rebuild

Observe: error list contains FS0025 warning
Wait a few seconds
Observe: suddenly error list does not contain FS0025 warning
The issue does not occur when the error list panel is set to the Build message setting (i.e. without Intellisense). Since we manually audit the error (warnings) list before releases, we would have caught this warning, even if WarningsAsErrors did not help us in the first place; however since the warning vanished from view, even manual auditing for critical warnings did not help.

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.