mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Running monodevelop from linux terminal (ubuntu 17.10) always opens a new instance. #4649

Open leawp opened 6 years ago

leawp commented 6 years ago

I'm trying to launch monodevelop from command line I'm issuing the following command /usr/lib/monodevelop/bin/MonoDevelop.exe /path_to_solution/solution.sln /path_to_solution/file.cs;-1

which should open the soultion and open file.cs well.. it does open it but everytime I issue the command it opens a new monodevelop instance.

monodevelop /path_to_solution/solution.sln /path_to_solution/file.cs;-1

does exactly the same thing

VS bug #605540

Therzok commented 6 years ago

If you specify a solution file, we always open in a new window.

https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs#L153

Related UX issues: https://github.com/mono/monodevelop/issues/3791

cc @slluis @mhutch

mhutch commented 6 years ago

Do you mean it's opening the file and the solution in different instances?

mkrueger commented 6 years ago

This is hard to fix - we need to decide for a model on the UI level. I feel that we always should have 1 solution per monodevelop process in that case the current behavior is correct.

But we need to decide soon.

leawp commented 6 years ago

Is there a way to disable this behaviour in monodevelop settings?

2018-04-26 11:00 GMT+02:00 Mike Krüger notifications@github.com:

This is hard to fix - we need to decide for a model on the UI level. I feel that we always should have 1 solution per monodevelop process in that case the current behavior is correct.

But we need to decide soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mono/monodevelop/issues/4649#issuecomment-384566969, or mute the thread https://github.com/notifications/unsubscribe-auth/AF_2wywHYuj6_KDzc9fF24db1bsFPngqks5tsYy8gaJpZM4Tea7Y .

leawp commented 6 years ago

@mhutch It opens the solution and the file in the same instance but after issuing the command for the second time it opens another instance with the same solution and file. I guess it should just like select it in the previous instance that has it already open.

@Therzok It worked just fine in version 5.9

h8672 commented 5 years ago

We got files to continue opening on the current solution. https://forum.unity.com/threads/monodevelop-not-opening-files.369269/#post-4222807

Problems discovered there:

We by passed the problem using additional shellscript: