Skip to content

VisualStudio (17.4. Preview 5) fails on language features for projects referencing Fsharp.Compiler.Services #14179

@T-Gro

Description

@T-Gro

When opening the VisualFsharp.sln, build works just fine.
Language services within the Fsharp.Compiler.Services work just fine as well.

However, when going into a project that directly or indirectly depends on Fsharp.Compiler.Service, language features stopped to work, demonstrated by a Object reference exception coming out of it.

When debugging the issue, the first failure happens on a pattern match of an Entity that that is unlinked (a pattern match, even though it has a | _ -> , tries to access .get_Tag and crashes on that).
Note that even when I tried to defensively cover the cases on Entity properties, the error just happens a little later or something else. The issue is more likely in the existance of such unlinked entity itself.

Test case:

  • Open VisualFsharp.sln\
  • Go to any test file in component tests project, e.g. "EmptyArray.fs"
  • Any references to Test.Utilities are failing
  • Within the Test.Utilities project, the first error (coloring stops) is at FileSystemShim usage - but that just happens to be the first usage of any type in Test.Utilities.

image

Metadata

Metadata

Assignees

Labels

Area-Compiler-ServiceVarious compiler service issues which do not belong to other labels/areas.Bugrelease/17.5

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions