Skip to content

Commit f6477bf

Browse files
authored
Merge pull request #18273 from dotnet/merge/main-to-feature/lsp
2 parents 065096c + 25db8cf commit f6477bf

File tree

312 files changed

+29455
-4884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+29455
-4884
lines changed

.config/dotnet-tools.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@
4444
],
4545
"rollForward": true
4646
},
47-
"dotnet-ilverify": {
48-
"version": "9.0.0-rc.2.24473.5",
49-
"commands": [
50-
"ilverify"
51-
],
52-
"rollForward": true
53-
},
5447
"fantomas": {
5548
"version": "6.2.3",
5649
"commands": [
5750
"fantomas"
5851
],
5952
"rollForward": true
53+
},
54+
"dotnet-ilverify": {
55+
"version": "9.0.0",
56+
"commands": [
57+
"ilverify"
58+
],
59+
"rollForward": false
6060
}
6161
}
62-
}
62+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"merge-flow-configurations": {
3+
"main": {
4+
"MergeToBranch": "feature/lsp",
5+
"ExtraSwitches": "-QuietComments"
6+
}
7+
}
8+
}

.config/service-branch-merge.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"merge-flow-configurations": {
3+
// regular branch flow
4+
"release/dev17.13": {
5+
"MergeToBranch": "main",
6+
"ExtraSwitches": "-QuietComments"
7+
},
8+
"main": {
9+
"MergeToBranch": "release/dev17.14",
10+
"ExtraSwitches": "-QuietComments"
11+
}
12+
}
13+
}

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
22
{
33
"name": "F#",
4-
"image": "mcr.microsoft.com/dotnet/sdk:9.0.100",
4+
"image": "mcr.microsoft.com/dotnet/sdk:9.0.102",
55
"features": {
6-
"ghcr.io/devcontainers/features/common-utils:2.5.1": {},
6+
"ghcr.io/devcontainers/features/common-utils:2.5.2": {},
77
"ghcr.io/devcontainers/features/git:1.3.2": {},
88
"ghcr.io/devcontainers/features/github-cli:1.0.13": {},
9-
"ghcr.io/devcontainers/features/dotnet:2.1.3": {}
9+
"ghcr.io/devcontainers/features/dotnet:2.2.0": {}
1010
},
1111
"hostRequirements": {
1212
"cpus": 2,

.fantomasignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ src/Compiler/Checking/SignatureConformance.fs
4040
src/Compiler/Checking/TypeHierarchy.fs
4141
src/Compiler/Checking/TypeRelations.fs
4242

43+
# nullness-related problems
44+
src/Compiler/DependencyManager/DependencyProvider.fs
45+
4346
# Incorrectly formatted: https://github.com/dotnet/fsharp/pull/14645/commits/49443a67ea8a17670c8a7c80c8bdf91f82231e91 or https://github.com/fsprojects/fantomas/issues/2733
4447
# This CompilerImports.fs behavior is not fixed yet, following up in https://github.com/fsprojects/fantomas/issues/2733
4548
src/Compiler/Driver/CompilerImports.fs

.github/workflows/branch-merge.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Merges any changes from servicing branches forward.
2+
3+
name: Flow servicing changes to main
4+
on:
5+
push:
6+
branches:
7+
- 'release/*'
8+
- 'main'
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
servicing-flow:
16+
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
17+
with:
18+
configuration_file_path: '.config/service-branch-merge.json'
19+
feature-lsp-flow:
20+
uses: dotnet/arcade/.github/workflows/inter-branch-merge-base.yml@main
21+
with:
22+
configuration_file_path: '.config/feature-lsp-branch-merge.json'

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,9 @@ tests/FSharp.Compiler.Service.Tests/FSharp.CompilerService.SurfaceArea.netstanda
129129
/tests/AheadOfTime/Trimming/output.txt
130130
*.svclog
131131
micro.exe
132-
positive.exe
132+
positive.exe
133+
/tests/FSharp.Compiler.ComponentTests/FSharpChecker/StandardError.txt
134+
/tests/FSharp.Compiler.ComponentTests/FSharpChecker/StandardOutput.txt
135+
136+
# ilverify baseline result files
137+
*.bsl.actual

DEVGUIDE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,33 @@ Linux/macOS:
204204
export TEST_UPDATE_BSL=1
205205
```
206206

207+
## Retain Test run built artifacts
208+
209+
When investigating tests issues it is sometimes useful to examine the artifacts built when running tests. Those built using the newer test framework are usually,
210+
built in the %TEMP%\FSharp.Test.Utilities subdirectory.
211+
212+
To tell the test framework to not cleanup these files use the: FSHARP_RETAIN_TESTBUILDS environment variable
213+
214+
Windows:
215+
216+
CMD:
217+
218+
```shell
219+
set FSHARP_RETAIN_TESTBUILDS=1
220+
```
221+
222+
PowerShell:
223+
224+
```shell
225+
$env:FSHARP_RETAIN_TESTBUILDS=1
226+
```
227+
228+
Linux/macOS:
229+
230+
```shell
231+
export FSHARP_RETAIN_TESTBUILDS=1
232+
```
233+
207234
Next, run a build script build (debug or release, desktop or coreclr, depending which baselines you need to update), and test as described [above](#Testing-from-the-command-line). For example:
208235

209236
`./Build.cmd -c Release -testCoreClr` to update Release CoreCLR baselines.
@@ -216,6 +243,16 @@ or
216243
> Please note, that by default, **Release** version of IL baseline tests will be running in CI, so when updating baseline (.bsl) files, make sure to add `-c Release` flag to the build command.
217244
218245

246+
### Parallel execution of tests
247+
248+
Tests utilizing xUnit framework by default run in parallel. If your tests depend on some shared state or are time-critical, you can add the module to predefined `NotThreadSafeResourceCollection` to prevent parallel execution.
249+
For example:
250+
```fsharp
251+
[<Collection(nameof NotThreadSafeResourceCollection)>]
252+
module TimeCritical =
253+
```
254+
255+
219256
### Updating FCS surface area baselines
220257

221258
```bash

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ variables:
2929
# Should be 'current' release branch name, i.e. 'release/dev17.10' in dotnet/fsharp/refs/heads/main, 'release/dev17.10' in dotnet/fsharp/refs/heads/release/dev17.10 and 'release/dev17.9' in dotnet/fsharp/refs/heads/release/dev17.9
3030
# Should **never** be 'main' in dotnet/fsharp/refs/heads/main, since it will start inserting to VS twice.
3131
- name: FSharpReleaseBranchName
32-
value: release/dev17.13
32+
value: release/dev17.14
3333
# VS Insertion branch name (NOT the same as F# branch)
3434
# Should be previous release branch or 'main' in 'main' and 'main' in release branch
3535
# (since for all *new* release branches we insert into VS main and for all *previous* releases we insert into corresponding VS release),
@@ -88,7 +88,7 @@ extends:
8888
# Signed build #
8989
#-------------------------------------------------------------------------------------------------------------------#
9090
# Localization: we only run it for specific release branches
91-
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/release/dev17.13') }}:
91+
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/release/dev17.14') }}:
9292
- template: /eng/common/templates-official/job/onelocbuild.yml@self
9393
parameters:
9494
MirrorRepo: fsharp

docs/release-notes/.FSharp.Compiler.Service/9.0.200.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Fixed
22

3+
* Fix Realsig+ generates nested closures with incorrect Generic ([Issue #17797](https://github.com/dotnet/fsharp/issues/17797), [PR #17877](https://github.com/dotnet/fsharp/pull/17877))
34
* Fix missing TailCall warning in Sequential in use scope ([PR #17927](https://github.com/dotnet/fsharp/pull/17927))
45
* Fix false negatives for passing null to "obj" arguments. Only "obj | null" can now subsume any type ([PR #17757](https://github.com/dotnet/fsharp/pull/17757))
56
* Fix internal error when calling 'AddSingleton' and other overloads only differing in generic arity ([PR #17804](https://github.com/dotnet/fsharp/pull/17804))
@@ -21,6 +22,8 @@
2122
* Completion: fix qualified completion in sequence expressions [PR #18111](https://github.com/dotnet/fsharp/pull/18111)
2223
* Symbols: try to use ValReprInfoForDisplay in Mfv.CurriedParameterGroups ([PR #18124](https://github.com/dotnet/fsharp/pull/18124))
2324
* Shim/file system: fix leaks of the shim [PR #18144](https://github.com/dotnet/fsharp/pull/18144)
25+
* fsi: fix auto-loading of script file inside NuGet package ([PR #18177](https://github.com/dotnet/fsharp/pull/18177))
26+
* Fix for `Obsolete` attribute warning/error not taken into account when used with a unit of measure [PR #18182](https://github.com/dotnet/fsharp/pull/18182)
2427

2528
### Added
2629

@@ -52,8 +55,8 @@
5255
* Better ranges for #nowarn error reporting; bring back #nowarn warnings for --langVersion:80; add warnings under feature flag ([PR #17871](https://github.com/dotnet/fsharp/pull/17871))
5356
* CheckAndThrow can be invoked only from within Cancellable context ([PR #18037](https://github.com/dotnet/fsharp/pull/18037))
5457
* Make ILTypeDef base type calculation lazy. ([PR #18005](https://github.com/dotnet/fsharp/pull/18005))
55-
* "#if" directive around nullness removed from src/Compiler/TypedTree/TypedTreePickle.fs and refactored. ([PR #18203](https://github.com/dotnet/fsharp/pull/18203))
58+
* Removed redundant hash directives around nullness syntax ([Issue #18601](https://github.com/dotnet/fsharp/issues/18061), [PR #18203](https://github.com/dotnet/fsharp/pull/18203), [PR #18207](https://github.com/dotnet/fsharp/pull/18207))
5659

5760
### Breaking Changes
5861

59-
* Aliasing `StructAttribute` will now produce a warning (part of [Language suggestion #1136](https://github.com/fsharp/fslang-suggestions/issues/1136), [PR #18098](https://github.com/dotnet/fsharp/pull/18098))
62+
* Aliasing `StructAttribute` will now produce a warning (part of [Language suggestion #1136](https://github.com/fsharp/fslang-suggestions/issues/1136), [PR #18098](https://github.com/dotnet/fsharp/pull/18098))

0 commit comments

Comments
 (0)