{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/6945","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/6945/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/6945/comments","events_url":"https://api.github.com/repos/conda/conda/issues/6945/events","html_url":"https://github.com/conda/conda/issues/6945","id":300109509,"number":6945,"title":"Excessive INFO output on activate/deactivate","user":{"login":"oscarbranson","id":3931960,"avatar_url":"https://avatars1.githubusercontent.com/u/3931960?v=4","gravatar_id":"","url":"https://api.github.com/users/oscarbranson","html_url":"https://github.com/oscarbranson","followers_url":"https://api.github.com/users/oscarbranson/followers","following_url":"https://api.github.com/users/oscarbranson/following{/other_user}","gists_url":"https://api.github.com/users/oscarbranson/gists{/gist_id}","starred_url":"https://api.github.com/users/oscarbranson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscarbranson/subscriptions","organizations_url":"https://api.github.com/users/oscarbranson/orgs","repos_url":"https://api.github.com/users/oscarbranson/repos","events_url":"https://api.github.com/users/oscarbranson/events{/privacy}","received_events_url":"https://api.github.com/users/oscarbranson/received_events","type":"User","site_admin":false},"labels":[{"id":360414999,"url":"https://api.github.com/repos/conda/conda/labels/source:community","name":"source:community","color":"c2e0c6","default":false},{"id":865679648,"url":"https://api.github.com/repos/conda/conda/labels/tag:shell","name":"tag:shell","color":"f4c5f9","default":false},{"id":16544532,"url":"https://api.github.com/repos/conda/conda/labels/type:feature","name":"type:feature","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-02-26T04:57:18Z","updated_at":"2018-04-22T00:15:36Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a...**\r\n  - [X] bug report\r\n  - [X] feature request\r\n\r\n\r\n## Current Behavior\r\nAfter upgrading to `conda 4.4.7` on Linux, there is excessive `INFO` output to terminal when using `source activate`/`deactivate`.\r\n\r\nOutput is generated by:\r\n- `L151-152:` miniconda3/pkgs/gcc_linux-64-7.2.0-25/etc/conda/activate.d/activate-gcc_linux-64.sh\r\n- `L109-110:` miniconda3/pkgs/binutils_linux-64-7.2.0-25/etc/conda/activate.d/activate-binutils_linux-64.sh\r\n- `L114-115:` miniconda3/pkgs/gxx_linux-64-7.2.0-25/etc/conda/activate.d/activate-gxx_linux-64.sh\r\n\r\n\r\n### Steps to Reproduce\r\nUse `source activate env` or `source deactivate`. Output of `source activate env`:\r\n```\r\nINFO: activate-gcc_linux-64.sh made the following environmental changes:\r\n+CC=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-cc\r\n+CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe\r\n+CPPFLAGS=-DNDEBUG -D_FORTIFY_SOURCE=2 -O2\r\n+CPP=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-cpp\r\n+DEBUG_CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe\r\n+DEBUG_CPPFLAGS=-D_DEBUG -D_FORTIFY_SOURCE=2 -Og\r\n+GCC_AR=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-gcc-ar\r\n+GCC=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-gcc\r\n+GCC_NM=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-gcc-nm\r\n+GCC_RANLIB=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-gcc-ranlib\r\n+HOST=x86_64-conda_cos6-linux-gnu\r\n+LDFLAGS=-Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now\r\n+_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_x86_64_conda_cos6_linux_gnu\r\n\r\nINFO: activate-binutils_linux-64.sh made the following environmental changes:\r\n+ADDR2LINE=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-addr2line\r\n+AR=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-ar\r\n+AS=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-as\r\n+CXXFILT=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-c++filt\r\n+ELFEDIT=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-elfedit\r\n+GPROF=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-gprof\r\n+LD_GOLD=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-ld.gold\r\n+LD=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-ld\r\n+NM=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-nm\r\n+OBJCOPY=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-objcopy\r\n+OBJDUMP=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-objdump\r\n+RANLIB=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-ranlib\r\n+READELF=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-readelf\r\n+SIZE=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-size\r\n+STRINGS=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-strings\r\n+STRIP=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-strip\r\n\r\nINFO: activate-gxx_linux-64.sh made the following environmental changes:\r\n+CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe\r\n+CXX=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-c++\r\n+DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -pipe\r\n+GXX=[miniconda/path]/envs/env/bin/x86_64-conda_cos6-linux-gnu-g++\r\n```\r\n\r\n\r\n## Expected Behavior\r\nI don't need this information *every* time I use `activate` or `deactivate`. This output should be optional, rather than default behaviour?\r\n\r\nTemporary workaround by commenting out the offending lines, but this isn't very satisfactory.\r\n\r\n\r\n## Environment Information\r\n<details open><summary><code>`conda info`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda info' -->\r\n\r\n```\r\n     active environment : None\r\n            shell level : 0\r\n       user config file : /home/[user]/.condarc\r\n populated config files : \r\n          conda version : 4.4.7\r\n    conda-build version : not installed\r\n         python version : 3.6.4.final.0\r\n       base environment : /home/[user]/miniconda3  (writable)\r\n           channel URLs : https://repo.continuum.io/pkgs/main/linux-64\r\n                          https://repo.continuum.io/pkgs/main/noarch\r\n                          https://repo.continuum.io/pkgs/free/linux-64\r\n                          https://repo.continuum.io/pkgs/free/noarch\r\n                          https://repo.continuum.io/pkgs/r/linux-64\r\n                          https://repo.continuum.io/pkgs/r/noarch\r\n                          https://repo.continuum.io/pkgs/pro/linux-64\r\n                          https://repo.continuum.io/pkgs/pro/noarch\r\n          package cache : /home/[user]/miniconda3/pkgs\r\n                          /home/[user]/.conda/pkgs\r\n       envs directories : /home/[user]/miniconda3/envs\r\n                          /home/[user]/.conda/envs\r\n               platform : linux-64\r\n             user-agent : conda/4.4.7 requests/2.18.4 CPython/3.6.4 Linux/4.15.3-1-ARCH arch/rolling glibc/2.26\r\n                UID:GID : 1000:100\r\n             netrc file : None\r\n           offline mode : False\r\n\r\n\r\n```\r\n</p></details>\r\n\r\n\r\n<details open><summary><code>`conda config --show-sources`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda config --show-sources' -->\r\n\r\n```\r\n[no output]\r\n```\r\n</p></details>\r\n\r\n\r\n<details><summary><code>`conda list --show-channel-urls`</code></summary><p>\r\n<!-- between the ticks below, paste the output of 'conda list --show-channel-urls' -->\r\n\r\n```\r\n[no output]\r\n```\r\n</p></details>\r\n"},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/383343062","html_url":"https://github.com/conda/conda/issues/6945#issuecomment-383343062","issue_url":"https://api.github.com/repos/conda/conda/issues/6945","id":383343062,"user":{"login":"fperez","id":57394,"avatar_url":"https://avatars1.githubusercontent.com/u/57394?v=4","gravatar_id":"","url":"https://api.github.com/users/fperez","html_url":"https://github.com/fperez","followers_url":"https://api.github.com/users/fperez/followers","following_url":"https://api.github.com/users/fperez/following{/other_user}","gists_url":"https://api.github.com/users/fperez/gists{/gist_id}","starred_url":"https://api.github.com/users/fperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fperez/subscriptions","organizations_url":"https://api.github.com/users/fperez/orgs","repos_url":"https://api.github.com/users/fperez/repos","events_url":"https://api.github.com/users/fperez/events{/privacy}","received_events_url":"https://api.github.com/users/fperez/received_events","type":"User","site_admin":false},"created_at":"2018-04-22T00:15:36Z","updated_at":"2018-04-22T00:15:36Z","author_association":"NONE","body":"Just to add a note that I think this amount of verbose info is causing serious usability issues in every day practice (and it's hitting fairly vanilla use patterns beyond developers, as any installation of the base R package will lead to this).\r\n\r\nThere are really two problems with the current mode:\r\n\r\n- the amount of verbosity is enough to become seriously annoying when switching environments frequently.\r\n\r\n- it's very easy for all this to drown another relevant message, especially since having this much info come out on every activation is basically training my brain to simply ignore *anything* that gets printed.\r\n\r\nAbsent a controllable verbosity flag right now, I think a simple compromise solution could be to print a single line that says:\r\n\r\n```\r\nYour compiler defaults have changed, for more see: /path/to/info/file.txt\r\n```\r\n\r\nA *single* file can be generated on env activation with all this stuff somewhere inside the env. \r\n\r\nI bet this would eliminate the issue for most users, and for anyone who actually needs to read that information, it's actually easier to type\r\n\r\n```\r\ngrep CPPFLAGS  /path/to/info/file.txt\r\n```\r\n\r\nthan to scan in terminal output.\r\n\r\nI hope this is useful - I can't contribute to conda at this time, but I think the above solution could be implemented relativel easily, without needing the system to support a verbosity flag throughout. I had a look at the activate scripts, and it would be a matter of redirecting their diff output to a file. \r\n\r\nHTH!"}}
{"actor":{"display_login":"fperez"}}