ionide / ionide/FsAutoComplete

Script reference resolution doesn't respect sdk version in global.json

Open
#605 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
F#
Stars
486
Forks
169
Avg merge
2d 8h
Merged PRs (30d)
5

Description

After the installation of the .NET 5 preview some existing fsx scripts stopped working because of many different reasons. So I decided to create a global.json file to specify the latest SDK version of the last known working installation.

The correct FSI version is started when I run a script. But the framework references for the script file are always resolved to the most up to date version.

In the code I found that always the lastest installed SDK references are used:
https://github.com/fsharp/FsAutoComplete/blob/81145f1f8d56d79e91bc8a95b7a4b5e882099fb1/src/FsAutoComplete.Core/CompilerServiceInterface.fs#L295

Shouldn't this respect the version specified in global.json?

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.