From b9d092795672a0f38f740c7787f1c583ca3d7192 Mon Sep 17 00:00:00 2001 From: Florian Verdonck Date: Fri, 6 Oct 2023 03:51:20 +0200 Subject: [PATCH] Update FCS to 43.8.100-preview.23455.5. (#1162) * Update FCS to 43.8.100-preview.23455.5. * Update error code in test. --- paket.dependencies | 2 +- paket.lock | 6 +++--- src/FsAutoComplete.Core/CodeGeneration.fs | 1 + test/FsAutoComplete.Tests.Lsp/ScriptTests.fs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paket.dependencies b/paket.dependencies index bf3ba1814..9f8daa2f7 100644 --- a/paket.dependencies +++ b/paket.dependencies @@ -13,7 +13,7 @@ lowest_matching: true nuget BenchmarkDotNet 0.13.5 nuget Fantomas.Client >= 0.9 -nuget FSharp.Compiler.Service >= 43.8.100-preview.23429.1 +nuget FSharp.Compiler.Service >= 43.8.100-preview.23455.5 nuget Ionide.ProjInfo >= 0.62.0 nuget Ionide.ProjInfo.FCS >= 0.62.0 nuget Ionide.ProjInfo.ProjectSystem >= 0.62.0 diff --git a/paket.lock b/paket.lock index f4db632d1..3179d62d5 100644 --- a/paket.lock +++ b/paket.lock @@ -480,8 +480,8 @@ NUGET FSharp.Core (>= 4.6.2) - restriction: || (== net6.0) (== net7.0) (&& (== netstandard2.0) (>= netcoreapp3.1)) (&& (== netstandard2.1) (>= netcoreapp3.1)) System.Collections.Immutable (>= 6.0) - restriction: || (== net6.0) (== net7.0) (&& (== netstandard2.0) (>= netcoreapp3.1)) (&& (== netstandard2.1) (>= netcoreapp3.1)) remote: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json - FSharp.Compiler.Service (43.8.100-preview.23429.1) - FSharp.Core (8.0.100-beta.23429.1) + FSharp.Compiler.Service (43.8.100-preview.23455.5) + FSharp.Core (8.0.100-beta.23455.5) System.Buffers (>= 4.5.1) System.Collections.Immutable (>= 7.0) System.Diagnostics.DiagnosticSource (>= 7.0.2) @@ -489,7 +489,7 @@ NUGET System.Reflection.Emit (>= 4.7) System.Reflection.Metadata (>= 7.0) System.Runtime.CompilerServices.Unsafe (>= 6.0) - FSharp.Core (8.0.100-beta.23429.1) + FSharp.Core (8.0.100-beta.23455.5) GROUP Build STORAGE: NONE diff --git a/src/FsAutoComplete.Core/CodeGeneration.fs b/src/FsAutoComplete.Core/CodeGeneration.fs index b21ddb5ae..f27611d56 100644 --- a/src/FsAutoComplete.Core/CodeGeneration.fs +++ b/src/FsAutoComplete.Core/CodeGeneration.fs @@ -856,6 +856,7 @@ module CodeGenerationUtils = | SynRationalConst.Rational(numerator = numerator; denominator = denominator) -> sprintf "(%i/%i)" numerator denominator | SynRationalConst.Negate(rationalConst = RationalConst s) -> sprintf "- %s" s + | SynRationalConst.Paren(rationalConst = inner) -> (|RationalConst|) inner let rec (|TypeIdent|_|) = function diff --git a/test/FsAutoComplete.Tests.Lsp/ScriptTests.fs b/test/FsAutoComplete.Tests.Lsp/ScriptTests.fs index 4acf66afc..a0e6ca624 100644 --- a/test/FsAutoComplete.Tests.Lsp/ScriptTests.fs +++ b/test/FsAutoComplete.Tests.Lsp/ScriptTests.fs @@ -145,7 +145,7 @@ let dependencyManagerTests state = | Ok _ -> failwith "Expected to fail typechecking a script with a dependency manager that's missing" | Core.Result.Error e -> match e with - | [| { Code = Some "3216" }; _ |] -> () // this is the error code that signals a missing dependency manager, so this is a 'success' + | [| { Code = Some "998" }; _ |] -> () // this is the error code that signals a missing dependency manager, so this is a 'success' | e -> failwithf "Unexpected error during typechecking: %A" e }) ] ]