JetBrains / JetBrains/resharper-unity

Error: "One of the handlers for the BeforeAcquiringWriteLock has thrown an exception" with JetBrains.Unity Plugin Enabled

Open
#2,469 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

**Description:**

When the JetBrains.Unity plugin is enabled, Rider throws the following error:

One of the handlers for the BeforeAcquiringWriteLock has thrown an exception
This issue prevents proper functionality unless Inspect Code version 2023.1.2 is used.

**Steps to Reproduce:**
Enable the JetBrains.Unity plugin in Rider.
Run Inspect Code in a Unity project using a version other than 2023.1.2.
Observe that Rider throws an exception related to BeforeAcquiringWriteLock.
Expected Behavior:
Rider should work correctly with the Unity plugin enabled, regardless of the Inspect Code version.

**Actual Behavior:**
The error occurs when using Inspect Code versions other than 2023.1.2.
Downgrading to 2023.1.2 is the only workaround.

**Here is link to YouTrack**: https://youtrack.jetbrains.com/issue/RSRP-492089

Contributor guide

Open the contributing guide

Research direction

Start with the linked YouTrack issue RSRP-492089 and reproduce the failure with the JetBrains.Unity plugin enabled in Rider, comparing Inspect Code versions with 2023.1.2. Trace the BeforeAcquiringWriteLock exception in the plugin integration and confirm that Rider works without the error across the affected Inspect Code versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
devtools, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.