Skip to content

Sticky IntelliSense errors when opening uncompiled solution using NuGet library #3510

@BentTranberg

Description

@BentTranberg

When an existing F# .NET Framework solution using NuGet libraries is opened and compiled in VS 2017, and there are no bin, obj and packages folders, then there will be IntelliSense errors that won't go away until you restart VS.

Repro steps

Fast repro steps, using attached project in zip file

  1. Unzip the attached repro. (Remember to unblock the zip file first.)

  2. Open the solution, and wait a few seconds. You should see errors in the Error List pane. If not, try to compile.

The solution has no errors, and compiles successfully. The reported errors are from IntelliSense.

bugshot

Solution files here:
BugHunt3b.zip

====

Alternative repro steps, doing everything from scratch.

  1. Create a solution and a new F# console project.

  2. Include a NuGet project. I have tested with FsXaml and with Gjallarhorn, in two separate repros. This I believe indicates that it is not related to type providers, since as far as I know Gjallarhorn does not contain a type provider.

  3. Insert "open FsXaml" or "open Gjallarhorn".
    3b. Suggest you also use something from the library, so you can get more errors. See screenshot.

  4. Compile. This does not provoke illegitimate errors.

  5. Close Visual Studio.

  6. Delete the bin and obj and packages folders.

  7. Reopen Visual Studio and solution.

You should see errors after a few seconds. If not, try to compile.

Known workarounds

The sticky errors will go away if VS is restarted.

Related information

Visual Studio 2017, 15.3.2.
Visual F# Tools, Nightly 15.4.1.17082301.
Project created with .NET Framework 4.5.2 or 4.6.1.

Reproduced on two machines.

Severity: Not critical. Easy workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions