where in the code base are `InteractiveProcess` pr...
# development
f
where in the code base are
InteractiveProcess
processes actually spawned?
h
<http://interface.rs|interface.rs>
session_run_interactive_process
f
and would there be an issue if I added append_only_caches support to InteractiveProcess for when run_in_workspace=False ?
(which is where some coursier files are, context is for scala repl)
w
…alllthooough. the JVM to spawn would still be in a named cache.
so yea.
h
also I think I'm really really close to finishing PyO3. Stu helped me this morning to figure out my main blocker, how to port the
with_scheduler
context managers
<http://interface.rs|interface.rs>
is almost green, and then just have to finish
<http://intrinsics.rs|intrinsics.rs>
and
<http://nodes.rs|nodes.rs>
So might be worth waiting before dabbling with that code
f
I’m already dabbling in the InteractiveProcess code.
just a WIP PR. it’ll need to be split any way.
current issue is that the working directory is set to a temp dir under the system tmp dir, but the files are materialized to a tmpdir under .pants.d
w
f
so two tmp dirs, which is weird
(I had to thread run_in_workspace through from ReplRequest)
w
is the initial inference PR landable? that would let others experiment.
but i guess we’re not doing thirdparty inference yet huh
f
wrong thread?
and already landed …
w
oh, whoops. thanks.
yea, there wasn’t a thread for it.
are you starting thirdparty, or should i after lunch?
f
you should given what I replied with on toolchain slack
👍 1
https://github.com/pantsbuild/pants/pull/12986 may be of interest for third-party artifact Scala support. That is WIP
scala_artifact
support.
w
thanks, will do!
f
Copy code
tdyas@paradox:~/TC/pants$ ./pants repl --shell=scala testprojects/src/scala::
15:39:34.27 [INFO] Initializing scheduler...
15:39:34.58 [INFO] Scheduler initialized.
15:39:35.56 [INFO] stdout: "SNAPSHOT=\n__cp/__cp/testprojects.src.scala.Adder.scala.jar\n__jdk.sh\n__toolcp/jline-3.19.0.jar\n__toolcp/jna-5.3.1.jar\n__toolcp/scala-compiler-2.13.6.jar\n__toolcp/scala-library-2.13.6.jar\n__toolcp/scala-reflect-2.13.6.jar\ncoursier_post_processing_script.py\ncoursier_wrapper_script.sh\ncs-x86_64-apple-darwin\nnailgun-server-0.9.1.jar"
15:39:35.56 [INFO] stdout: "\n"
15:39:35.59 [INFO] append_only_caches: {CacheName("coursier"): CacheDest(".cache")}
15:39:35.59 [INFO] input_digest=Digest { hash: Fingerprint<981f1b2660d89293aeff2e0ee3c54abe67819776086080d25d001ce50ec7311e>, size_bytes: 661 }
15:39:35.59 [INFO] named_cache_symlinks=[NamedCacheSymlink { src: "/Users/tdyas/.cache/pants/named_caches/coursier", dst: ".cache" }]
15:39:35.59 [INFO] destination (orig)="/tmp/.tmp1mIrF4"
15:39:35.63 [INFO] src="/Users/tdyas/.cache/pants/named_caches/coursier"
15:39:35.63 [INFO] dst="/tmp/.tmp1mIrF4/.cache"
15:39:35.63 [INFO] destination=Some("/tmp/.tmp1mIrF4")
setrlimit to increase file descriptor limit failed, errno 22
Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java 11).
Type in expressions for evaluation. Or try :help.

scala> org.pantsbuild
final package pantsbuild
scala> org.pantsbuild
final package pantsbuild
scala> org.pantsbuild.scala
final package scala
scala> org.pantsbuild.scala.Adder
object Adder
scala> org.pantsbuild.scala.Adder.add(2, 3)
val res7: Integer = 5

scala>
success
❤️ 2
WIP here: https://github.com/pantsbuild/pants/pull/13576. will split it up on Friday once I get back to it.