ancient-vegetable-10556
05/10/2022, 9:13 PMrequest failed: buildTarget/scalacOptions
bsp error: ValueError: File with digest Digest { hash: Fingerprint<08f983b45ef2306eaca35e9280aae2b8691a063e1f2d04b0f5d38f910cda7c19>, size_bytes: 134857 } not found (-32602)
that hash corresponds to com.google.errorprone:error_prone_annotations:2.7.1
./pants check ::
before doing a BSP import though.
Is this intended behaviour, or do we want a BSP import to work cleanly before running pants? (@witty-crayon-22786 @fast-nail-55400)witty-crayon-22786
05/10/2022, 9:17 PMancient-vegetable-10556
05/10/2022, 9:17 PMwitty-crayon-22786
05/10/2022, 11:18 PMancient-vegetable-10556
05/11/2022, 6:58 PMcs java-home
under a sandbox, which appears to put everything under hardlinks.
I could potentially use the “runtime JDK” stuff that I put in place for running deploy JARs, and materialise the JDK into .pants.d/bsp
, but that still seems a bit icky. Thoughts?witty-crayon-22786
05/11/2022, 7:00 PMwhich appears to put everything under hardlinksthat should be fine…? it should be a location under
~/.cache/pants/named_caches
ancient-vegetable-10556
05/11/2022, 7:00 PMwitty-crayon-22786
05/11/2022, 7:01 PMancient-vegetable-10556
05/11/2022, 7:04 PMwitty-crayon-22786
05/11/2022, 7:05 PMancient-vegetable-10556
05/11/2022, 7:05 PMwitty-crayon-22786
05/11/2022, 7:06 PMcs java-home
is giving you the location within the sandbox? to resolve that, you’d need to use the bash equivalent of realpath
to have it resolve through the symlinkancient-vegetable-10556
05/11/2022, 7:06 PMwitty-crayon-22786
05/11/2022, 7:06 PMancient-vegetable-10556
05/11/2022, 7:06 PMwitty-crayon-22786
05/11/2022, 7:06 PM.cache/coursier
directory, and that will be the symlinkancient-vegetable-10556
05/11/2022, 7:07 PMchrisjrn@chrisjrns-MacBook-Pro ~ % readlink /private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/immutable_inputstJXCO1/fbecc478ab0e4f4ccfcd16d6505d2d0c5ea494e2e0a1a1ce5bba5f216597fbbd
chrisjrn@chrisjrns-MacBook-Pro ~ % echo $?
1
witty-crayon-22786
05/11/2022, 7:08 PMancient-vegetable-10556
05/11/2022, 7:08 PMwitty-crayon-22786
05/11/2022, 7:08 PMancient-vegetable-10556
05/11/2022, 7:09 PMwitty-crayon-22786
05/11/2022, 7:09 PMrealpath $(cs java-home)
should do itancient-vegetable-10556
05/11/2022, 7:13 PMrealpath
from the jdk preparation script, and that gives me the cache (I’d been using readlink, which I think needs you to find the specific directory rather than going up the tree itself)witty-crayon-22786
05/11/2022, 7:14 PMancient-vegetable-10556
05/11/2022, 7:14 PMwitty-crayon-22786
05/11/2022, 7:14 PMancient-vegetable-10556
05/11/2022, 7:15 PMwitty-crayon-22786
05/11/2022, 7:15 PMPythonBinary
, you can run python in the sandboxancient-vegetable-10556
05/11/2022, 7:16 PMwitty-crayon-22786
05/11/2022, 8:53 PMancient-vegetable-10556
05/11/2022, 8:53 PMwitty-crayon-22786
05/11/2022, 8:53 PMancient-vegetable-10556
05/11/2022, 8:54 PMwitty-crayon-22786
05/11/2022, 8:54 PMancient-vegetable-10556
05/11/2022, 8:54 PMscripty_friend
and other such nonsense first