Search Unity

As stated on our public roadmap, we are shipping MonoDevelop-Unity 5.9 with Unity 5.3 in December. MonoDevelop-Unity 5.9 is at the time of writing the latest stable version of MonoDevelop and includes many improvements and fixes over MonoDevelop 4.0.1.

md-5.9-debug

We have added a new workflow improvement to MonoDevelop-Unity 5.9. The target selection list is now populated with Unity targets, highlighted with an orange outline in the screenshot. MonoDevelop-Unity will now attach to the selected target with a single click on the “Run” button so you can avoid multiple clicks in the “Attach to Process” dialog when starting a debug session.

You can try MonoDevelop-Unity 5.9 today by downloading the MonoDevelop-Unity 5.9 preview builds from the forum. Feedback on the forum is more than welcome! MonoDevelop-Unity 5.9 is a drop-in replacement for MonoDevelop 4.0.1 and can be with used with Unity 4.6 and Unity 5, see minimum requirements in the forum thread.

Script Debugging Fixes

Besides upgrading MonoDevelop-Unity we have also been working on fixing script debugging defects in Unity that affect both MonoDevelop-Unity and Visual Studio Tools for Unity.

Notable script debugging defects fixed in Unity 5.3 and Unity 5.2.2:

  • Fixed issue with stepping in switch statements.
  • Fixed occasional Unity crash when stepping many times in a row and then hitting a breakpoint.
  • Fixed Unity crash when trying to step after pause.
  • Fixed stepping over Resources.Load and other Unity API methods that use serialization.
  • Fixed Unity crash when trying to evaluate generic methods that return an array of the generic type. Such as GameObject.GetComponents<Component>().

We’ve also fixed script debugging defects that are specific to MonoDevelop-Unity 5.9.

Notable debugging defects fixed that are specific to MonoDevelop-Unity 5.9

  • Fixed “The requested item has been unloaded” when enabling/disabling breakpoints.
  • Fixed “The requested item has been unloaded” when evaluating enums.   
  • Fixed “Debugger operation failed. Argument cannot be null” error.

Download MonoDevelop-Unity 5.9 preview builds from the forum.

MonoDevelop and Unity REST Integration

Today the integration between MonoDevelop-Unity and Unity happens through the solution (.sln) and project (.csproj) files.

This setup is less than ideal since Unity needs to update the solution and project files each time you add, remove, move or rename script files in your project. Once the updated solution and project files have been written to disk, MonoDevelop then needs reload them. A better approach would be to have Unity communicate directly with MonoDevelop on each change to the file structure of your Assets folder and have MonoDevelop update accordingly.

Another issue with using solution files is that we are not using the same C# compiler when compiling your scripts in Unity and in MonoDevelop. This can lead to different compile errors and warnings in MonoDevelop compared to Unity, and in some cases scripts will compile in Unity but not in MonoDevelop and vice versa.

To address these issues and allow for a tighter integration between Unity and MonoDevelop, we are working on a new feature that makes MonoDevelop and Unity talk to each other using REST. What this means in practice is that MonoDevelop and Unity communicate directly with each other using a network socket and generation of solution and project files is no longer necessary.

Instead, MonoDevelop will display a hierarchy view of your Assets folder sent from Unity as a REST message. The Assets folder view in MonoDevelop will be updated on each change to your Unity Assets folder file structure. It will also be possible to add, remove, move and rename files in the MonoDevelop Assets view and the actions will be sent via to Unity to be performed. Once the file action have been performed in Unity, Unity will notify MonoDevelop of the changes to the Assets folder file structure and the Assets folder view in MonoDevelop will be be updated accordingly.

The screenshot below shows how the Unity Assets Folder view in MonoDevelop looks currently and is likely to change before release.

md-rest-5.9-preview-new2

MonoDevelop will also use the REST service to compile your scripts in Unity and then Unity will send the build results back to MonoDevelop. The build results in the screenshot above were delivered to MonoDevelop from Unity.

The REST service is not limited to file operations and compiling your scripts. It can be used for any feature that is exposed as a REST endpoint in Unity.

Here are some of the features we have planned for the MonoDevelop and Unity REST Integration:

  • File-less project/solution synchronization between MonoDevelop and Unity.
  • Instant synchronization of file add/remove/rename/move operations in the assets folder, both ways.
  • Consistent build behavior. Always build your scripts in Unity and show build results in MonoDevelop.
  • Entering play mode and/or attaching the debugger when hitting the play button in MonoDevelop.

We are currently working towards releasing the Unity and MonoDevelop REST integration in Unity 5.5. Keep an eye on this blog as we will be sharing more details in the coming months.

78 replies on “MonoDevelop Roadmap”

[…] debugging issues to bring you a greatly improved experience when using MonoDevelop. Check out our blog post on the subject to learn […]

[…] اصبح الان تتبع الاخطاء البرمجية وعمل التحليلات اسهل بكثير ويتطلب خطوات اقل فقط مع زر التحليل للاخطاء مزيد من التفاصيل من مدونة يونيتي  […]

Just updated to Unity 5.3 and love it! My only issue right now is that MonoDevelop 5.9 is now no longer refactoring or using autocomplete. It drives me crazy! I’ve tried clearing out all the .sln files and all that from the project root folder but to no avail… super frustrating! Is anyone else experiencing this? If I set my IDE to a previous version of MonoDevelop (I think its 4.1) it works normally. What do I do!?

I just recently updated to Unity 5.3 which came with the update to Monodevelop (5.9). I now cannot do any debugging in UnityScript. My entire game was written in UnityScript. How can I fix this issue? I’ve tried installing and uninstalling a few times now to no avail.

I posted the comment twice by mistake, delete this one an apologies! Not trying to spam the thread, I have no relation with Consulo developer

I was using this in the last few weeks: https://github.com/consulo/consulo
Is a fork of IntelliJ with support for Unity including debugging and, TBH, was like find water on the desert!

The project is maintained by a single guy and I’m sure that with a bit of love from Unity will be able to go much farder.

I use IDEA at work and at home, it is very productive. JetBrains won’t deal with C#, because they sell ReSharper. I tried Consulo for Unity project, it’s really good. Also, it is a known fact that Googles’ Android Studio is based on IntelliJ IDEA.

Thanks for continuing to support/improve Monodevelop. I’m reading a disproportionate number of complaints about Monodevelop.

I’ve used to for several years now on a part-time basis and it’s been great. Autocomplete, refactoring and debugging all work as advertised. It does some funky magical renaming of scripts when you refactor the name of monobehavior classes. But once you get used to it, it’s pretty nice actually.

I tried VS with Unity. I’ve used VS a lot over the years for C++ and C# development but with Unity I found it was perhaps, overkill. Monodevelop gets out of my way and let me just code. So thanks for supporting it.

I just hope that someday you completely remove it. I’ve never had a good experience with monodevelop my whole career with unity. On every version bundled with unity its always been completely broken.

Obscure Error messages all the time. My scripts will randomly just not save and I don’t realize it until 20min of debugging when I decide to check out the file in another editor. It’s always been painful and unusable.

Right now I’m using Atom and without the integration my experience has been so much better.

Are there any disadvantages of using Xamarin Studio with Unity? I’ve been using that for some time now, and it seems to work fine together with auto-completion and so on, but at the same time I’m just scratching on the surface when it comes to scripting in Unity so there could be something missing I guess.

Just this …

“Fixed “The requested item has been unloaded” when evaluating enums.”

… makes the upgrade worth for me.

This is a very substantial announcement if properly implemented. If you guys really build out everything using RESTful web services, this opens the door for pretty much ANY tool to be integrated with Unity without having to worry about the integration of a UnitySDK or anything similar. I like where you guys are heading with this one because one could start building their own homegrown tools for Unity in a consistent manner.

Hopefully you guys will provide strong documentation for this (or at least stronger than what we got for uNet ;) ).

One more thing — would it be possible to be able to look at the Unity editor, including seeing the scene/game view, while stopped at a breakpoint in the MonoDevelop debugger? I don’t know how feasible this is, but that would be very useful! Even a non-interactive snap-shot of the game window before the break would quite useful.

I use Mono Development for debugging and this sounds like a nice set of improvements.

Please can you keep the sln/csproj as an option so that us vim users can continue to happily use omnisharp-vim for smart code completions? And of course publish the REST API so the vim community can eventually plug into that way of doing thing also.

Any improvements to MonoDevelop are highly welcomed by our studio, are you currently investigating the possibility of adding conditional breakpoints or variable/data change interrupt breakpoints?

I honestly have no problem using monoDevelope but improvements are welcomed. I love the idea of writing my scripts outside the editor which gives me a whole lot of room for the game design which just feels awesome and natural. Thanks Unity ;)

I wish I could say I’m happy about this announcement, but I’m honestly not. I’m so not sure having such an intimate relationship with third-party editors like Mono-Develop and now Visual Studio on windows, is a good idea. My Reasons:

1.) Bloat: The current version of Mono Develop that ships with Unity is 333.5 MB (OSX version). Correct me if I’m wrong but I’m pretty certain most devs don’t use a much of the extra features that mono develop ships with.

2.) It’s not UnityLike: Unity prides itself in it’s Elegant UI. Mono develop in recent times has tried to be that but is still not quite there yet. It still does feel like a completely different app. The User Experience is not necessarily bad. It’s just very different from what we’re used to in Unity.

3.) Fragmentation: Unity now ships with Visual Studio on windows. It now has to focus on getting integration right on that front as well in addition to mono develop. Sounds like a wasteful use of dev resources.

4.) Integrated IDEs: Devs are buying ‘Script Inspector 3’ for an extra $55. If that does not tell you Mono develop isn’t well suited for the job, I’m not sure what does. in fact I suggest Unity acquire it and use that as the default. Double clicking a Unity script for another application to open just feels unnatural.

5.) Ownership: Unity should work more towards the ownership of the tools that come out of their box. By all means allow third-parties to integrate but leave them as third-parties. Owning most of the technology inspires confidence amongst your users. Because we know if there is a lingering bug we do not have to wait for some third-party to fix it.

6.) Debugging: The way script debugging in unity works right now is a pain. The scene being debugged is in one application (Or device) and the script is in another. Let’s not forget the profiler by the way, which sits in a different window from the script. Think of the pain devs go through when switching windows trying to find script bottlenecks. Basically if you don’t have 2 monitors, you’re screwed.

7.) Everything else is inside the editor: We call Unity an integrated dev. environment. This is almost true. Even the somewhat controversial service-oriented features are now build into the editor. Why is the one part of the tool where Devs spend quite a bit of time sitting outside the editor?

I could go on and on, but I kinda feel like this is a debate you guys are having in-house so I’ll just leave it to your better judgement.

Regards,
K

If Select All (Command-A) works instead of executing misc. random commands, I will weep salty tears of joy! :)

(Sometimes I want to analyze or Find-and-Replace my code in another app, or copy an old script into a new empty one. Select All—Copy would be awesome!)

Do you mean the interface language in Chinese?
Or the programming language in Chinese, which is not possible…?

Would be just brilliant if monodev would run properly without the user beeing an admin on the klient aswell. It’s been a bummer for years in school environments…

This sounds very useful. Smart move using REST it would be awesome to be able to write editor extensions that could communicate with external apps, Adobe-CEP like extensions bring to mind all kinds of integration ideas.

Awesome, updated MonoDevelop! Thanks also for fixing Visual Studio integration in 5.2.2 !
Can’t wait for 5.3 to try Multi-scene Editing, IAP, SSRR and Host Migration! . . .

Thanks for the news! Excited to see how this update will pan out.

I have been using Script Inspector 3 for about 2 months now, and feel that its a better script editor than Mono give or take a few issues with UnityScript. Are there any plans of Unity moving in a similar direction?

Does this mean still custom MonoDevelop builds and not a plugin? If so, please work on the plugin direction for the future

Please also support adding/removing compilation Defines. Every time I edit the Compilation Defines in Unity PlayerSettings my Projects get rebuilt.

Please help the UnityVS Guys (Microsoft, right? :) ) to integrate this into their Visual Studio Extension.

Thank you for listening to the Feedback and improving the coding experience! :D

Thanks for the update :)

I’m using the new MonoDevelop for quite some time now (starting with alpha and now with the beta). It’s a lot better than what we used to have ! (BTW i am on OSX so i can’t use Visual Studio).

Out of curiosity – what did you choose REST as the communication layer, as opposed to, say, named pipes (e.g: cross process communication on the same box) ?

Will it be possible to send custom data via REST? Like messaging between MonoDevelop plugin and Editor script?

Comments are closed.