taucmdr icon indicating copy to clipboard operation
taucmdr copied to clipboard

Support deprecation of attributes and attribute values

Open khsa1 opened this issue 3 years ago • 1 comments

Based on issue #381. We just need to add a deprecated option to the option that has been deprecated/removed. Either a string or a list can be passed in. Then once it has been removed add a second element to the string, i.e.:

ompt_source: { ... 'deprecated': {'download-tr4': '2.29.1'}, 'deprecated': {'download-tr4': ['2.29.1']}, 'deprecated': {'download-tr4': ['2.29.1', '']}, 'deprecated': {'download-tr4': ['2.29.1', <removed tau version>]}, ... }

khsa1 avatar May 09 '21 18:05 khsa1

Failing on installation with:

[TAU] An unexpected IndexError exception was raised:
[TAU] 
[TAU] string index out of range
[TAU] 
[TAU] Traceback (most recent call last):
[TAU]   File 
[TAU]     "/home/runner/taucmdr/system/../packages/taucmdr/cf/software/tau_installation.py",
[TAU]      line 993, in install
[TAU]     self.tau_version = self.get_version(os.path.join(self.install_prefix, 
[TAU]     'include/TAU.h.default'))
[TAU] TypeError: get_version() takes 1 positional argument but 2 were given
[TAU] 
[TAU] During handling of the above exception, another exception occurred:
[TAU] 
[TAU] Traceback (most recent call last):
[TAU]   File "/home/runner/taucmdr/system/configure", line 216, in <module>
[TAU]     sys.exit(main(sys.argv[1:]))
[TAU]   File "/home/runner/taucmdr/system/configure", line 203, in main
[TAU]     tau_prefix = _configure_minimal(args)
[TAU]   File "/home/runner/taucmdr/system/configure", line 174, in 
[TAU]     _configure_minimal
[TAU]     tau.install()
[TAU]   File 
[TAU]     "/home/runner/taucmdr/system/../packages/taucmdr/cf/software/tau_installation.py",
[TAU]      line 999, in install
[TAU]     if not all([os.path.exists(path[1]) for path in err.args[0]]):
[TAU]   File 
[TAU]     "/home/runner/taucmdr/system/../packages/taucmdr/cf/software/tau_installation.py",
[TAU]      line 999, in <listcomp>
[TAU]     if not all([os.path.exists(path[1]) for path in err.args[0]]):
[TAU] IndexError: string index out of range
[TAU] 
[TAU] This is a bug in TAU Commander.
[TAU] Please send '/home/runner/.local/taucmdr/debug_log' to 
[TAU]     <[email protected]> for assistance.
[TAU] 
[TAU] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
make: *** [install] Error 156
Makefile:178: recipe for target 'install' failed

debugging now.

zbeekman avatar Aug 17 '21 13:08 zbeekman