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
Create new app using SAFE template with remoting enabled (dotnet new SAFE -lang F# --remoting)
Try to build and start the app (build run)
Actual behaviour: server side (Saturn) application crashes with following exception:
Unhandled Exception: System.ArgumentException: The input sequence was empty.
Parameter name: source
at Microsoft.FSharp.Collections.SeqModule.Last[T](IEnumerable`1 source)
at Saturn.SiteMap.generate() in D:\Programowanie\Projekty\Saturn\Saturn\src\Saturn\Diagnostics.fs:line 55
at Saturn.Application.run(IWebHostBuilder app) in D:\Programowanie\Projekty\Saturn\Saturn\src\Saturn\Application.fs:line 381
at <StartupCode$Server>.$Server.main@() in C:\work\dotnet\SAFESample\src\Server\Server.fs:line 33
It looks like SiteMap.generate function is called on empty state. It should be updated with SiteMap.add function which seems to be never called.
Disabling diagnostics (using disable_diagnostics directive) solves the issue.
Environment: .NET Core SDK 2.1.300, Windows 10, Saturn 0.5
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
dotnet new SAFE -lang F# --remoting
)build run
)Actual behaviour: server side (Saturn) application crashes with following exception:
It looks like
SiteMap.generate
function is called on empty state. It should be updated withSiteMap.add
function which seems to be never called.Disabling diagnostics (using
disable_diagnostics
directive) solves the issue.Environment: .NET Core SDK 2.1.300, Windows 10, Saturn 0.5
The text was updated successfully, but these errors were encountered: