Skip to content

Errors for transitive #load on missing files are not shown in the IDE #1962

@dsyme

Description

@dsyme

This bug is in both VS2015 and VS2017

Errors for transitive #load on missing files are not shown in the IDE. (Other errors such as type checking and parsing errors in transitively-loaded scripts are correctly shown, it's just that the missing-file errors are not replayed)

Repro steps

script1.fsx:

#load "script2.fsx"

System.Console.WriteLine("Hello")

script2.fsx:

#load "bad.fsx"

let fail = 1 + 1

Expected behavior

The IDE shows an error on #load script2.fsx in script1.fsx, because there is a transitive missing-script error in the script being loaded

Actual behavior

No error is shown in script1.fsx

Known workarounds

You find out when you run the script

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions