Skip to content

Visual Studio hangs/crashes when hovering over a nonexistent union case pattern #11667

@Happypig375

Description

@Happypig375

Visual Studio hangs/crashes when hovering over a nonexistent union case pattern.

Repro steps

  1. Clone this repo's main (currently 4ce381b)
  2. Run build.cmd
  3. Open FSharp.Compiler.Service.sln
  4. Under project FSharp.Compiler.Service, ParserAndUntypedAST\SyntaxTree.fsi, line 1138, change Named to Name
  5. In ParserAndUntypedAST\SyntaxTree.fs, line 979, change Named to Name
  6. In ParserAndUntypedAST\FsYaccOutput\pars.fs, line 5747, hover over Named
  7. If Visual Studio doesn't hang, wait until type information fully loads
  8. Visual Studio hangs (16.10.1) or crashes after a while (16.11p1)

Expected behavior

Visual Studio does not hang or crash.

Actual behavior

Visual Studio hangs (16.10.1) or crashes after a while (16.11p1).

Known workarounds

Nope.

Related information

Provide any related information (optional):

  • Operating system: Windows 10
  • .NET Runtime kind (.NET Core, .NET Framework, Mono): N/A
  • Editing Tools (e.g. Visual Studio Version, Visual Studio): Visual Studio 16.10.1 / 16.11 preview 1

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions