drracket icon indicating copy to clipboard operation
drracket copied to clipboard

Install Package can hang and not return control

Open shriram opened this issue 3 years ago • 0 comments

I already had a Package Source URL and accidentally pasted a second one and hit enter, creating an erroneous URL. The installer says

Querying Git references for smol at https://github.com/LuKC1024/stacker.githttps://github.com/shriram/smol.git
pkg: Git checkout initial protocol failed;
 the given URL might not refer to a Git repository
  given URL: https://github.com/LuKC1024/stacker.githttps://github.com/shriram/smol.git
  context...:
   /Applications/Racket v8.6/collects/pkg/private/stage.rkt:782:25
   /Applications/Racket v8.6/collects/net/git-checkout.rkt:382:0: parse-initial-refs
   /Applications/Racket v8.6/collects/net/git-checkout.rkt:74:8
  [several lines elided]
   ...

Clicking "Abort Install" results in

Aborted.

being printed. However, it doesn't actually abort. I can click it multiple times; each one results in another print. But Abort Install is still active, Close is disabled, and if I fix the URL and click Install again, I get an error pop-up:

Installation and updating cannot happen simultaneously; either abort the current one or wait for it to finish.

Since this is a modal window, there is no way to return control to DrRacket. It looks like the only option is to Force Quit.

DrRacket: v8.6 ARM version OS: macOS Monterey 12.5.1 Hardware: MacBook Air M2 chip

shriram avatar Sep 05 '22 00:09 shriram