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
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
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
-
Install ubuntu 20.04
-
Install dotnet via
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdinas instructed by https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script -
Do
export DOTNET_ROOT=$HOME/.dotnetas instructed by https://github.com/fsprojects/fantomas/issues/412#issuecomment-798774514 -
Do
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1as instructed by https://docs.microsoft.com/en-us/dotnet/core/runtime-config/globalization -
Install paket via
~/.dotnet/dotnet tool update -g paket. -
Clone
git@github.com:fsprojects/FSharpLint.git(at the time of writing, master branch is at commit hash 2688e50bfdf7b0344eb3404d1c232b09ad90bfa1 ) -
cd FSharpLintand runpaket restorevia~/.dotnet/tools/paket restore(it works, dependencies are restored) -
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure from an FSharpLint checkout with ~/.dotnet/tools/paket update Ionide.ProjInfo.ProjectSystem, then examine the paket.dependencies update flow and the FSharpLint.sln restore step. Done means the command completes on Ubuntu 20.04 without failing to start dotnet from the project directory and updates the requested dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp, linux
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100