Repository navigation
Commit 2fdcc9e
authored
The Terminal's compiler service is checked rather than warned about (#1132)
NU1608 has said on every Terminal publish since 2.3.0 that FSharp.Compiler.Service 43.9.300 wants
FSharp.Core 9.0.300 and got 10.1, sixteen times per run, and nobody had checked which of the two
readings was right. #1100 asked for an hour of running the Terminal against something non-trivial.
**It is benign.** A kernel built on the shipped pair compiles generic functions and inference,
records, discriminated unions, classes with members, units of measure, async, sequence expressions,
list comprehensions, active patterns, tuple destructuring, recursion, `sprintf`, string
interpolation, `inline` generic constraints and an object expression over an interface: sixteen of
sixteen. It also still refuses a type error and a syntax error, each with the position the Terminal
shows to whoever typed it -- a compiler that accepted everything would pass the first sixteen and be
useless.
So the warning is suppressed, and the claim it was making is carried by `CompilerServiceWorksTest`
instead. That is the point of the change rather than a side effect: a warning nobody reads is not a
check, and this one had been passing through CI unread for two releases. If FSharp.Core or
FSharp.Compiler.Service moves and the pair really does come apart, a test fails where before a
sixteen-line warning would have scrolled past again.
The constraint cannot be met, which is why suppressing is the option rather than pinning: the 10.1
is the FSharp.Core the F# SDK references implicitly for every F# project, and satisfying
FSharp.Compiler.Service would mean pinning two majors back, against the SDK, across the graph.
Measured: 16 NU1608 on `dotnet pack` before, 0 after, and 0 NuGet warnings of any kind on the
publish path.
The tests use a bare kernel deliberately. The Terminal opens `AggressiveOperators` over the top,
which rebinds the comparison operators to build expressions, and that is the tool's whole point --
but it means `if a < b then` does not typecheck in the Terminal, which is a separate question and is
filed as one rather than smuggled in here.
Part of #1100.1 parent 5e54202 commit 2fdcc9e
4 files changed
Lines changed: 112 additions & 0 deletions
File tree
- Sources
- Terminal
- AngouriMath.Terminal.Lib
- AngouriMath.Terminal
- Tests/TerminalUnitTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
25 | 45 | | |
26 | 46 | | |
27 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments