https://pantsbuild.org/ logo
#development
Title
# development
p

polite-garden-50641

07/25/2022, 7:18 PM
Getting a weird error on pants latest master branch when running
./pants filter src/python/pants/backend/python/lint/::
(for example, count-loc also causes this error).
Copy code
Exception: Could not identify a process to backtrack to for: Missing digest: Could not walk unknown directory at "pants_plugins.pex/.deps": Was not present in the local store: Digest { hash: Fingerprint<e65d4afa767c4c7fdf67e21c2fe4e316c27575497a10f8d2d33a2798f7277750>, size_bytes: 1113 }
full stack:
Copy code
~/projects/pants2 (master)$ ./pants filter src/python/pants/backend/python/lint/::
19:17:11.20 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
  in pants.init.plugin_resolver.resolve_plugins
  in pants.backend.python.util_rules.pex.create_venv_pex (pants_plugins.pex)
Traceback (no traceback):
  <pants native internals>
Exception: Could not identify a process to backtrack to for: Missing digest: Could not walk unknown directory at "pants_plugins.pex/.deps": Was not present in the local store: Digest { hash: Fingerprint<e65d4afa767c4c7fdf67e21c2fe4e316c27575497a10f8d2d33a2798f7277750>, size_bytes: 1113 }
Traceback (most recent call last):
  File "/data/home/asher/projects/pants2/src/python/pants/bin/daemon_pants_runner.py", line 130, in single_daemonized_run
    scheduler, options_initializer = self._core.prepare(options_bootstrapper, complete_env)
  File "/data/home/asher/projects/pants2/src/python/pants/pantsd/pants_daemon_core.py", line 129, in prepare
    build_config, options = self._options_initializer.build_config_and_options(
  File "/data/home/asher/projects/pants2/src/python/pants/init/options_initializer.py", line 107, in build_config_and_options
    build_config = _initialize_build_configuration(
  File "/data/home/asher/projects/pants2/src/python/pants/init/options_initializer.py", line 47, in _initialize_build_configuration
    working_set = plugin_resolver.resolve(options_bootstrapper, env)
  File "/data/home/asher/projects/pants2/src/python/pants/init/plugin_resolver.py", line 131, in resolve
    for resolved_plugin_location in self._resolve_plugins(
  File "/data/home/asher/projects/pants2/src/python/pants/init/plugin_resolver.py", line 157, in _resolve_plugins
    session.product_request(ResolvedPluginDistributions, [request])[0],
  File "/data/home/asher/projects/pants2/src/python/pants/engine/internals/scheduler.py", line 577, in product_request
    return self.execute(request)
  File "/data/home/asher/projects/pants2/src/python/pants/engine/internals/scheduler.py", line 521, in execute
    self._raise_on_error([t for _, t in throws])
  File "/data/home/asher/projects/pants2/src/python/pants/engine/internals/scheduler.py", line 498, in _raise_on_error
    raise ExecutionError(
pants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:

Engine traceback:
  in select
  in pants.init.plugin_resolver.resolve_plugins
  in pants.backend.python.util_rules.pex.create_venv_pex (pants_plugins.pex)
Traceback (no traceback):
  <pants native internals>
Exception: Could not identify a process to backtrack to for: Missing digest: Could not walk unknown directory at "pants_plugins.pex/.deps": Was not present in the local store: Digest { hash: Fingerprint<e65d4afa767c4c7fdf67e21c2fe4e316c27575497a10f8d2d33a2798f7277750>, size_bytes: 1113 }

Use -ldebug for more logs.
See <https://www.pantsbuild.org/v2.14/docs/troubleshooting> for common issues.
Consider reaching out for help: <https://www.pantsbuild.org/v2.14/docs/getting-help>
not a blocker or an issue for me. just a heads up.
this is on ubuntu. on macos (m1) I get:
Copy code
❯ ./pants filter src/python/pants/backend/python/lint/::
15:20:46.12 [INFO] Initializing scheduler...
15:20:46.45 [INFO] Scheduler initialized.
15:20:46.78 [ERROR] 'filter'
 ~/projects/pants  cosmo 
🤷‍♂️
f

fast-nail-55400

07/25/2022, 8:09 PM
That is from a debug message that Stu added to diagnose lazy fetch issues.
Definitely open an issue
We will need to collect any of that data so he can debug.
p

polite-garden-50641

07/25/2022, 8:48 PM
3 Views