Pkg.jl: preview up doesn't work properly

Created on 15 Jan 2019  ยท  3Comments  ยท  Source: JuliaLang/Pkg.jl

I am assuming that the point of preview is to see what the effect of an operation would be, and would therefore expect that preview up would tell me which packages would get updated. This does not see to be the case on 1.0.3:

(v1.0) pkg> preview up                                                           
โ”€โ”€โ”€โ”€โ”€ Preview mode โ”€โ”€โ”€โ”€โ”€                                                         
[ Info: Skipping updating registry in preview mode                               
 Resolving package versions...                                                   
  Updating `C:\Users\Jeremy\.julia\environments\v1.0\Project.toml`               
 [no changes]                                                                    
  Updating `C:\Users\Jeremy\.julia\environments\v1.0\Manifest.toml`              
 [no changes]                                                                    
  Building skipping building in preview mode                                     
โ”€โ”€โ”€โ”€โ”€ Preview mode โ”€โ”€โ”€โ”€โ”€                                                         

(v1.0) pkg> up                                                                   
  Updating registry at `C:\Users\Jeremy\.julia\registries\General`               
  Updating git-repo `https://github.com/JuliaRegistries/General.git`             
 Resolving package versions...                                                   
 Installed PyPlot โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v2.7.0                                              
 Installed SoftGlobalScope โ”€ v1.0.9                                              
 Installed Tokenize โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.3                                              
 Installed IJulia โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.15.2                                             
 Installed StaticArrays โ”€โ”€โ”€โ”€ v0.10.2                                             
 Installed StatsBase โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.27.0                                             
 Installed Atom โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.7.12                                             
 Installed OrdinaryDiffEq โ”€โ”€ v4.19.0                                             
 Installed CodeTools โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.6.4                                              
 Installed DataStructures โ”€โ”€ v0.15.0                                             
 Installed WebSockets โ”€โ”€โ”€โ”€โ”€โ”€ v1.2.0                                              
 Installed Cassette โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.1                                              
  Updating `C:\Users\Jeremy\.julia\environments\v1.0\Project.toml`               
  [c52e3926] โ†‘ Atom v0.7.11 โ‡’ v0.7.12                                            
  [7073ff75] โ†‘ IJulia v1.14.1 โ‡’ v1.15.2                                          
  [1dea7af3] โ†‘ OrdinaryDiffEq v4.18.3 โ‡’ v4.19.0                                  
  [d330b81b] โ†‘ PyPlot v2.6.3 โ‡’ v2.7.0                                            
  Updating `C:\Users\Jeremy\.julia\environments\v1.0\Manifest.toml`              
  [c52e3926] โ†‘ Atom v0.7.11 โ‡’ v0.7.12                                            
  [7057c7e9] โ†‘ Cassette v0.1.4 โ‡’ v0.2.1                                          
  [53a63b46] โ†‘ CodeTools v0.6.3 โ‡’ v0.6.4                                         
  [864edb3b] โ†‘ DataStructures v0.14.0 โ‡’ v0.15.0                                  
  [7073ff75] โ†‘ IJulia v1.14.1 โ‡’ v1.15.2                                          
  [1dea7af3] โ†‘ OrdinaryDiffEq v4.18.3 โ‡’ v4.19.0                                  
  [d330b81b] โ†‘ PyPlot v2.6.3 โ‡’ v2.7.0                                            
  [b85f4697] โ†‘ SoftGlobalScope v1.0.8 โ‡’ v1.0.9                                   
  [90137ffa] โ†‘ StaticArrays v0.10.0 โ‡’ v0.10.2                                    
  [2913bbd2] โ†‘ StatsBase v0.26.0 โ‡’ v0.27.0                                       
  [0796e94c] โ†‘ Tokenize v0.5.2 โ‡’ v0.5.3                                          
  [104b5d7c] โ†‘ WebSockets v1.1.1 โ‡’ v1.2.0                                        
  Building IJulia โ†’ `C:\Users\Jeremy\.julia\packages\IJulia\GIANC\deps\build.log`
bug

All 3 comments

I think we should probably retire the preview functionality and implement undo instead.

An undo function would definitely be useful, but seems less elegant than a preview function, if used for preview purpose (obviously)

Preview is deleted.

Was this page helpful?
0 / 5 - 0 ratings