fsprojects / fsprojects/Paket

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

Open
#4,141 0 comments 0 reactions 0 assignees View on GitHub

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
  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 https://github.com/fsprojects/fantomas/issues/412#issuecomment-798774514

  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 git@github.com: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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.