racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
444 stars 93 forks source link

Package updates fail unless I run DrRacket as administrator #600

Closed MrYossu closed 1 year ago

MrYossu commented 1 year ago

Just tried updating a package from the Package Manager, and I got a lot of red messages in the output panel...

open-output-file: error opening file path: C:\Program Files\Racket\share\pkgs_LOCKpkgs.rktd system error: Access is denied.; win_err=5 context...: C:\Program Files\Racket\collects\racket\private\kw-file.rkt:134:2: call-with-output-file* C:\Program Files\Racket\collects\racket\file.rkt:752:0: call-with-file-lock C:\Program Files\Racket\collects\pkg\main.rkt:327:16 C:\Program Files\Racket\collects\racket\contract\private\arrow-higher-order.rkt:375:33 C:\Program Files\Racket\share\pkgs\gui-lib\mrlib\terminal.rkt:213:7 C:\Program Files\Racket\share\pkgs\gui-lib\mred\private\wx\common\queue.rkt:435:6 C:\Program Files\Racket\share\pkgs\gui-lib\mred\private\wx\common\queue.rkt:486:32 C:\Program Files\Racket\collects\racket\private\more-scheme.rkt:148:2: call-with-break-parameterization C:\Program Files\Racket\share\pkgs\gui-lib\mred\private\wx\common\queue.rkt:370:11: eventspace-handler-thread-proc

If I run DrRacket as administrator then the update works fine.

Is this expected? I don't normally run apps as administrator, and it's a pain to have to do this just to update packages.

Anyone able to comment? Thanks

MrYossu commented 1 year ago

Closing this as I reported it as a bug.