From 5f04b2a4e4a745fd65c01c581a32e1a4e9612143 Mon Sep 17 00:00:00 2001 From: dawe Date: Thu, 14 Nov 2024 23:31:25 +0100 Subject: [PATCH] Let Microsoft (R) F# Interactive version 12.9.100.0 for F# 9.0 Copyright (c) Microsoft Corporation. All Rights Reserved. Usage: dotnet fsi [script.fsx []] - INPUT FILES - --use: Use the given file on startup as initial input --load: #load the given file on startup --reference: Reference an assembly (Short form: -r) --compilertool: Reference an assembly or directory containing a design time tool (Short form: -t) --usesdkrefs[+|-] Use reference assemblies for .NET framework references when available (Enabled by default). -- ... Treat remaining arguments as command line arguments, accessed using fsi.CommandLineArgs - CODE GENERATION - --debug[+|-] Emit debug information (Short form: -g) --debug:{full|pdbonly|portable|embedded} Specify debugging type: full, portable, embedded, pdbonly. ('pdbonly' is the default if no debugging type specified and enables attaching a debugger to a running program, 'portable' is a cross-platform format, 'embedded' is a cross-platform format embedded into the output file). --optimize[+|-] Enable optimizations (Short form: -O) --tailcalls[+|-] Enable or disable tailcalls --deterministic[+|-] Produce a deterministic assembly (including module version GUID and timestamp) --realsig[+|-] Generate assembly with IL visibility that matches the source code visibility --pathmap: Maps physical paths to source path names output by the compiler --crossoptimize[+|-] Enable or disable cross-module optimizations --reflectionfree Disable implicit generation of constructs using reflection - ERRORS AND WARNINGS - --warnaserror[+|-] Report all warnings as errors --warnaserror[+|-]: Report specific warnings as errors --warn: Set a warning level (0-5) --nowarn: Disable specific warning messages --warnon: Enable specific warnings that may be off by default --checknulls[+|-] Enable nullness declarations and checks --consolecolors[+|-] Output warning and error messages in color - LANGUAGE - --langversion:? Display the allowed values for language version. --langversion:{version|latest|preview} Specify language version such as 'latest' or 'preview'. --checked[+|-] Generate overflow checks --define: Define conditional compilation symbols (Short form: -d) --mlcompatibility Ignore ML compatibility warnings --strict-indentation[+|-] Override indentation rules implied by the language version - MISCELLANEOUS - --nologo Suppress compiler copyright message --version Display compiler version banner and exit --help Display this usage message (Short form: -?) - ADVANCED - --codepage: Specify the codepage used to read source files --utf8output Output messages in UTF-8 encoding --preferreduilang: Specify the preferred output language culture name (e.g. es-ES, ja-JP) --fullpaths Output messages with fully qualified paths --lib: Specify a directory for the include path which is used to resolve source files and assemblies (Short form: -I) --simpleresolution Resolve assembly references using directory-based rules rather than MSBuild resolution --targetprofile: Specify target framework profile of this assembly. Valid values are mscorlib, netcore or netstandard. Default - mscorlib --clearResultsCache Clear the package manager results cache --exec Exit fsi after loading the files or running the .fsx script given on the command line --gui[+|-] Execute interactions on a Windows Forms event loop (on by default) --quiet Suppress fsi writing to stdout --readline[+|-] Support TAB completion in console (on by default) --quotations-debug[+|-] Emit debug information in quotations --shadowcopyreferences[+|-] Prevents references from being locked by the F# Interactive process --multiemit[+|-] Emit multiple assemblies (on by default) print a link to the documentation website. fixes #16295 --- docs/release-notes/.FSharp.Compiler.Service/9.0.200.md | 1 + src/Compiler/Interactive/FSIstrings.txt | 1 + src/Compiler/Interactive/fsi.fs | 2 ++ src/Compiler/Interactive/xlf/FSIstrings.txt.cs.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.de.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.es.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.fr.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.it.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.ja.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.ko.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.pl.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.pt-BR.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.ru.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.tr.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hans.xlf | 5 +++++ src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hant.xlf | 5 +++++ 16 files changed, 69 insertions(+) diff --git a/docs/release-notes/.FSharp.Compiler.Service/9.0.200.md b/docs/release-notes/.FSharp.Compiler.Service/9.0.200.md index 66c2c26926c..232853cfea5 100644 --- a/docs/release-notes/.FSharp.Compiler.Service/9.0.200.md +++ b/docs/release-notes/.FSharp.Compiler.Service/9.0.200.md @@ -15,6 +15,7 @@ ### Added +* Let `dotnet fsi --help` print a link to the documentation website. ([PR #18006](https://github.com/dotnet/fsharp/pull/18006)) * Deprecate places where `seq` can be omitted. ([Language suggestion #1033](https://github.com/fsharp/fslang-suggestions/issues/1033), [PR #17772](https://github.com/dotnet/fsharp/pull/17772)) * Support literal attribute on decimals ([PR #17769](https://github.com/dotnet/fsharp/pull/17769)) * Added type conversions cache, only enabled for compiler runs, guarded by language version preview ([PR#17668](https://github.com/dotnet/fsharp/pull/17668)) diff --git a/src/Compiler/Interactive/FSIstrings.txt b/src/Compiler/Interactive/FSIstrings.txt index b415dda8af1..6d472429085 100644 --- a/src/Compiler/Interactive/FSIstrings.txt +++ b/src/Compiler/Interactive/FSIstrings.txt @@ -58,3 +58,4 @@ fsiOperationCouldNotBeCompleted,"Operation could not be completed due to earlier fsiOperationFailed,"Operation failed. The error text has been printed in the error stream. To return the corresponding FSharpDiagnostic use the EvalInteractionNonThrowing, EvalScriptNonThrowing or EvalExpressionNonThrowing" fsiMultiAssemblyEmitOption,"Emit multiple assemblies (on by default)" 2304,fsiEntryPointWontBeInvoked,"Functions with [] are not invoked in FSI. '%s' was not invoked. Execute '%s ' in order to invoke '%s' with the appropriate string array of command line arguments." +fsiDetailedHelpLink,"See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details." \ No newline at end of file diff --git a/src/Compiler/Interactive/fsi.fs b/src/Compiler/Interactive/fsi.fs index b8170c14b8d..08bbb9f98ab 100644 --- a/src/Compiler/Interactive/fsi.fs +++ b/src/Compiler/Interactive/fsi.fs @@ -1004,6 +1004,8 @@ type internal FsiCommandLineOptions(fsi: FsiEvaluationSessionHostConfig, argv: s fprintfn fsiConsoleOutput.Out "" fprintfn fsiConsoleOutput.Out "%s" (FSIstrings.SR.fsiUsage (executableFileNameWithoutExtension.Value)) Console.Write(GetCompilerOptionBlocks blocks tcConfigB.bufferWidth) + fprintfn fsiConsoleOutput.Out "" + fprintfn fsiConsoleOutput.Out "%s" (FSIstrings.SR.fsiDetailedHelpLink ()) exit 0 // option tags diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.cs.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.cs.xlf index d0484d1aada..c118c5952ef 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.cs.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.cs.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Funkce s [<EntryPoint>] nejsou vyvolány v FSI. {0} nebylo vyvoláno. Pokud chcete vyvolat {2} s příslušným polem řetězců argumentů příkazového řádku, spusťte příkaz{1} <args>. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.de.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.de.xlf index 801c1c8aeb6..adeca2e6529 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.de.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.de.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Funktionen mit [<EntryPoint>] werden in FSI nicht aufgerufen. '{0}' wurde nicht aufgerufen. Führen Sie '{1} <args>' aus, um '{2}' mit dem entsprechenden String-Array von Befehlszeilenargumenten aufzurufen. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.es.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.es.xlf index 6ecad43d575..23fdc0d4427 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.es.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.es.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Las funciones con [<EntryPoint>] no se invocan en FSI. “{0}” no se invocó. Ejecute “{1} <args>” para invocar “{2}” con la matriz adecuada de cadenas de argumentos de línea de comandos. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.fr.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.fr.xlf index ecddd294a3d..9fc547a8bbd 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.fr.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.fr.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Les fonctions avec [<EntryPoint>] ne sont pas appelées dans FSI. '{0}' n’a pas été appelée. Exécutez '{1} <args>' pour appeler '{2}' avec le tableau de chaînes approprié d’arguments de ligne de commande. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.it.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.it.xlf index f04cf584c81..4018140ad48 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.it.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.it.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Le funzioni con [<EntryPoint>] non vengono richiamate in FSI. '{0}' non è stato richiamato. Eseguire '{1} <args>' per richiamare '{2}' con la matrice di stringhe appropriata degli argomenti della riga di comando. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.ja.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.ja.xlf index 5b1d3723135..30aea96727c 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.ja.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.ja.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. [<EntryPoint>] を含む関数は FSI では呼び出されません。'{0}' は呼び出されませんでした。コマンド ライン引数の適切な文字列配列を使用して '{2}' を呼び出すには、'{1} <args>' を実行してください。 diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.ko.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.ko.xlf index b94d2b1c62f..a56d8ca6e83 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.ko.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.ko.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. [<EntryPoint>]가 있는 함수는 FSI에서 호출되지 않습니다. '{0}'이(가) 호출되지 않았습니다. 명령줄 인수의 적절한 문자열 배열로 '{2}'을(를) 호출하려면 '{1}<args>'를 실행하세요. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.pl.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.pl.xlf index b4d7026498d..22e62a8d4c8 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.pl.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.pl.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Funkcje z elementem [<EntryPoint>] nie są wywoływane w interfejsie FSI. „{0}” nie został wywołany. Wykonaj polecenie „{1} <args>”, aby wywołać „{2}” z odpowiednią tablicą ciągów argumentów wiersza polecenia. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.pt-BR.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.pt-BR.xlf index f748ba1be27..34c448fb406 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.pt-BR.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.pt-BR.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. As funções com [<EntryPoint>] não são invocadas no FSI. '{0}' não foi invocado. Execute '{1} <args>' para invocar '{2}' com a matriz de cadeia de caracteres apropriada dos argumentos da linha de comando. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.ru.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.ru.xlf index 9b1c172ae5c..4525bedf514 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.ru.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.ru.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. Функции с [<EntryPoint>] не вызываются в FSI. "{0}" не вызван. Выполните "{1} <args>", чтобы вызвать "{2}" с соответствующим строковым массивом аргументов командной строки. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.tr.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.tr.xlf index 2d2cac17955..41bd4d02b07 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.tr.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.tr.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. [<EntryPoint>] ile işlevler, FSI'de çağrılmaz. '{0}' başlatılmadı. '{1} <args>' komutunu çalıştırarak uygun komut satırı bağımsız değişken dizisiyle '{2}' komutunu başlatın. diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hans.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hans.xlf index b6615ef7514..4be749086b7 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hans.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hans.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. FSI 中未调用具有 [<EntryPoint>] 的函数。未调用“{0}”。执行“{1} <args>”,以便使用命令行参数的相应字符串数组调用“{2}”。 diff --git a/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hant.xlf b/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hant.xlf index c49b8a171a9..6ea65443eaf 100644 --- a/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hant.xlf +++ b/src/Compiler/Interactive/xlf/FSIstrings.txt.zh-Hant.xlf @@ -2,6 +2,11 @@ + + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + See https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/fsharp-interactive-options for more details. + + Functions with [<EntryPoint>] are not invoked in FSI. '{0}' was not invoked. Execute '{1} <args>' in order to invoke '{2}' with the appropriate string array of command line arguments. FSI 中未叫用具有 [<EntryPoint>] 的函數。未叫用'{0}'。執行 '{1} <args>',以使用適當的命令列引數字串陣列叫用 '{2}'。