question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

F# interactive fails to load proper project "version" when using multiple scripts load

See original GitHub issue
image

I get this behaviour when referencing multiple scripts from different files

image

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:closed
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
smoothdevelopercommented, Sep 30, 2022

@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.

1reaction
dsymecommented, Sep 23, 2022

Please note the above is the correct approach

Closing as by-design.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found