Skip to content

Instantly share code, notes, and snippets.

@cosmicexplorer
Last active June 22, 2019 21:52
Show Gist options
  • Save cosmicexplorer/7bd8f6013ccc1e3bb3b0e1f1c01ae058 to your computer and use it in GitHub Desktop.
Save cosmicexplorer/7bd8f6013ccc1e3bb3b0e1f1c01ae058 to your computer and use it in GitHub Desktop.
pants bsp interaction hanging on compile
[bloop-compile]
21:35:30 [DEBUG] pants.java.executor:pid=26932: Executing: /Users/dmcclanahan/Downloads/openjdk1.8.0_202-jvmci-0.59/Contents/Home/bin/java -cp /Users/dmcclanahan/workspace/s3/.pants.d/ng/BloopCompile_bloop_bloop_compile/tmpkGwduV.jar pants.contrib.bloop.compile.PantsCompileMain debug -- macaw.macaw-test.macaw-test macaw.macaw-test.tests macaw.macaw-test.src.test.scala.scala macaw.macaw-test.src.test.thrift.thrift-scala macaw.macaw-test.src.main.scala.scala .pants.d.gen.scrooge.55f6998c5e42.macaw.m.837d4a355d20a4bb.w.macaw-test.src.test.thrift.thrift-scala args={} at cwd=/Users/dmcclanahan/workspace/s3
Starting the bsp launcher for bloop...
A bloop installation has been detected either in the PATH or $HOME/.bloop
Opening a bsp server connection with 'bloop bsp --protocol local --socket /var/folders/_r/gknsp2dd6bs3k1y9s6btxbyc0000gn/T/bsp-launcher8059555547206668069/bsp.socket'...
Waiting 200ms until the bsp connection is up...
Starting thread that pumps stdin and redirects it to the bsp server...
Starting thread that pumps server stdout and redirects it to the client stdout...
[debug] --> {
"method" : "build/initialize",
"params" : {
"displayName" : "pants-bloop-client",
"version" : "1.3.2",
"bspVersion" : "2.0.0-M4",
"rootUri" : "file:///Users/dmcclanahan/workspace/s3/",
"capabilities" : {
"languageIds" : [
"scala",
"java"
]
},
"data" : null
},
"id" : "2",
"jsonrpc" : "2.0"
}
[info] initializeResult: InitializeBuildResult(bloop,1.3.2,2.0.0-M4,BuildServerCapabilities(Some(CompileProvider(List(scala, java))),Some(TestProvider(List(scala, java))),Some(RunProvider(List(scala, java))),Some(true),Some(true),Some(false),Some(false)),None)
[debug] --> {
"method" : "build/initialized",
"params" : {
},
"jsonrpc" : "2.0"
}
[debug] --> {
"method" : "workspace/buildTargets",
"params" : {
},
"id" : "3",
"jsonrpc" : "2.0"
}
[info] matchingTargets: List(.pants.d.gen.scrooge.55f6998c5e42.macaw.m.837d4a355d20a4bb.w.macaw-test.src.test.thrift.thrift-scala, macaw.macaw-test.src.main.scala.scala)
[debug] --> {
"method" : "buildTarget/compile",
"params" : {
"targets" : [
{
"uri" : "file:/Users/dmcclanahan/workspace/s3/?id=.pants.d.gen.scrooge.55f6998c5e42.macaw.m.837d4a355d20a4bb.w.macaw-test.src.test.thrift.thrift-scala"
},
{
"uri" : "file:/Users/dmcclanahan/workspace/s3/?id=macaw.macaw-test.src.main.scala.scala"
}
],
"originId" : null,
"arguments" : null
},
"id" : "4",
"jsonrpc" : "2.0"
}
JvmTop 0.8.0 alpha - 14:48:06, x86_64, 12 cpus, Mac OS X 10.14., load avg 6.21
http://code.google.com/p/jvmtop
Profiling PID 23816: /usr/local/Cellar/bloop/1.3.2/bin/blp-co
80.14% ( 23.64s) scala.runtime.BoxesRunTime.equals2()
4.05% ( 1.19s) bloop.engine.Dag$$$Lambda$1590/172953824.apply()
3.24% ( 0.96s) scala.collection.LinearSeqOptimized.foldLeft()
1.71% ( 0.51s) scala.collection.mutable.HashTable$HashUtils.improve()
1.68% ( 0.50s) scala.collection.SetLike.$anonfun$$plus$plus$1()
1.64% ( 0.48s) scala.collection.immutable.HashSet.$plus()
1.23% ( 0.36s) scala.collection.mutable.HashSet.elemToEntry()
1.07% ( 0.32s) ...la.collection.generic.Subtractable$$Lambda$1593/13871()
0.85% ( 0.25s) scala.collection.TraversableLike.to()
0.67% ( 0.20s) scala.collection.LinearSeqOptimized.foldLeft$()
0.66% ( 0.19s) scala.collection.TraversableOnce.nonEmpty()
0.65% ( 0.19s) scala.collection.mutable.Builder.sizeHint()
0.59% ( 0.17s) scala.collection.mutable.SetBuilder.$plus$eq()
0.47% ( 0.14s) scala.collection.SetLike.$plus$plus()
0.29% ( 0.08s) scala.collection.mutable.HashSet.addEntry()
0.28% ( 0.08s) scala.collection.TraversableOnce.foldLeft()
0.10% ( 0.03s) scala.collection.immutable.$colon$colon.tail()
0.10% ( 0.03s) scala.collection.TraversableOnce.$anonfun$foldLeft$1()
0.10% ( 0.03s) scala.runtime.Statics.anyHash()
0.09% ( 0.03s) scala.collection.generic.Growable.loop$1()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment