Nimblesite / Nimblesite/SharpLsp

Decompiled-source temp files are shared across sidecar processes and written without sharing — Windows write race

Open
#173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cluster:multi-host-isolation
Dominant language
TypeScript
Stars
132
Forks
5
Avg merge
6h 24m
Merged PRs (30d)
27

Description

From the multi-agent audit (sidecars/SharpLsp.Sidecar.CSharp/Workspace/MetadataNavigator.cs ~173): decompiled [metadata] sources are materialized under a temp path shared by ALL sidecar processes and written with exclusive access. Two editor windows decompiling the same type race: the second write throws IOException (file in use) or one process reads a half-written file. Key the path by process (or write-to-temp + atomic rename, tolerating Exists).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in sidecars/SharpLsp.Sidecar.CSharp/Workspace/MetadataNavigator.cs around line 173 and trace how decompiled [metadata] sources are materialized and opened. Reproduce two sidecar processes decompiling the same type, then verify that concurrent writes no longer raise IOException and readers cannot observe a half-written file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.