:wave: Caught something that seemed off while debu...
# development
g
👋 Caught something that seemed off while debugging a branch I was working on, switched to master and noticed it still happening. I’m just getting familiar with
pants
internals so there could be something I’m missing (it doesn’t appear to be breaking anything) but felt worth flagging Running:
Copy code
./pants2 clean-all test tests/python/pants_test/engine:isolated_process
With a debug in
scheduler.py:516
(to inspect
throws
) runs into quite a few on setup, ex:
Copy code
:: ~/Workspace/pants ‹master*› » ./pants2 clean-all test tests/python/pants_test/engine:isolated_process                                                                                                                        127 ↵

10:35:33 00:00 [main]
               (To run a reporting server: ./pants server)
10:35:34 00:01   [setup]
10:35:35 00:02     [parse]> /Users/schmitt/Workspace/pants/src/python/pants/engine/scheduler.py(519)product_request()
-> unique_exceptions = tuple({t.exc for _, t in throws})
(Pdb) throws
(((Specs(dependencies=(SingleAddress(directory=u'', name=u'nailgun-server'),), matcher=SpecsMatcher(tags=(), exclude_patterns=())), <class 'pants.engine.legacy.graph.TransitiveHydratedTargets'>), Throw(exc=ResolveError(u'"nailgun-server" was not found in namespace "". Did you mean one of:\n  :avro-java-runtime\n  :kythe-java-extractor\n  :kythe-java-indexer\n  :scala-js-cli\n  :scala-js-compiler\n  :scala-js-library\n  :scrooge-gen\n  :scrooge-linter',))),)
(Pdb) c
> /Users/schmitt/Workspace/pants/src/python/pants/engine/scheduler.py(519)product_request()
-> unique_exceptions = tuple({t.exc for _, t in throws})
(Pdb) throws
(((Specs(dependencies=(SingleAddress(directory=u'', name=u'benchmark-caliper-0.5'),), matcher=SpecsMatcher(tags=(), exclude_patterns=())), <class 'pants.engine.legacy.graph.TransitiveHydratedTargets'>), Throw(exc=ResolveError(u'"benchmark-caliper-0.5" was not found in namespace "". Did you mean one of:\n  :avro-java-runtime\n  :kythe-java-extractor\n  :kythe-java-indexer\n  :scala-js-cli\n  :scala-js-compiler\n  :scala-js-library\n  :scrooge-gen\n  :scrooge-linter',))),)
(Pdb) c
> /Users/schmitt/Workspace/pants/src/python/pants/engine/scheduler.py(519)product_request()
-> unique_exceptions = tuple({t.exc for _, t in throws})
(Pdb) throws
(((Specs(dependencies=(SingleAddress(directory=u'', name=u'benchmark-java-allocation-instrumenter-2.1'),), matcher=SpecsMatcher(tags=(), exclude_patterns=())), <class 'pants.engine.legacy.graph.TransitiveHydratedTargets'>), Throw(exc=ResolveError(u'"benchmark-java-allocation-instrumenter-2.1" was not found in namespace "". Did you mean one of:\n  :avro-java-runtime\n  :kythe-java-extractor\n  :kythe-java-indexer\n  :scala-js-cli\n  :scala-js-compiler\n  :scala-js-library\n  :scrooge-gen\n  :scrooge-linter',))),)
<quite a few more>