F# interactive fails to load proper project "version" when using multiple scripts load
See original GitHub issueI get this behaviour when referencing multiple scripts from different files
i have a single Domain.fsx which i load in multiple files and then open as open Domain
// Domain.fsx
type Account = {
Email: string
Name: string
Password : string
}
I am not sure why is not possible to load Domain, ionide in vscode shows no errors.
//Script.fsx
//load other scripts
#load "Domain.fsx"
#load "Dto.fsx"
#load "Infrastructure.fsx"
//..
open Domain
open Dto
open Infrastructure
note: restarting ionide - closing/reopening vscode doesnt help
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
The associated script cannot be loaded
I have been working on a project for two weeks. All the scripts ... General problem with scripts: The associated script cannot be...
Read more >F# Interactive (dotnet) Reference
Learn how F# Interactive (dotnet fsi) is used to run F# code interactively at the console or to execute F# scripts.
Read more >Nuget connection attempt failed "Unable to load the service ...
Yes I have multiple proxies running on my machine. When I installed fiddler. I was able to access to nuget. I have corp...
Read more >expected workspace package to exist · Issue #7807 · ...
I can reproduce the error in my repository when running yarn upgrade-interactive , but manually bumping versions in package.json still works ...
Read more >Command-Line Interface
The command-line interface is one of the primary methods of interacting with Gradle. The following serves as a reference of executing and customizing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jkone27 I believe there are subtleties about how those directives impact the evaluation, that would make such adjustment problematic, on top of backward compatibility.
Adjusting https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/#f-interactive-directive-reference so it shows that several files can be loaded seems to be a good solution to make it explicit, what can be done with this directive.
Please note the above is the correct approach
Closing as by-design.