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

The "module" function defined in R initialization script hangs forever when loading a module that does not exist #542

Closed
fplazaonate opened this issue Sep 9, 2024 · 2 comments
Labels
Milestone

Comments

@fplazaonate
Copy link

To Reproduce

Steps to reproduce the behavior:

  1. Open an R interpreter (version 4.4.1)
  2. Run the following commands
source('/usr/share/modules/init/r.R')
module('load toto')
@fplazaonate fplazaonate added the bug label Sep 9, 2024
@fplazaonate fplazaonate changed the title The "module" function defined in R initialization script hangs forever when loading a module that does not exists The "module" function defined in R initialization script hangs forever when loading a module that does not exist Sep 9, 2024
@xdelaruelle
Copy link
Collaborator

I am able to reproduce this issue on my side.

It looks like there is a wrong interaction with the output pager. I will investigate.

In the mean time, you may disable the pager prior running R:

$ module config pager cat

@xdelaruelle xdelaruelle added this to the 5.5.0 milestone Sep 22, 2024
@xdelaruelle
Copy link
Collaborator

Issue occurs when stderr content is sent through the configured pager. This issue was not there on R 4.4.3. So a change introduced on R between versions 4.4.3 and 4.4.1 makes this issue appear.

Anyway, it seems more caution not to use pager when running modulecmd.tcl for script language. So I will disable pager when modulecmd.tcl is run for python, perl, ruby, tcl, cmake, r and lisp.

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

No branches or pull requests

2 participants