Unity Extension Does Not Support Anysphere C# Language Server

I was developing Unity projects using the C#, C# Dev Kit, and Unity extensions.
After C# and C# Dev Kit switched to Anysphere C#, the Unity extension no longer works with the new language server.
Please add support for Anysphere C# in the Unity extension.

3 Likes

I’m pinging @ravirahman so he can sort this out.

Hi, unfortunately the official unity extension is closed-source so it is not supported in Cursor. I would try using unity-tools.

Thank you for the quick response.

Does this mean that it is currently impossible to debug Unity projects in Cursor?
As far as I know, unity-tools depends on Debugger For Unity, which itself relies on the old C# extension.
Since the old C# extension is no longer available, unity-tools cannot provide debugging either.

If that’s the case, do you have any plans or intentions to support Unity debugging in Cursor in the future?
I believe many Unity developers would benefit from this feature.

1 Like

We’ll need to look into this further, to see what would be required to support Unity. Unfortunately, I do not have an estimate yet for when we will have a unity extension available.

Thank you for your response.

As a Unity developer, it is unfortunate that the Official Unity Extension cannot be used.
For now, I have been able to debug Unity at runtime by using an extension called dotrush.
For other users facing the same issue, I would like to share this Reddit link:

1 Like

Using the Anysphere C# and DotRush extensions together is impressive. This new combination is much lighter and more stable than using Microsoft’s C# and Unity extensions together, and it offers additional advantages.

In the Watch panel, you can view the values of outer stack variables when a breakpoint is hit.

Thank you for introducing me to DotRush! I highly recommend it, too.

1 Like


I tried using Anysphere C# and DotRush together but got conflict notification from DotRush. Wonder if it’s necessary to remove Anysphere C# or can leave it there?

we need Unity Debugger in Cursor.

this was recently working and suddenly stopped working for me today. Huge hit to productivity

1 Like

Hi all – thank you for sharing these issues.

I tried using Anysphere C# and DotRush together but got conflict notification from DotRush. Wonder if it’s necessary to remove Anysphere C# or can leave it there?

@centhoang – does it work if you uninstall the Anysphere C#? As you noted, that notification comes from DotRush, so we do not control it.

we need Unity Debugger in Cursor.

@supercc168 – Are you referring to the “Debugger for Unity” extension? That should be available within Cursor. Are you running into an error when using it?

this was recently working and suddenly stopped working for me today. Huge hit to productivity

@vqt123 – What error are you running into (are you trying to use Anysphere C# and DotRush simultaneously?) It would be very helpful to understand what functionality each extension is missing, so we can make them work better together.

Thanks!

sorry, I was asking @coldlogic only :sweat_smile:

I installed the DotRush first, and then the Anysphere C# extension, and everything worked fine. Before you install those extensions, make sure to uninstall the Microsoft C# extension.


@coldlogic I tried re-install them in your order, but after I re-open the workspace it got the noti again. These 3 extensions are the only C#-related on my side right now


i have install new unity debugger but need the unit plugin installed. it show not runnint with Anysphere c#

If the extension is not failing to install but is instead displaying an error notification, you can probably ignore it. Hopefully, it will be fixed soon.

1 Like

I have replaced this error with warring ([Fix] The C# extension is already installed #53 · JaneySprings/DotRush@be9c63f · GitHub).
… it’s still a strange scenario for me though.

This has been released and should already work somehow~.
And by the way, it only checks “ms-dotnettools.csharp”. There shouldn’t be any problems with other IDs.

As for Unity Debugger: It uses my own fork of the Mono debugger, which I created to work with MAUI (GitHub - JaneySprings/Mono.Debugger: Fork of the Mono debugger libs for .NET Meteor and DotRush). It should work pretty well with Unity. But Android/iOS debugging probably won’t work right now, but it won’t be difficult to add it, since I already have a bunch of tools for this from my old MAUI extension.

1 Like