-
Notifications
You must be signed in to change notification settings - Fork 855
Feature: Improve diagnostic messages #19398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
T-Gro
wants to merge
48
commits into
main
Choose a base branch
from
feature/diagnostic-messages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
cc6d5db
Reword FS0072 IndeterminateType error message for clarity
T-Gro b7ada5b
FS0039: Reword 'does not define field/constructor/member' to clearer …
T-Gro 7ef169c
Reword FS0597 'successive arguments' error message for clarity
T-Gro a1f43a4
FS0670: Suggest 'inline' for type variable escape scope errors
T-Gro 572fa4f
Append 'operator not in scope' hint to csExpectTypeWithOperatorButGiv…
T-Gro 0af9320
FS0247: Improve namespace/module collision error message
T-Gro b3f2903
FS0003: Show concrete type in 'not a function' error message
T-Gro b5c792c
FS3082: List available static parameters in error message
T-Gro 611b32b
FS0025: Add context-aware hint for incomplete match in for-loops
T-Gro 00a34c0
Type mismatch errors say 'is a tuple of type' when actual type is a t…
T-Gro ac66566
Add specific error for let!/use! at end of CE
T-Gro 9222e8e
Improve error for elif chain without final else branch
T-Gro 4c0a175
Add warning 3883 for comma vs semicolon confusion in list literals
T-Gro 164db13
Fix warning 3883 to exclude struct tuples in list literals
T-Gro 3435818
Add test for SRTP operator scope hint in error message
T-Gro b101368
Add test for ErrorFromAddingTypeEquation2Tuple diagnostic path
T-Gro 5f2b982
Document MatchIncomplete 4th bool and add inline comments
T-Gro 8f4a0a2
Deduplicate tuple detection in CompilerDiagnostics.fs
T-Gro 0882c78
Flatten nested match in TcLinearExprs IfThenElse context selection
T-Gro ea316d8
Add test for isTyparTy fallback in NotAFunction handler
T-Gro ebdc5f6
Add positive tests for elif chain missing-else detection
T-Gro 020e058
Extract and test static parameter name truncation logic
T-Gro 0b7fd5e
Add missing copyright header to StaticParameterFormattingTests.fs
T-Gro 9ff63e0
Address review council findings: quality and test improvements
T-Gro a9e6b46
Add release notes for diagnostic message improvements and MatchIncomp…
T-Gro d79918f
Address review council: ellipsis on truncation, info-level W3883, thr…
T-Gro 54ffd94
Fix review findings: test assertions, trailing newline, tuple alias test
T-Gro 3445a5d
Fix dead code
4289f45
Address review council: iterative elif walk, typed constant patterns,…
T-Gro 95cf5bb
Improve diagnostic wording: tuple operator hint, FS0670 inline advice…
T-Gro 7b1a447
tests
T-Gro 29b5404
Merge branch 'main' into feature/diagnostic-messages
T-Gro 17fb983
Renumber FS3882→FS3884, FS3883→FS3885 after merge; fix hint ordering …
T-Gro 1d814b3
Merge branch 'main' into feature/diagnostic-messages
T-Gro 6495e53
Address council review: fix stale test, simplify elifChainMissingElse
T-Gro f883edb
Refactor FS0025 for-loop hint: replace bool threading with Diagnostic…
T-Gro 5514168
Move release notes to 11.0.100, remove from 10.0.300
T-Gro 21eb975
Fix invalid XLF state attribute causing all CI failures
T-Gro 9646c04
Merge main and resolve conflicts
T-Gro 033a7c7
Fix CI: update tests for new diagnostic messages
T-Gro 5687d21
Merge origin/main into feature/diagnostic-messages
T-Gro 0ea798f
Fix CI: correct test baselines for diagnostic message changes
T-Gro 2a8524e
Remove accidentally committed .copilot-pid file
T-Gro 155a1c0
Merge remote-tracking branch 'origin/main' into feature/diagnostic-me…
T-Gro f8aa09a
Merge remote-tracking branch 'origin/main' into feature/diagnostic-me…
T-Gro 348cf8e
Merge remote-tracking branch 'origin/main' into feature/diagnostic-me…
T-Gro 6b396be
Merge branch 'main' into feature/diagnostic-messages
T-Gro 50046bb
docs: add new diagnostic numbers FS3885 and FS3886 to release notes
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot add the new diagnostic numbers to the release note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 50046bb. The release note now lists the new diagnostics FS3885 (
let!/use!as final CE expression) and FS3886 (single tuple element in list literal), plus an enumeration of the improved diagnostics (FS0003, FS0025, FS0039, FS0072, FS0247, FS0597, FS0670, FS3082, SRTP hints).