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

Display warning message if module to load/unload is already loaded/unloaded #187

Closed
xdelaruelle opened this issue Aug 22, 2018 · 3 comments
Milestone

Comments

@xdelaruelle
Copy link
Member

As described by @mcytu, it would be nice to get a warning message when a module unload does not unload anything because the specified module is not loaded.

Following the same trend, it would also be nice to get this kind of warning when a module load does not load anything as specified module is already loaded.

The idea here is to add a ./configure option, a MODULES_ environment variable and a command-line switch for load, unload and switch commands to control whether or not a warning message should be printed if a module to load or unload is already loaded or unloaded

@wenzler
Copy link

wenzler commented Sep 25, 2018

Sorry, found another difference for non existing modules that might be considered related :)

v3
module rm bla
ERROR: Unable to locate a modulefile for 'bla'

v4
module rm bla
nothing - exit code is also 0

@xdelaruelle
Copy link
Member Author

@wenzler I have just created a dedicated issue for this (#199). Precisely, v3 is silent whereas v4 returns an error when modulefile does not exist

@xdelaruelle xdelaruelle added this to the 4.7 milestone Dec 21, 2020
@xdelaruelle
Copy link
Member Author

Will report informational messages in case the verbosity level is verbose2 or any higher level.

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

No branches or pull requests

2 participants