Pkg.jl: after upgrade to 1.6.1: lost Pkg prompt on Pkg.update() and Pkg.add("...")

Created on 30 Apr 2021  路  5Comments  路  Source: JuliaLang/Pkg.jl

After upgrading from 1.6.0 to 1.6.1 I lost the Pkg prompt on Pkg.update() and Pkg.add("...") in my Jupyter notebook.

Is this intentional or an issue?

The code runs fast and I believe correct (thanks!) but lacks the prompt reporting updates. So, I can do my work but wanted to report my issue... I searched for a key to switch the prompt on but could not find it.

Most helpful comment

As a quick fix before 1.6.2 comes out, you can work around in 1.6.1 it by setting

import Pkg
Pkg.DEFAULT_IO[] = stdout

All 5 comments

Indeed. Note that these are executed cells

Screen Shot 2021-04-30 at 10 17 48 AM

Yes, thanks, this is what I reproduce. After restarting the kernel I get:

using Pkg
Pkg.update()
Fetching: [========================================>] 100.0 %

Pkg.add("FixedPoint Numbers")

Note: no output was returned, i.e., i got no message that Pkg.add was successful (same for update). In previous versions Julia returned output about the presence or absence of changes in the Project and Manifest tomls. I found that helpful. Now I understand that this has abandoned, which I respect but regret.

As a quick fix before 1.6.2 comes out, you can work around in 1.6.1 it by setting

import Pkg
Pkg.DEFAULT_IO[] = stdout

Thank you for chewing this out for me... Great support!

Was this page helpful?
0 / 5 - 0 ratings