Skip to content

F# interactive regression on autocomplete suggestion #9206

Closed
@Swoorup

Description

@Swoorup

Autocompletion on fsi fails on certain types with dotnet sdk 3.1.202. This doesn't appear to appear on 3.1.102 however

Repro steps

Provide the steps required to reproduce the problem:

  1. open dotnet fsi in a terminal.
  2. type the following
open System;;
let time = TimeSpan.FromHours(1.0);;
  1. Now type time. and try to autocomplete with TAB key. And observe the following error:
stdin(0,1): error FS1108: The type 'IAsyncOperationWithProgress`2' is required here and is unavailable. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.

Expected behavior

Should now throw the FS1108 error and should autocomplete the TimeSpan object.

Actual behavior

stdin(0,1): error FS1108: The type 'IAsyncOperationWithProgress`2' is required here and is unavailable. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'.

Known workarounds

Use dotnet sdk 3.1.102

Related information

Provide any related information (optional):

  • Operating system: Windows, Linux
  • .NET Runtime kind: .NET Core
  • Editing Tools: Terminal, (I got the bug in Jetbrains Rider as well, working with fsx files )
    image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions