Rider no longer adds/resolves asmdef references for UnityAtoms
Hi,
I'm suddenly blocked by a dependency resolution issue that appeared today (I had no problems working with assembly definitions yesterday).
Setup
- Unity project split into multiple assemblies via Assembly Definitions (Core.asmdef, Systems.asmdef, UI.asmdef, Data.asmdef, etc.).
- UnityAtoms packages added via Package Manager (from Github).
- Types I'm trying to use: AtomEvent, AtomValueList, etc. (from UnityAtoms.UnityAtomsCore.Runtime and related assemblies).
What happens
- I type a UnityAtoms type → Rider offers the usual Alt+Enter → Reference and import. that resolves the dependency (text is no longer red). It seems working, until…
- I switch focus to the Unity Editor window, and at that point…
- Back in Rider the symbols become unresolved again.
The Alt+Enter action that used to automatically add the reference to my .asmdef no longer does so (e.g. I except to see a dependency between Data and UnityAtoms.UnityAtomsCore.Runtime, but the Data.asmdef shows none of that).
Even if I manually add the reference in Unity’s Assembly Definition Inspector, Rider still cannot resolve the types reliably.
It feels like Rider has lost the ability to write/update assembly definitions or assembly definition references.
Temporary workaround
Editing the .asmdef file directly inside Rider (adding the reference by GUID) sometimes makes the symbols resolve again, but only temporarily. What triggers the problem again is a mistery.
My problem sounds similar to: RIDER-94834. I find the conversation confusing to be honest. I don't understand if a proper step-by-step solution or workaround exists.
What I’ve already tried
- Invalidate Caches / Restart
- Regenerating project files from Unity
- Closing Unity completely, deleting .csproj / .sln files, reopening
- Usual cache / Library folder clean-ups
- Updating both Rider and JetBrains Rider Editor in Unity
- Enabling “Git packages” and “Build-in packages” in the Unity “External Tools” preference menu
Questions
- Is this a known regression with Rider + Github + asmdefs (especially after the recent Rider update)?
- Is the “Reference and import” action still supposed to work for packages coming from the Package Manager / registry?
- Any recommended way to force Rider to correctly pick up and persist asmdef references for external packages like UnityAtoms?
Thanks in advance. I wasted an entire day of work trying to solve this issue and I'm very frustrated. I hope I can get help soon because this is currently blocking my workflow.
P.S.: Maybe it's only me, but
Please sign in to leave a comment.
Thanks for the report. This should be the known issue tracked under RIDER-94834 "Reference project and import" for registry package fails. Currently the "Reference project and import" refactoring doesn't support referencing registry packages. Please upvote and subscribe to stay updated.
Hey Tom Luo , thanks for the answer!
Do you happen to have a rough estimate on when a fix might land?
Curiously, if I manually edit the
.asmdeffile in Rider, the dependencies resolve perfectly. That makes it seem like the core resolution engine works fine, but the "Reference project and import" quick-action just isn't committing the change.Since this issue has been around for a few years already, I'm really curious if there's a specific architectural roadblock that makes it tricky to solve under the hood? Any context would be much appreciated by the community!
Mario Mignemi Sorry we don't have plan to implement this in the near future. The best way to stay informed is to follow the issue. Please rest assured that once the fix is scheduled, we will update the issue (“planned for” field). We truly appreciate your patience and understanding.