adventurous-art-72916
10/05/2017, 7:44 PMadventurous-art-72916
10/05/2017, 7:45 PMadventurous-art-72916
10/05/2017, 7:45 PMpurple-oil-45048
10/06/2017, 6:35 AMadventurous-art-72916
10/06/2017, 5:12 PMquiet-garden-96241
10/06/2017, 5:36 PM:load script.scala
command after starting a scala repl
At the moment, my steps are:
1) ./pants repl src/::
2) :load script.scala
Has anyone been able to load a script automatically after the repl loads?blue-fish-35856
10/06/2017, 6:41 PMblue-fish-35856
10/06/2017, 6:42 PMblue-fish-35856
10/06/2017, 6:54 PMwide-energy-11069
10/06/2017, 6:54 PM# repl complains if stdin is not a tty
master, slave = pty.openpty()
replProcess = Popen(['./pants', 'repl', ...], stdin=slave, stdout=PIPE, stderr=PIPE)
ttyIn = os.fdopen(master, 'w')
yield (replProcess, ttyIn)
if replProcess.poll() is None:
replProcess.terminate()
replProcess.wait()
blue-fish-35856
10/06/2017, 6:56 PMscala_library(
dependencies=[
],
scalac_plugins=[
'3rdparty/jvm/org/spire-math:kind-projector',
]
)
But I needed to do
scala_library(
dependencies=[
'3rdparty/jvm/org/spire-math:kind-projector',
],
scalac_plugins=[
'kind-projector',
]
)
blue-fish-35856
10/06/2017, 7:16 PMscalac-plugin-dep
. That could definitely use some more clear verbiage. Maybe I’ll make a doc PR sometimeblue-fish-35856
10/06/2017, 7:20 PM~compile
? Like a file watcher that automatically re-runs compile?wide-energy-11069
10/06/2017, 7:22 PMmysterious-farmer-45668
10/06/2017, 7:24 PMwide-energy-11069
10/06/2017, 7:25 PMgit log <target's dir>
is accurate enoughmysterious-farmer-45668
10/06/2017, 7:25 PMaloof-angle-91616
10/06/2017, 8:25 PMcat <(echo ':load script.scala') - | ./pants repl src/::
before. you do have to press ctrl-d or something twice to get out of it, thoughbright-student-36642
10/06/2017, 8:32 PMbright-student-36642
10/06/2017, 8:32 PMwebpack --watch
in conjunction with the pants stuffaloof-angle-91616
10/06/2017, 9:36 PMblue-fish-35856
10/06/2017, 9:55 PMscalac-plugin-dep
aren’t automatically included as plugins, it’s just a bunch of dependencies that are accessible everywhere without adding them to dependencies.
@aloof-angle-91616aloof-angle-91616
10/06/2017, 10:26 PMbulky-motorcycle-41302
10/07/2017, 12:28 AMbulky-motorcycle-41302
10/07/2017, 12:29 AMbulky-motorcycle-41302
10/07/2017, 12:30 AMbulky-motorcycle-41302
10/07/2017, 12:30 AMbright-apartment-76721
10/09/2017, 4:13 PMwitty-crayon-22786
10/09/2017, 4:51 PMneeds-cherrypick