opam icon indicating copy to clipboard operation
opam copied to clipboard

opam init takes forever and unclear what it's doing

Open ORESoftware opened this issue 1 year ago • 6 comments

Developer experience is terrible here, new to opam, new to ocaml

this takes forever, and I have no idea what it's doing

Screen Shot 2023-12-19 at 2 30 24 AM

ORESoftware avatar Dec 19 '23 07:12 ORESoftware

Screen Shot 2023-12-19 at 2 31 02 AM

ORESoftware avatar Dec 19 '23 07:12 ORESoftware

the second image - took like 15-40 seconds, no idea what it was doing

ORESoftware avatar Dec 19 '23 07:12 ORESoftware

How long does the first image takes? If it takes a long time could you show us what opam init --debug does?

As for the second image the message says "fetching repository information", so it’s just taking this time downloading and processing that data. Do you expect a more verbose output? If so what kind of output?

kit-ty-kate avatar Dec 19 '23 13:12 kit-ty-kate

I think that just some messages indicating that the download is running would be useful to just be sure that something is happening and the download operation is ongoing.

AllanBlanchard avatar Jun 17 '24 09:06 AllanBlanchard

I think that just some messages indicating that the download is running would be useful to just be sure that something is happening and the download operation is ongoing.

This was done in https://github.com/ocaml/opam/pull/5977 and was part of the recently released opam 2.2.0~beta3

kit-ty-kate avatar Jun 17 '24 10:06 kit-ty-kate

Hum. So it might due to the fact that powershell does not display things sometimes. For example, during build on Opam it does not update the packages being built during a long installation.

AllanBlanchard avatar Jun 17 '24 12:06 AllanBlanchard