Browse Source

stop interactive console throwing an exception if F# is not installed.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2962 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Robert Pickering 18 years ago
parent
commit
60ee32e1ca
  1. 4
      src/AddIns/BackendBindings/FSharp/FSharpBinding/Project/Src/fsi.fs

4
src/AddIns/BackendBindings/FSharp/FSharpBinding/Project/Src/fsi.fs

@ -69,7 +69,9 @@ module TheControl =
if possibleFiles.Length > 0 then if possibleFiles.Length > 0 then
fsiProcess.StartInfo.FileName <- possibleFiles.[0].FullName fsiProcess.StartInfo.FileName <- possibleFiles.[0].FullName
else else
failwith "can not find the fsi.exe, ensure a version of the F# compiler is installed" output.Text <-
"Can not find the fsi.exe, ensure a version of the F# compiler is installed." + Environment.NewLine +
"Please see http://research.microsoft.com/fsharp for details of how to install the compiler"
fsiProcess.StartInfo.UseShellExecute <- false fsiProcess.StartInfo.UseShellExecute <- false
fsiProcess.StartInfo.RedirectStandardError <- true fsiProcess.StartInfo.RedirectStandardError <- true
fsiProcess.StartInfo.RedirectStandardInput <- true fsiProcess.StartInfo.RedirectStandardInput <- true

Loading…
Cancel
Save