ancient-beard-76775
11/07/2024, 9:17 PM(jvm|scala)_artifacts
answered, but now I'm just trying to run pants check ::
on a project with a single scala file and it just hangs forever saying
Compile src/main/scala/example/Foo.scala with scalac
is there a way to debug what it's doing?broad-processor-92400
11/07/2024, 11:40 PMpkill
or a process manager), then you can start inspecting sandboxes: https://www.pantsbuild.org/prerelease/docs/using-pants/troubleshooting-common-issues#debug-tip-inspect-the-sandbox-with---keep-sandboxes
For instance:
1. pants --keep-sandboxes=on_failure check ::
2. make scalac fail
3. jump into the printed sandbox and start inspecting/editing the __run.sh
script and other contentsancient-beard-76775
11/08/2024, 12:10 AMancient-beard-76775
11/08/2024, 12:14 AMscalac
process running on my machine? I see two nailgun servers and killing one of them did stop the compilation but I don't know where to find the printed sandbox (if there is one)ancient-beard-76775
11/08/2024, 1:03 AMexample-jvm
project works so I've been slowly working toward making my test project look exactly like
what finally fixed the issue is commenting out my [jvm].jdk
setting
[jvm]
jdk = "temurin:1.21"
ancient-beard-76775
11/08/2024, 1:04 AMtemurin:1.11
and temurin:1.17
both work, it's just 1.21
that doesn't 🤔ancient-beard-76775
11/08/2024, 1:05 AMbroad-processor-92400
11/08/2024, 2:22 AMshould I expect to see aAh, usually there's a line like printed by theprocess running on my machine? I see two nailgun servers and killing one of them did stop the compilation but I don't know where to find the printed sandbox (if there is one)scalac
pants ...
invocation:
13:21:12.53 [INFO] Preserving local process execution dir /private/var/folders/sv/vd266m4d4lvctgs2wpnhjs9w0000gn/T/pants-sandbox-Tmvlw7 for <process name>.
But maybe the JVM nailgun stuff behaves differently (I don't use it myself, so am not sure).elegant-florist-94385
11/08/2024, 10:54 AMPreserving local process....
line doesn't seem to always print when using --keep-sandboxes=on_failure
. (The sandbox is still preserved, eg. in /tmp/pants-sandbox-<####>
or something, but it just doesn't print a log to tell you.
Using --keep-sandboxes=always
seems to always log though