{"id":"cdbfd5bd725b21f1","repo":"BurntSushi/ripgrep","slug":"missingdependency-missing-names","errorCode":null,"errorMessage":"MissingDependency({missing_names})","messagePattern":"MissingDependency\\((.+?)\\)","errorType":"exception","errorClass":"MissingDependencies","httpStatus":null,"severity":"error","filePath":"benchsuite/benchsuite","lineNumber":1033,"sourceCode":"    '''\n    eprint('# %s' % ' '.join(cmd))\n    kwargs['check'] = True\n    return subprocess.run(cmd, *args, **kwargs)\n\n\ndef require(suite_dir, *names):\n    '''\n    Declare a dependency on the given names for a benchmark.\n\n    If any dependency doesn't exist, then fail with an error message.\n    '''\n    errs = []\n    for name in names:\n        fun_name = name.replace('-', '_')\n        if not globals()['has_%s' % fun_name](suite_dir):\n            errs.append(name)\n    if len(errs) > 0:\n        raise MissingDependencies(errs)\n\n\ndef download_linux(suite_dir):\n    'Download and build the Linux kernel.'\n    checkout_dir = path.join(suite_dir, LINUX_DIR)\n    if not os.path.isdir(checkout_dir):\n        # Clone from my fork so that we always get the same corpus *and* still\n        # do a shallow clone. Shallow clones are much much cheaper than full\n        # clones.\n        run_cmd(['git', 'clone', '--depth', '1', LINUX_CLONE, checkout_dir])\n    # We want to build the kernel because the process of building it produces\n    # a lot of junk in the repository that a search tool probably shouldn't\n    # touch.\n    if not os.path.exists(path.join(checkout_dir, 'vmlinux')):\n        eprint('# Building Linux kernel...')\n        run_cmd(['make', 'defconfig'], cwd=checkout_dir)\n        run_cmd(['make', '-j', str(cpu_count())], cwd=checkout_dir)\n","sourceCodeStart":1015,"sourceCodeEnd":1051,"githubUrl":"https://github.com/BurntSushi/ripgrep/blob/3fce3b5bb0236da2df6d99672afb8a719642eca7/benchsuite/benchsuite#L1015-L1051","documentation":"Error \"MissingDependency({missing_names})\" thrown in BurntSushi/ripgrep.","triggerScenarios":"Thrown at benchsuite/benchsuite:1033 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the missing dependencies listed in the error message","Check your package manager or project manifest to add the required dependency"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"3fce3b5bb0236da2df6d99672afb8a719642eca7","analyzedAt":"2026-08-06T01:39:05.073Z","schemaVersion":2}