coc-extensions / coc-fsharp

coc.nvim integration for fsharp-language-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opening non core namespaces causing false errors

PhilT opened this issue · comments

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.

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.