Skip to content

Renaming C# symbols reports errors #41

Description

@craxal

After running Visual Studio 2015 for a while, renaming stops working, reporting an error: "Object reference not set to an instance of object." Repro is difficult, because when first launching VS, rename works just fine. Dumps aren't retrievable, because VS doesn't crash when this issue happens.

Things to try

  1. Create an ASP.NET MVC project with a Cloud Service project.
  2. Build and run the project at least once. Terminate project execution.
  3. Press F2 over an existing symbol defined in the project.
  4. Add one or two new classes (controllers or views may work, too).
  5. Press F2 over the new class name.

Expected

  • The rename box appears, the symbol name is highlighted, and the user can rename the symbol.

Actual

  • Error dialog appears with the message: "Object reference not set to an instance of object."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions