pcdshub / happi

Heuristic Access to Positions of Photon Instruments
https://pcdshub.github.io/happi/master
Other
13 stars 29 forks source link

Silence "complete" output in deactivate script #239

Open klauer opened 2 years ago

klauer commented 2 years ago

When nesting a bash shell in an activated conda environment that includes happi, this deactivate line can cause unwanted warnings to be displayed in the terminal:

https://github.com/pcdshub/happi/blob/8db471ec66123c6fe50995c42846c21b8ad0bbb8/conda-recipe/deactivate.sh#L4

Reference issue: https://github.com/pcdshub/shared-dotfiles/issues/36

Redirecting to /dev/null should be sufficient.

The conda-forge feedstock will need updating as well: https://github.com/conda-forge/happi-feedstock/

klauer commented 2 years ago

I see this on ads-deploy via plcprog-console as well, frustratingly enough when building PLC projects:

/C/miniconda/envs/ads-deploy-2.9.1/etc/conda/deactivate.d/happi.sh: line 4: complete: happi: no completion specification