dotnet / dotnet/roslyn

`with` expressions don't seem to work in OOP

Open
#85,558 0 comments 0 reactions 0 assignees View on GitHub
Area-Razor
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

Tracks TODO in code: https://github.com/davidwengier/razor/blob/CohostGoToImplementation/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RazorDocumentServiceBase.cs#L44

The TODO tracks a line of code that used to be this:
https://github.com/dotnet/razor/blob/main/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs#L72

This fails with an exception about not being able to find `set_LanguageKind`.

Contributor guide

Open the contributing guide

Research direction

Start with the TODO at src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RazorDocumentServiceBase.cs#L44 and compare it with the former implementation in src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs#L72. Reproduce the failure and trace the exception about the missing set_LanguageKind. Done means the with-expression path no longer fails with that exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.