`paket.exe restore` hangs after (successfully) finishing its job

Open
#4,215 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
fsharp
Domain
cli

Research direction

Start by reproducing paket.exe restore on Windows 11 with Paket 7.2.1, using both the provided build.cmd context and a direct shell invocation. Review the attached console and Process Monitor screenshots, focusing on the point after CloseFile(). Done means the restore completes and paket.exe returns control to the calling shell without requiring the process to be killed.

Written by the indexing model from the issue text.

Description

Hey,

posted this already in https://github.com/fsprojects/Paket/issues/3412 but it seems this has no effect, since that Issue is rather old. So i decided to open a new issue.

We have somewhat same problem here, as in https://github.com/fsprojects/Paket/issues/3412 issue. All stuff is done and paket.exe restore simply not returns. But there seems to be no activity.

I attached 2 screenshots here:

  • Console output of our build.cmd script (a simple batch file starting paket.exe restore)
    --> Screenshot1: ConsoleOutput.png
  • Sysinternals Process Monitor Screenshot of paket.exe process
    --> Screenshot2: ProcessMonitor.png

After the CloseFile() (Screenshot2) nothing happens, but paket.exe in our script not returns (Screenshot1).

Additional informations:

  • It doesn´t matter if paket.exe is started from cmd.exe, PowerShell, or the new Windows Terminal.
  • It doesn´t matter if paket.exe restore needs to restore or not (in Screenshot1 all packages were up2date).

Used environment:

  • Output of paket.exe --version: Paket version 7.2.1+8e4eb74b42fbd45f39f7afce9184c16ebb65f16c
  • Windows 11 Pro Version 22H2 Build 22621.1848
  • Visual Studio 2022 Version 17.6.3 (but doesn´t matter here)

We are a big company (but using my personal GitHub account here), developing and maintaining 1 giant .NET enterprise software product and we use paket.exe since years now. And this is a non-critical (but annoying) problem we have, since quite a while. The paket.exe restore does what it should (restore packages) and all is fine. The paket.exe simply not returns. We "fixed"it, by using a self-written tool, that scans for a paket.exe process and, if found, kills the process, so our script can continue then. But that´s more of a band aid patch than a solution. 😉

Any help is very appreciated!

Best regards

ConsoleOuput
ProcessMonitor

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

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.

More from fsprojects/Paket

All issues in fsprojects/Paket

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.