coc-extensions/coc-fsharp

Opening non core namespaces causing false errors

PhilT opened this issue · 1 comments

PhilT commented
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

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.