coc-extensions / coc-fsharp

coc.nvim integration for fsharp-language-server
Other
32 stars 3 forks source link

Opening non core namespaces causing false errors #11

Closed PhilT closed 4 years ago

PhilT commented 5 years ago
open FSharp.Data
open FSharp.Data.__Sql__ // typecheck: namespace Sql not defined
open System.IO
open FSharp.Literate // typecheck: namespace Literate not defined

These packages have been added to the project (both using global ~/.nuget/packages directory and local packages/ directory but appear not to be getting picked up. I'm pretty new FSharp so could be something I'm (not) doing.

I'm using .NET Core 3 SDK. The same project loads fine in VS Code + ionide.

PhilT commented 4 years ago

I think this was due to Literate's loading requirements but by #Including the correct paths and #requiring all the DLLs I was able to fix the issue.