Closed NatElkins closed 2 years ago
Doing a search for code 137, most results seem to suggest it's related to high memory usage, and I was able to repro your error by running it in an environment with limitted memory.
Can you check how much free memory you have?
Doesn't seem that bad...
Here's what I see when I run dotnet paket restore
:
➜ SafeStack dotnet paket restore
Failed to initialize CoreCLR, HRESULT: 0x80004005
Quit a bunch of things, same result:
This only seems to happen on dotnet paket restore
. Other invocations of dotnet tools seem to work okay (although when they try to restore, it fails).
➜ SafeStack dotnet tool list
Package Id Version Commands Manifest
-----------------------------------------------------------------------------------------------------
paket 6.0.7 paket /Users/nat/Projects/SafeStack/.config/dotnet-tools.json
fable 3.2.11 fable /Users/nat/Projects/SafeStack/.config/dotnet-tools.json
fantomas-tool 4.5.2 fantomas /Users/nat/Projects/SafeStack/.config/dotnet-tools.json
femto 0.9.0 femto /Users/nat/Projects/SafeStack/.config/dotnet-tools.json
➜ SafeStack dotnet femto
[17:24:24 INF] Analyzing project /Users/nat/Projects/SafeStack/Build.fsproj
[17:24:24 INF] Running dotnet restore against the project
[17:24:24 ERR] dotnet restore Failed with error MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
Updating Paket doesn't seem to resolve things either. I'll try restarting my computer soon to see if that helps.
Restarted, but the issue persists. When I try to restore a plain F# console app (without Paket) it works just fine.
➜ ~ cd ~/Projects
➜ Projects mkdir test_fsharp
➜ Projects cd test
➜ test cd ../test_fsharp
➜ test_fsharp dotnet new console -lang F#
The template "Console App" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on /Users/nat/Projects/test_fsharp/test_fsharp.fsproj...
Determining projects to restore...
Restored /Users/nat/Projects/test_fsharp/test_fsharp.fsproj (in 240 ms).
Restore succeeded.
➜ test_fsharp dotnet run
Hello from F#
➜ test_fsharp cd ..
➜ Projects cd SafeStack
➜ SafeStack dotnet paket restore
Failed to initialize CoreCLR, HRESULT: 0x80004005
I will open an issue in their repo.
Looking at their repo I saw the following issue: https://github.com/fsprojects/Paket/issues/4088
I followed the advice, uninstalled everything using https://docs.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool?tabs=macos#step-3---uninstall-net-sdks-and-runtimes and then tried again. No issues this time around.
I just tried installing the latest template and following the quickstart. It seems to fail on restore.
Here's my info:
Any thoughts?