dotnet / dotnet/fsharp

dotnet fsi fails with FS0239: An implementation of the file or module 'SOME MODULE NAME FSI GENERATES' has already been given" when switching from `fsi.exe`(.net framework) to `dotnet fsi`

Open
#16,384 0 comments 0 reactions 1 assignee Claimed by @KevinRansom View on GitHub
Bug Impact-Low Triage-Investigate
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

I'm updating [FSharp.Data.SqlClient](https://github.com/fsprojects/FSharp.Data.SqlClient) repository from SDK 2.1.402 to 7.0.400.

In the build script, there is a call to `dotnet fsi` (in GenerateDocs target of build.fs in https://github.com/fsprojects/FSharp.Data.SqlClient/pull/435) that I notice fails with

> error FS0239: An implementation of the file or module 'FSI_0002_FSharp.Formatting$fsx' has already been given

The same works fine in [master](https://github.com/fsprojects/FSharp.Data.SqlClient/blob/4ff78e21467487c3f5a37d37b6915d8739cef03b/docs/tools/generate.fsx#L17) which uses .net framework version of FSI (from VS 2017 IIUC).

I'm wondering if:
* for sake of having people facing this when they try to move scripts from one runtime to the other (assuming we want people migrating away from .net framework version of FSI over time)
* and in case there is a known solution we could implement in FSI

If this is worth putting under non regression test and fixing?

Related: https://github.com/fsharp/fsharp/issues/838

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.