fsprojects / fsprojects/Paket

FSI fails to load generated load script file

Open
#3,353 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

FSI fails to load generated load script file

Repro steps

Run the following commands with forge on W10 and paket 5.177.1

  1. forge paket init

  2. forge paket add FSharp.Control.FusionTasks

  3. forge paket generate-load-scripts

  4. run the following fsx file

#load @".paket\load\netcoreapp2.1\main.group.fsx"
Expected behavior

Should be able to load main package script

Actual behavior

Get the following output when trying to load the script

main.group.fsx(27,1): error FS0074: The type referenced through 'System.Threading.Tasks.ValueTask' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Threading.Tasks.Extensions'.
Known workarounds

none

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the listed forge and Paket commands on Windows, then inspect the generated .paket\load\netcoreapp2.1\main.group.fsx and run it through FSI. Done means the generated main package script loads without the missing System.Threading.Tasks.Extensions error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.