Skip to content

#load in fsx script can fail without a proper error message #15070

@jkone27

Description

@jkone27

#load in fsx script can fail without a proper error message

Repro steps

this will not work

#load "./some-folder/some-script.fsx"

causing a strange/unexpected FS1141 error, not easy to troubleshoot for users.

this works

#load "some-folder/some-script.fsx"

Expected behavior

the failure to load gives a more explanative error message to the user, eventually suggesting what could be wrong, or better maybe it still loads fine in this case as both "some-folder" and "./some-folder" or "/some-folder" should all work as relative paths (?) not sure.

Actual behavior

error FS1141: Identifiers followed by '!' are reserved for future use

Known workarounds

not known

Related information

Provide any related information (optional):

  • Mac Os
  • .NET7
  • vscode

Related issue
#9417.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI-thinks-issue-fixedArea-FSIBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions