Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeChecker crahes while searching for the diag-tool #4371

Open
dkrupp opened this issue Oct 21, 2024 · 0 comments
Open

CodeChecker crahes while searching for the diag-tool #4371

dkrupp opened this issue Oct 21, 2024 · 0 comments
Assignees

Comments

@dkrupp
Copy link
Member

dkrupp commented Oct 21, 2024

There should be a normal hard error in this case, not a crash

CodeChecker checkers
WARNING 2024-10-21 16:37] - 'diagtool' can not be found next to the clang binary (/usr/bin/ccache)!
Traceback (most recent call last):
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_common/cli.py", line 208, in main
    sys.exit(args.func(args))
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/cmd/checkers.py", line 607, in main
    __print_checkers(args, cl)
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/cmd/checkers.py", line 475, in __print_checkers
    checker_info = __get_detailed_checker_info(args, cl)
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/cmd/checkers.py", line 228, in __get_detailed_checker_info
    analyzer_config_map = analyzer_types.build_config_handlers(
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/analyzers/analyzer_types.py", line 258, in build_config_handlers
    config_handler = supported_analyzers[ea].construct_config_handler(args)
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/analyzers/clangtidy/analyzer.py", line 691, in construct_config_handler
    checkers = ClangTidy.get_analyzer_checkers()
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/analyzers/clangtidy/analyzer.py", line 289, in get_analyzer_checkers
    for warning in get_warnings())
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/analyzers/clangtidy/analyzer.py", line 151, in get_warnings
    environment = analyzer_context.get_context().get_env_for_bin(diagtool_bin)
  File "/local/workspace/codechecker/build/CodeChecker/lib/python3/codechecker_analyzer/analyzer_context.py", line 207, in get_env_for_bin
    bin_path = Path(binary).resolve()
  File "/usr/lib/python3.8/pathlib.py", line 1042, in __new__
    self = cls._from_parts(args, init=False)
  File "/usr/lib/python3.8/pathlib.py", line 683, in _from_parts
    drv, root, parts = self._parse_args(args)
  File "/usr/lib/python3.8/pathlib.py", line 667, in _parse_args
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
@dkrupp dkrupp added this to the release 6.25.0 milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants