2016-10-08 69 views

回答

3

在終端內VSC使用默認的shell,因此將皮卡相同的路徑,因此fsharpi將是一樣的,如果你通過Terminal.app運行它或iTerm2.app

如果你已經安裝了最新的單聲道版本,其將放置在fsharpi shell腳本:

>which fsharpi 
/usr/local/bin/fsharpi 

又使用單從fsi.exe CIL組件來執行:

/Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5 

單聲道版本4.6.0當前安裝F#Interactive for F#4.1

抓取最新的OS-X單聲道版本here

運行:

cat `which fsharpi` 

礦的回報:

#!/bin/sh 
EXEC="exec " 

if test x"$1" = x--debug; then 
    DEBUG=--debug 
    shift 
fi 

if test x"$1" = x--gdb; then 
    shift 
    EXEC="gdb --eval-command=run --args " 
fi 

if test x"$1" = x--valgrind; then 
    shift 
    EXEC="valgrind $VALGRIND_OPTIONS" 
fi 

# Beware this line must match the regular expression " (\/.*)\/fsi\.exe" when fsi.exe is fsi.exe. 
# That's because the FSharp MonoDevelop addin looks inside the text of this script to determine the installation 
# location of the default FSharp install in order to find the FSharp compiler binaries (see 
# fsharpbinding/MonoDevelop.FSharpBinding/Services/CompilerLocationUtils.fs). That's a pretty unfortunate 
# way of finding those binaries. And really should be changed. 
$EXEC /Library/Frameworks/Mono.framework/Versions/4.6.0/bin/mono $DEBUG $MONO_OPTIONS /Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5/fsi.exe --exename:$(basename "$0") "[email protected]" 
相關問題