You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#load in fsx script can fail without a proper error message #15070
#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
Tested with Microsoft (R) F# Interactive version 14.0.105.0 for F# 10.0 (dotnet fsi from SDK 10.0.105, commit a0cce49):
#load "./path/script.fsx" (with dot-slash prefix) now works correctly — no FS1141 error.
// some-folder2/some-script.fsxlethello="world from hyphenated dir"
// test.fsx
#load "./some-folder2/some-script.fsx"open``Some-script``
printfn "%s" hello // prints: world from hyphenated dir
Both ./ and non-./ relative paths compile and run cleanly. The FS1141 "Identifiers followed by '!' are reserved for future use" error that was triggered by the dot-slash prefix is no longer present in F# 10.0.
Activity
github-actions commentedon Mar 29, 2026
🤖 This is an automated response from Repo Assist.
Tested with Microsoft (R) F# Interactive version 14.0.105.0 for F# 10.0 (
dotnet fsifrom SDK 10.0.105, commita0cce49):#load "./path/script.fsx"(with dot-slash prefix) now works correctly — no FS1141 error.Both
./and non-./relative paths compile and run cleanly. The FS1141 "Identifiers followed by '!' are reserved for future use" error that was triggered by the dot-slash prefix is no longer present in F# 10.0.Add regression test: #15070, hash-load with dot-slash prefix no longe…
Add regression test: #15070, hash-load with dot-slash prefix no longe…
Syncing release/dev18.6 with VS rel/insiders (#19699)