Skip to content

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

Closed

Description

@fplazaonate

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')

Activity

  1. 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[/+] on Sep 9, 2024
  2. xdelaruelle commented on Sep 9, 2024

    @xdelaruelle
    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
  3. added this to the 5.5.0 milestone on Sep 22, 2024
  4. xdelaruelle commented on Sep 22, 2024

    @xdelaruelle
    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.

  5. added a commit that references this issue on Sep 24, 2024
    6652070
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions