SAFE-Stack / SAFE-template

dotnet CLI template for SAFE project
MIT License
280 stars 87 forks source link

`The command "dotnet paket restore" excited with code -532462766` on a fresh SAFE template #621

Open Freymaurer opened 5 days ago

Freymaurer commented 5 days ago

Hey guys, i never encountered this error before, but we wanted to setup a SAFE project for a new colleague and we got an error The command "dotnet paket restore" excited with code -532462766. We tested this also for a fresh SAFE stack and still the issue persists. I have no idea why this issue happens. We "solved" it by removing paket and using simple dotnet dependencies but this is obviously no real solution.

This is not my machine, but i will try to answer asap if you want more information on this. But i do not expect you to solve this obscure issue. Just wanted to let you know.

We also tried running dotnet watch run src/Server/Server.fsproj without fake with the same result and tried building the projects which worked just fine.

The machine uses:

image

jwthomson commented 2 days ago

I've definitely seen this error code before. Last time it was to do with missing paket.references from the Shared directory causing Paket to use the wrong version of FSharp - this is now fixed as of 8 months ago.

Maybe these will help diagnose the issue:

Freymaurer commented 2 days ago

Hello! Thanks for the quick response!

What version of the SAFE template is being used?

The newest version v5.0.6

What is the output of dotnet --list-sdks?

image

What is the output of dotnet build -v:d? (from the src/Server directory)

image