bitter-ability-32190
07/22/2022, 6:47 PMwide-midnight-78598
07/22/2022, 8:02 PMwitty-crayon-22786
07/22/2022, 10:15 PMwitty-crayon-22786
07/22/2022, 10:58 PM2.14.0.dev3
! let me know if there is anything that i should wait for.busy-vase-39202
07/25/2022, 4:46 PMpolite-garden-50641
07/25/2022, 7:18 PM./pants filter src/python/pants/backend/python/lint/::
(for example, count-loc also causes this error).
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 }
witty-crayon-22786
07/26/2022, 7:22 PMbitter-ability-32190
07/27/2022, 2:02 PMbitter-ability-32190
07/27/2022, 2:02 PMbusy-vase-39202
07/27/2022, 2:27 PMhappy-kitchen-89482
07/27/2022, 2:34 PMenough-analyst-54434
07/27/2022, 2:46 PMhappy-kitchen-89482
07/27/2022, 2:54 PMhappy-kitchen-89482
07/27/2022, 2:54 PMnarrow-vegetable-37489
07/27/2022, 4:20 PMcareful-address-89803
07/28/2022, 1:03 AMbitter-ability-32190
07/28/2022, 1:59 PMdependencies
of a python_requirement
from a PEX lockfile? I'm trying to debug where a transitive 3rdparty Python dep come in, but Pants can't help me because it stops at surface-level dependenciespolite-garden-50641
07/28/2022, 4:39 PM/usr/bin/cp: cannot stat '.cache/mypy_cache/b965f334ce3fc02912aa7a74077b16748a44e843b35d9f1d89c15db9a9754891/3.7/cache.db': No such file or directory
Success: no issues found in 1157 source files
/usr/bin/mv: cannot move '.tmp_cache/mypy_cache/3.7/cache.db' to '.cache/mypy_cache/b965f334ce3fc02912aa7a74077b16748a44e843b35d9f1d89c15db9a9754891/3.7/cache.db': No such file or directory
also seen it locally (ubuntu/macos) a few times.
just any FYI since nothing is broken.happy-kitchen-89482
07/28/2022, 6:52 PMfast-nail-55400
07/28/2022, 8:23 PMfast-nail-55400
07/28/2022, 8:42 PMjvm-overview.md
into Java and Scala specific pages; and (3) move BSP to its own page. Thoughts?happy-kitchen-89482
07/28/2022, 10:28 PMbitter-ability-32190
07/29/2022, 3:20 PMlang-foo
labels to backend-foo
on GitHub?
Docker isn't techincally a language, but I want to make a label 🙂polite-garden-50641
07/29/2022, 3:45 PMhelp_formatter_test.py
in order to debug and fix it but pytest doesn't see it for some reason? what am I doing wrong ?bitter-ability-32190
07/29/2022, 6:13 PMancient-vegetable-10556
07/29/2022, 8:15 PMchrisjrn@chrisjrns-MacBook-Pro example-python % _PANTS_VERSION_OVERRIDE="2.14.0.dev3" ../pants/dist/src.python.pants.bin/pants_oxidized_experimental/aarch64-apple-darwin/debug/install/pants_oxidized_experimental --no-pantsd help
Pants 2.14.0.dev3
Usage:
./pants [option ...] [goal ...] [file/target ...] Attempt the specified goals on the specified files/targets.
./pants help Display this usage message.
… etc etc etc etc …
… etc etc etc etc …
Download at <https://pypi.org/pypi/pantsbuild.pants/2.14.0.dev3>
careful-address-89803
08/01/2022, 5:04 AM[testenv:radon]
deps = radon
commands =
radon cc -s --total-average --no-assert -nb src/
I thought it would be great if it were that easy to create a linter in Pants. So I hacked together a prototype here, and it looks like it "works" and all you need for a linter is:
def rules():
radoncc = make_linter(
"radoncc",
"radon",
"radon==5.1.0",
["cc", "-s", "--total-average", "--no-assert", "-n"],
)
return radoncc.rules()
2 questions:
1. is this a horrible hack that will explode? (I know it's a horrible hack that needs a lot of cleanup)
2. is this (or these sorts of helpers) something we'd like to include in Pants?wide-midnight-78598
08/01/2022, 5:18 PMcheck
backend and ran into a mild quandry.
I have the following folder structure in most/all of my projects:
mylibrary/include/mylibrary/foo.h
mylibrary/src/foo.c
app/bar.h
app/bar.c
app/main.cpp
Inside of app/main.cpp, I have something like:
#include "mylibrary/foo.h"
#include "bar.h"
As of today's dependency inference, the mylibrary
header may or may not be picked up depending on where the BUILD files are located and how they were generated (e.g. 111, recursive globs, etc). I can design a set of build files to make this pass or fail, or I can modify my header include to make check
pass or fail. If I run tailor
on my sample repos, they'll fail - because the dependency inference can't presume the additional include
folder with no additional information, so they expect the headers to be filename only. If I put a build file with a recursive glob in the "include" folder, it works perfectly.
In CMake (or other tools), it's pretty trivial to provide a list of include directories for compilation, but that doesn't feel very pants-y and almost feels like it's circumventing dep inference and BUILD files.
I'm creating a cc_library
target which will export headers + a shared/static library, but they will still run into the issue of how to lay out BUILD files in order to ensure the namespace is what I want. I, personally, have no problem creating BUILD files to that effect, but again, not very Pants-y, or automatic.
Thoughts?busy-vase-39202
08/01/2022, 8:06 PM