This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tools/c-analyzer/check-c-globals.py run throw exception err
Type: crash Stage: resolved
Components: Demos and Tools Versions: Python 3.10
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: JunyiXie, eric.snow
Priority: normal Keywords:

Created on 2021-03-23 04:04 by JunyiXie, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg389370 - (view) Author: junyixie (JunyiXie) * Date: 2021-03-23 04:04
how to use Tools/c-analyzer/check-c-globals.py? 
in readme, 
python3 Tools/c-analyzer/check-c-globals.py

/Users/xiejunyi/cpython/Tools/c-analyzer/c_common/tables.py:236: FutureWarning: Possible nested set at position 12
  _COLSPEC_RE = re.compile(textwrap.dedent(r'''
Traceback (most recent call last):
  File "Tools/c-analyzer/check-c-globals.py", line 33, in <module>
    (cmd, cmd_kwargs, verbosity, traceback_cm) = parse_args()
  File "Tools/c-analyzer/check-c-globals.py", line 16, in parse_args
    _cli_check(parser, checks='<globals>'),
  File "/Users/xiejunyi/cpython/Tools/c-analyzer/cpython/__main__.py", line 119, in _cli_check
    return c_analyzer._cli_check(parser, CHECKS, **kwargs, **FILES_KWARGS)
TypeError: _cli_check() got multiple values for argument 'checks'
msg389381 - (view) Author: junyixie (JunyiXie) * Date: 2021-03-23 10:22
found in must-reslove.sh
function run_capi() {
    ./python Tools/c-analyzer/c-analyzer.py capi \
        --no-progress \
        --group-by kind \
        --func --inline --macro \
        --no-show-empty \
        --ignore '<must-resolve.ignored>' \
        $@
}
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87767
2021-03-23 10:22:43JunyiXiesetstatus: open -> closed
resolution: not a bug
messages: + msg389381

stage: resolved
2021-03-23 07:44:42ammar2setnosy: + eric.snow
2021-03-23 04:04:11JunyiXiecreate