Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include values of significant environment vars in versioninfo() #21971

Closed
StefanKarpinski opened this issue May 19, 2017 · 7 comments
Closed

Comments

@StefanKarpinski
Copy link
Member

See e.g. #21958: the output of versioninfo() should include the values of any JULIA_ environment variables that can affect the behavior of the program.

@fredrikekre
Copy link
Member

They are shown with versioninfo(true)

julia> versioninfo(true)
Julia Version 0.6.0-pre.beta.474
Commit b66792a (2017-05-06 15:06 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
  WORD_SIZE: 64
           Ubuntu 16.04.2 LTS
  uname: Linux 4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64
Memory: 15.631458282470703 GB (9217.95703125 MB free)
Uptime: 12011.0 sec
Load Avg:  1.64794921875  1.70947265625  1.57763671875
Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz: 
       speed         user         nice          sys         idle          irq
#1  4060 MHz      80319 s       1097 s      10137 s    1106245 s          0 s
#2  4075 MHz      77647 s        569 s       9945 s    1109202 s          0 s
#3  4037 MHz      76784 s       1102 s      15132 s    1104085 s          0 s
#4  4073 MHz      79492 s        683 s      10715 s    1106339 s          0 s

  BLAS: libopenblas (USE64BITINT NO_AFFINITY HASWELL)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
Environment:
  TERM = xterm-256color
  DEFAULTS_PATH = /usr/share/gconf/gnome.default.path
  PATH = /home/fredrik/anaconda3/bin:/home/fredrik/bin:/home/fredrik/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  MANDATORY_PATH = /usr/share/gconf/gnome.mandatory.path
  HOME = /home/fredrik
  WINDOWPATH = 2
  JULIA_EDITOR = subl

[...]

@musm
Copy link
Contributor

musm commented May 19, 2017

versioninfo(true) almost hangs the repl because it takes so long on my windows machine (It prints out all the packages installed...)

@StefanKarpinski
Copy link
Member Author

I believe that includes the entire environment, which is ok, but we should include Julia-significant environment variables even in versioninfo(). We should probably also switch to more fine-grained keyword-based control over what gets printed.

@fredrikekre
Copy link
Member

It prints out all the packages installed...

This actually surprised me, wasn't expecting package information from versioninfo(). Perhaps remove package information from versioninfo()?

@StefanKarpinski
Copy link
Member Author

We could take it out and put it behind a versioninfo(packages=true) keyword option.

@ararslan
Copy link
Member

Or we could just leave package listing to Pkg.installed() and keep versioninfo for more Julia build-specific stuff.

@fredrikekre
Copy link
Member

Or we could just leave package listing to Pkg.installed() and keep versioninfo for more Julia build-specific stuff.

Yes, I think it makes sense to separate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants