dotnet / dotnet/roslyn

BuildHost does not update properly in incremental builds

Open
#78,153 3 comments 0 reactions 1 assignee Claimed by @jasonmalinowski View on GitHub
Area-IDE IDE-Project
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

Repro steps:

1. Make a change in [BuildHost](https://github.com/dotnet/roslyn/tree/main/src/Workspaces/MSBuild/BuildHost). Set a breakpoint around where you made the edit.
2. Right-click build [LanguageServer](https://github.com/dotnet/roslyn/tree/main/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer) in VS
3. Open a vscode project which is setup with the following settings for local debugging:
```json
"dotnet.server.waitForDebugger": true,
"dotnet.server.path": "path/to/roslyn/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net9.0/Microsoft.CodeAnalysis.LanguageServer.dll",
```
4. Attach VS when prompted. Once the project is fully loaded in vscode, attach to the dotnet process running BuildHost. e.g. the selected process in below screenshot
![Image](https://github.com/user-attachments/assets/63c1ea77-8769-4ba3-a6ec-57fb38aa08b8)

Expected behavior:

- Can set and hit the breakpoint from step 1.

Actual behavior:

![Image](https://github.com/user-attachments/assets/92007e66-90de-4b29-bb5f-6bc320f15865)

This could indicate that the target which copies BuildHost into the LanguageServer directory is not working properly with incremental builds.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.