ionide / Ionide-vim

F# Vim plugin based on FsAutoComplete and LSP protocol
MIT License
163 stars 20 forks source link

FSharpLint not working #52

Open quantum-booty opened 2 years ago

quantum-booty commented 2 years ago

I've installed FSharpLint by doing dotnet tool install -g dotnet-fsharplint, and tried one of their examples on the FSharpLint website:

type ExampleInterface =
   abstract member print : unit -> unit

[<EntryPoint>]
let main argv =
    let x = List.fold (fun x y -> x + y) 0 [1;2;3]
    printfn "%d" x
    0

Expected behaviour I expect that Nvim should give me virtual text diagnostic warnings that are like this: image however I am not seeing any warnings: image

Environment (please complete the following information):

cannorin commented 1 year ago

FSharpLint seems to be disabled in FSAC's side: https://github.com/fsharp/FsAutoComplete/blob/main/src/FsAutoComplete.Core/Commands.fs#L1277-L1302

baronfel commented 1 year ago

yeah, we have an open item to look at reenabling it - the core problem is one of FCS incompatibility. We either need to help that project stay up to date on FCS, have a stable FCS build, or find a way to invoke it in a way that lets that tool load its own FCS.