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

warning messages in lmod - unloading non-existent modules #381

Closed
mcytowski opened this issue Sep 3, 2018 · 3 comments
Closed

warning messages in lmod - unloading non-existent modules #381

mcytowski opened this issue Sep 3, 2018 · 3 comments

Comments

@mcytowski
Copy link

Dear Lmod developers,
would you accept a change similar to the one proposed here for Environment Modules: cea-hpc/modules#187
Basically, it would be nice to have a warning message printed out e.g. when a given module does not exist and you are trying to unload it. Or in general: when you are trying to unload a module which is not loaded or load a module which is already loaded.
Kind regards,
Maciej Cytowski

@rtmclay
Copy link
Member

rtmclay commented Sep 11, 2018

I would prefer not to support this feature this way. Lmod already has a tracing feature. I have modified it so that it reports the state of the module Lmod is unloading: active, inactive, non-existant

So if you do:

% module -T unload foo
running: module -T unload foo
  Unloading: foo (state: non-existant) (fn: nil)

I am assuming that you want this feature for debugging modulefiles. In this case this seem reasonable to me. This feature is available in Lmod 7.8.4

@rtmclay
Copy link
Member

rtmclay commented Sep 27, 2018

I am closing this issue since it has been sitting for 16 days.

@rtmclay rtmclay closed this as completed Sep 27, 2018
@mcytowski
Copy link
Author

thanks for explanation and apologies for not replying earlier. And yes, it can be closed.

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

2 participants