Open brokenthorn opened 1 month ago
Also, the command that seems to fail when SAFE calls it, from my logs, runs perfectly if I run it:
PS D:\PharmaPOS\PharmaPOS.Web> dotnet paket restore
Paket version 8.0.0+6bcb14ec191f11e984ff0e58016f5987a5cfa8f6
The last full restore is still up to date. Nothing left to do.
Total time taken: 0 milliseconds
If you go to src\Server
and run the following command you can see the full exception: dotnet watch run -- -v d
Also, still in src\Server
, does the error happen with dotnet run
instead of dotnet watch run
?
@brokenthorn one of our devs has just had a similar issue (affecting only dotnet watch run
) after updating to the latest version of Visual Studio. It seems that doing so installs a bundled .NET SDK 8.0.300. We haven't yet worked out why that might cause a problem with paket when using dotnet watch run
, but have found a workaround: changing ./global.json to the below, where 8.0.XXX is the latest SDK version you have installed.
{
"sdk": {
"version": "8.0.XXX"
}
}
You can see which .NET SDK versions you have installed using dotnet --list-sdks
.
Please let us know if that helps you.
@brokenthorn one of our devs has just had a similar issue (affecting only
dotnet watch run
) after updating to the latest version of Visual Studio. It seems that doing so installs a bundled .NET SDK 8.0.300. We haven't yet worked out why that might cause a problem with paket when usingdotnet watch run
, but have found a workaround: changing ./global.json to the below, where 8.0.XXX is the latest SDK version you have installed.{ "sdk": { "version": "8.0.XXX" } }
You can see which .NET SDK versions you have installed using
dotnet --list-sdks
.Please let us know if that helps you.
i have the same issue, however your solution doesnt work for me :/
@jwthomson dotnet run works for me instead of dotnet watch run
@stefanwerner87 Hi. We are fairly confident that this is due to a bug introduced in .NET 8.0.300. I would recommend that you install an older version of .NET 8 (side-by-side) e.g. 8.0.206 (https://dotnet.microsoft.com/en-us/download/dotnet/8.0). Then change your SDK to:
{
"sdk": {
"version": "8.0.206"
}
}
WITHOUT any "minor update" roll forward.
Hope that that helps - let me know how you get on.
@brokenthorn did you have a chance to test out the potential fix described by Isaac?
I was struggling with the same issue for the last few days before I thought to look here. I tried the fix and it worked. Thank you!
Hello!
I am trying SAFE for the very first time and I have problems getting the default quick start template to run correctly as is explained. It seems like the API server is not starting. I know this because I can load the client, i.e. I can see the web page, but there are no todos on it and I cannot add one either.
If I run the server manually in my IDE, then the UI also works or seems to work at least (the dotnet run log for example does not change even if I restart it). Here is how my IDE starts the server:
I've observed that all API calls seem to return HTTP 500.
First, here is the
dotnet run
log:Initial browser logs upon opening
http://localhost:8080
:And the failing initial call (the call to add a todo is similar):
Call stack:
And screenshot:
Tools: