Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Linux: Paket failed with -> Win32Exception: An error occurred trying to start process 'dotnet' with working directory '/home/knocte/Documents/FSharpLint'. No such file or directory #4141

Open
knocte opened this issue Apr 11, 2022 · 0 comments · May be fixed by #4142

Comments

@knocte
Copy link

knocte commented Apr 11, 2022

Description

Trying to run `~/.dotnet/tools/paket update Ionide.ProjInfo.ProjectSystem resulted in the error:

Paket failed with
-> Win32Exception: An error occurred trying to start process 'dotnet' with working directory '/home/knocte/Documents/FSharpLint'. No such file or directory

Repro steps

  1. Install ubuntu 20.04

  2. Install dotnet via curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin as instructed by https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script

  3. Do export DOTNET_ROOT=$HOME/.dotnet as instructed by the required library libhostfxr.so could not be found. fantomas#412 (comment)

  4. Do export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 as instructed by https://docs.microsoft.com/en-us/dotnet/core/runtime-config/globalization

  5. Install paket via ~/.dotnet/dotnet tool update -g paket.

  6. Clone [email protected]:fsprojects/FSharpLint.git (at the time of writing, master branch is at commit hash 2688e50bfdf7b0344eb3404d1c232b09ad90bfa1 )

  7. cd FSharpLint and run paket restore via ~/.dotnet/tools/paket restore (it works, dependencies are restored)

  8. Run ~/.dotnet/tools/paket update Ionide.ProjInfo.ProjectSystem

Expected behavior

Should upgrade paket.dependencies file to raise Ionide.ProjInfo.ProjectSystem's version to latest.

Actual behavior

Crashes:

$ ~/.dotnet/tools/paket update Ionide.ProjInfo.ProjectSystem
Paket version 7.1.4+6190f61f11581b1d1d44c8e8e74ea97ccdb8760a
Updating Ionide.ProjInfo.ProjectSystem in /home/knocte/Documents/FSharpLint/paket.dependencies group Main
Resolving dependency graph...
Installing into projects:
Created dependency graph (321 packages in total)
Something went wrong while downloading runtime.native.System.Net.Security 4.3.1
Message: Start of process ln failed.
  ==> Trying again
Downloading runtime.native.System.Net.Security 4.3.1 (Docs)
Something went wrong while downloading System.Diagnostics.TraceSource 4.3
Message: Start of process ln failed.
  ==> Trying again
Downloading System.Diagnostics.TraceSource 4.3 (Docs)
Something went wrong while downloading System.Security.Cryptography.Pkcs 5.0.1
Message: Start of process ln failed.
  ==> Trying again
Downloading System.Security.Cryptography.Pkcs 5.0.1 (Docs)
Something went wrong while downloading System.Reflection.Extensions 4.3
Message: Start of process ln failed.
  ==> Trying again
Downloading System.Reflection.Extensions 4.3 (Docs)
Download of runtime.native.System.Net.Security 4.3.1 (Docs) done in 896 milliseconds. (266 kbit/s, 0 MB)
Download of System.Diagnostics.TraceSource 4.3 (Docs) done in 1 second. (1721 kbit/s, 0 MB)
Download of System.Reflection.Extensions 4.3 (Docs) done in 1 second. (767 kbit/s, 0 MB)
Download of System.Security.Cryptography.Pkcs 5.0.1 (Docs) done in 1 second. (8310 kbit/s, 1 MB)
Something went wrong while downloading System.Linq.Queryable 4.3
Message: Start of process ln failed.
  ==> Trying again
Downloading System.Linq.Queryable 4.3 (Docs)
Download of System.Linq.Queryable 4.3 (Docs) done in 847 milliseconds. (2602 kbit/s, 0 MB)
Could not detect any platforms from 'config' in '/home/knocte/.nuget/packages/microsoft.codeanalysis.analyzers/3.3.2/build/config/AnalysisLevel_3_3_Default.editorconfig', please tell the package authors
Calling dotnet restore on FSharpLint.sln
Total time taken: 58 seconds
Paket omitted 17 warnings. You can see them in verbose mode.
Paket failed with
-> Win32Exception: An error occurred trying to start process 'dotnet' with working directory '/home/knocte/Documents/FSharpLint'. No such file or directory

Known workarounds

Not yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant