dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.92k stars 785 forks source link

fsi 10.9.1.0 for F# 4.7 reference dll ok but 10.10.0.0 for F# 4.7 not ok #10021

Closed ingted closed 4 years ago

ingted commented 4 years ago

Repro steps

Provide the steps required to reproduce the problem:

  1. fsi 10.9.1.0 for F# 4.7:

    r @"C:\Users\aniba\Downloads\mdcdev\packages\Akkling.Cluster.Sharding.0.9.3\lib\net452\Akkling.Cluster.Sharding.dll"

  2. fsi 10.10.0.0 for F# 4.7:

    r @"C:\Users\aniba\Downloads\mdcdev\packages\Akkling.Cluster.Sharding.0.9.3\lib\net452\Akkling.Cluster.Sharding.dll"

Expected behavior

  1. --> Referenced 'C:\Users\aniba\Downloads\mdcdev\packages\Akkling.Cluster.Sharding.0.9.3\lib\net452\Akkling.Cluster.Sharding.dll' (file may be locked by F# Interactive process)

    1. --> Referenced 'C:\Users\aniba\Downloads\mdcdev\packages\Akkling.Cluster.Sharding.0.9.3\lib\net452\Akkling.Cluster.Sharding.dll' (file may be locked by F# Interactive process)

Actual behavior

  1. --> Referenced 'C:\Users\aniba\Downloads\mdcdev\packages\Akkling.Cluster.Sharding.0.9.3\lib\net452\Akkling.Cluster.Sharding.dll' (file may be locked by F# Interactive process)

  2. error FS0192: internal error: internal error: Fixup: the ccu thunk for assembly System.Collections.Immutable not delayed!

Known workarounds

So far no...

Related information

ingted commented 4 years ago

same machine, newer fsi would throw exception when #r dll file. old one not

KevinRansom commented 4 years ago

I can repro this, will take a look.

c:\kevinransom\fsharp>fsi --langversion:preview

Microsoft (R) F# Interactive version 10.10.0.0 for F# 4.7
Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

> #r "nuget:Akkling.Cluster.Sharding,0.9.3";;
> let _=();;
[Loading C:\Users\codec\AppData\Local\Temp\nuget\18332--56d5fe23-f574-4524-9ebe-47461a803f6f\Project.fsproj.fsx]

error FS0192: internal error: internal error: Fixup: the ccu thunk for assembly System.Collections.Immutable not delayed!

> #quit;;
kMutagene commented 4 years ago

Related: https://github.com/fslaborg/Deedle/issues/508

ingted commented 4 years ago

Cool!!!! ^^