hpcugent / Lmod-UGent

spec files of Lmod for UGent-HPC
8 stars 7 forks source link

tab completion on 'ml use' doesn't work #5

Closed boegel closed 7 years ago

boegel commented 7 years ago

This is the result of ml use /us<tab>:

$ ml use /user-bash: _filedir: command not found

I guess we're missing the bash-completion.noarch RPM?

See also https://sourceforge.net/p/lmod/mailman/message/32849535/

wpoely86 commented 7 years ago

Yes, the issue is that it uses a helper function that's only defined when the bash-completion.noarch rpm is installed. So either remove that call or install the helper function.

boegel commented 7 years ago

@wpoely86 or only use the function if it's available?

boegel commented 7 years ago

see also https://github.com/TACC/Lmod/issues/86, may get fixed via https://github.com/TACC/Lmod/pull/157

rtmclay commented 7 years ago

Yes. This is the same issue as #86 and is fixed with #157

boegel commented 7 years ago

Lmod 6.5.5 indeed fixes the _filedir error being thrown, and makes tab completion for ml use work on paths. It doesn't work on environment variables though, would be nice if that worked too... See also https://github.com/TACC/Lmod/issues/86#issuecomment-243993399