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.
Fix Windows Tests ... by using newer windows version (win server 2022 vs 2019)
Don't know exactly why -- but newer os seems to have better lock handling.
This issue (very rarely) occurs on other oss too
-> still good idea to update to
dotnet 6.0.300which should fix this (as noted in #943 (comment)) (but not done here)Fixish occasional test failures
Reason: When Document waits for latest diagnostics, it has to wait a short time to get all diagnostics.
This wait time was sometimes to short on CI -> got incorrect diags -> test fails
I now wait a bit longer on CI tests (25ms vs 7ms for local test runs)
Tests now seem to succeed -- at least most of the time. Sometimes they still fail.
-> This isn't a real fix -- just hoping delay is now long enough to get all diags...
To really fix this we must ensure we get all correct diags. But this requires some rewriting of Diagnostics handling in FSAC
Besides updating windows I updated macos too -- but not ubuntu (currently used:
20.04, latest:22.4).Reason: with ubuntu 22, test
FSAC.lsp.Ionide WorkspaceLoader.CodeFix tests.ReplaceWithSuggestion.can change namespace in openalways fails:Test is about replacing
open System.Text.RegularEcpressionswithRegularExpressions.The CodeFix extracts that suggestion from F# compiler diagnostic message, which should look like:
But on ubuntu 22 there's no suggestion, just:
-> F# compiler produces correct Diagnostic (Code 39), but the message contains no suggestions.
All other suggestion tests (with suggestions in other locations like misspelled variable name) work
I have not the slightest idea why
(I cannot reproduce the issue locally: on local ubuntu 22 (docker) the test works just fine)