Skip to content

Intermittent 'Server Prompt' output from FSI #14717

@MaxWilsonMS

Description

@MaxWilsonMS

Description

About 1 time in 20, FSI appends the string "SERVER-PROMPT>" to the output for unclear reasons.

Version: Microsoft (R) F# Interactive version 12.5.0.0 for F# 7.0 from inside Visual Studio 2022 17.5.0 Preview 4.

Repro steps

  1. Define a debug function
type MonsterId = MonsterId of string
let debug () =
    let monsters = [[MonsterId "Vampire"]]
    monsters, "The town priest turns out to be a vampire"
debug()
  1. Run the debug() line a bunch of times via Send To Interactive.

EXPECTED: It will always print

    val it: MonsterId list list * string =
    ([[MonsterId "Vampire"]], "The town priest turns out to be a vampire")

ACTUAL: Sometimes it will print

    val it: MonsterId list list * string =
    ([[MonsterId "Vampire"]], "The town priest turns out to be a vampire")

    SERVER-PROMPT>

Known workarounds

Just ignore the issue? I'm not sure what the actual impact is beyond increasing friction during exploratory programming.

Provide any related information (optional):

The specific text seems to be important. I have not been able to reliably repro this issue without including the word "vampire" in the output.

  • Version: Microsoft (R) F# Interactive version 12.5.0.0 for F# 7.0 from inside Visual Studio

  • Operating system Windows

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions