Ionide-vim icon indicating copy to clipboard operation
Ionide-vim copied to clipboard

FSharpLint not working

Open quantum-booty opened this issue 2 years ago • 2 comments

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):

  • OS: Archlinux
  • Vim / Neovim version: NVIM v0.7.0-dev+1241-g08d9d74fd
  • dotnet SDK version: 6.0.102
  • mono / .Net Framework version: 6.0.102

quantum-booty avatar Mar 12 '22 13:03 quantum-booty

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

cannorin avatar Sep 02 '22 13:09 cannorin

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.

baronfel avatar Sep 02 '22 13:09 baronfel