2016-10-08 8 views
2

私のVisual Studioでの端末は、私はF#4のためのFSIを使用するためのVisual Studioを伝えるにはどうすればよいF# Interactive for F# 3.1 (Open Source Edition)ビジュアルスタジオコードでF#4にFSIを使用するにはどうすればよいですか?

を言い続け?

PS:ビジュアルスタジオコードとすべての拡張機能が既に更新されています。

PPS:私はあなたのデフォルトのシェルを使用している、とあなたはTerminal.appを経由して、それを実行したかのようなので、ピックアップは同じパスので、fsharpiが同じになりますVSC内のMAC

enter image description here

答えて

3

ターミナルを使用していますまたはiTerm2.app

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

:今度はからfsi.exe CILアセンブリに実行するために、モノを使用しています

>which fsharpi 
/usr/local/bin/fsharpi 

:あなたは、最新のMonoバージョンがインストールされている場合

は、それが中fsharpiシェルスクリプトを配置しますモノバージョン4.6.0が現在インストールされています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]" 
関連する問題