Bug 45770 - F# Console project: "Start Debugging" and "Start Without Debugging" don't work
Summary: F# Console project: "Start Debugging" and "Start Without Debugging" don't work
Status: RESOLVED DUPLICATE of bug 44182
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: F# Add-in ()
Version: 6.1.1 (C8SR0)
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Jason Imison
Depends on:
Reported: 2016-10-20 23:38 UTC by oggdroid
Modified: 2016-10-21 12:07 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description oggdroid 2016-10-20 23:38:57 UTC

I'm using the latest MonoDevelop installed with flatpak according to instruction on MonoDevlop site on Lubuntu 16.04.

Way to reproduce:
- create a console F# project (in my case "md6_empty" in directory "/home/oleg/src";
- build it;
- click "Run > Start Without Debugging" -> nothing will happen
- click F5 ("Run > Start Debugging") -> an error `Cannot execute "/home/oleg/src/md6_empty/bin/Debug/md6_empty.exe"` shows up.

The binary does exists and can be executed in terminal as `mono md6_empty.exe`.

I have started monodevelop as `flatpak run com.xamarin.MonoDevelop --no-redirect` and i can see following error in the terminal:

ERROR [2016-10-21 01:15:48Z]: Cannot execute "/home/oleg/src/md6_empty/md6_empty/bin/Debug/md6_empty.exe"
System.InvalidOperationException: Cannot start process because a file name has not been provided.
  at System.Diagnostics.Process.Start () [0x00027] in <59be416de143456b88b9988284f43350>:0 
  at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00006] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
  at MonoDevelop.Platform.GnomePlatform.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, System.Collections.Generic.IDictionary`2[TKey,TValue] environmentVariables, System.String title, System.Boolean pauseWhenFinished) [0x00094] in <70e2f94c529341239e4406e1a8356442>:0 
  at MonoDevelop.Core.Execution.ProcessService.StartConsoleProcess (System.String command, System.String arguments, System.String workingDirectory, MonoDevelop.Core.Execution.OperationConsole console, System.Collections.Generic.IDictionary`2[TKey,TValue] environmentVariables, System.EventHandler exited) [0x00112] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at MonoDevelop.Core.Execution.NativePlatformExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, MonoDevelop.Core.Execution.OperationConsole console) [0x000b7] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at MonoDevelop.Core.Execution.MonoPlatformExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, MonoDevelop.Core.Execution.OperationConsole console) [0x00067] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at MonoDevelop.Core.Execution.DotNetExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, MonoDevelop.Core.Execution.OperationConsole console) [0x0002d] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at MonoDevelop.Core.Execution.DefaultExecutionHandler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, MonoDevelop.Core.Execution.OperationConsole console) [0x0000c] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
  at MonoDevelop.Projects.DotNetProject+<OnExecuteCommand>c__async5.MoveNext () [0x00107] in <8b69f6b28f544a1b8487e4e73135fc45>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <673bd6073a1048918901cf8e5f8bd29c>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <673bd6073a1048918901cf8e5f8bd29c>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <673bd6073a1048918901cf8e5f8bd29c>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <673bd6073a1048918901cf8e5f8bd29c>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <673bd6073a1048918901cf8e5f8bd29c>:0 
  at MonoDevelop.Projects.DotNetProject+<OnExecute>c__async4.MoveNext () [0x001a6] in <8b69f6b28f544a1b8487e4e73135fc45>:0

Here are details about my software:
Version 6.1.1
Installation UUID: 5f92efb0-c768-441d-a49c-6b149a504211
	Mono 4.6.1 (Stable Mon Oct 17 16:24:45 BST 2016) (64-bit)
	GTK+ 2.24.29 (Xamarin-Dark theme)


Build Information

Operating System
Linux hp8710w 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 GNU/Linux
Comment 1 Jason Imison 2016-10-21 09:09:20 UTC
Do you have the same issue with a C# console app? I would imagine that this is an issue with the flatpak installation rather than something F# specific.
Comment 2 Jo Shields 2016-10-21 12:07:41 UTC

*** This bug has been marked as a duplicate of bug 44182 ***