Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when searching a required module that defines requirement #495

@xdelaruelle

Description

@xdelaruelle

On 5.3.0, an error is obtained when searching for a module defined as requirement with extra specifier mechanism, whereas this module defines a requirement (and is the sole module to define this requirement).

$ module use /path/to/modulefiles
$ cat /path/to/modulefiles/bar/1.0
#%Module
module load foo/1.0
$ module avail require:bar/1.0
ERROR: key "bar/1.0" not known in dictionary
      while executing
  "dict get $::g_scanModuleElt $elt $modspec"
      (procedure "getModMatchingExtraSpec" line 13)
      invoked from within
  "getModMatchingExtraSpec $spec_xt_list"
      (procedure "filterExtraMatchSearch" line 58)
      invoked from within
  "filterExtraMatchSearch $mod found_list versmod_list"
      (procedure "getModules" line 283)
      invoked from within
  "getModules $dir $mod $show_mtime $search_filter $show_filter"
      (procedure "cmdModuleAvail" line 49)
      invoked from within
  "$cmdprocname {*}$cmdopts {*}$args"
      (procedure "module" line 185)
      invoked from within
  "{*}$execcmdlist"
  Please report this issue at https://github.com/cea-hpc/modules/issues

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