happy-kitchen-89482
03/07/2017, 2:36 AMwitty-crayon-22786
03/07/2017, 2:37 AMhappy-kitchen-89482
03/07/2017, 2:37 AMwitty-crayon-22786
03/07/2017, 2:37 AMwitty-crayon-22786
03/07/2017, 2:38 AMhappy-kitchen-89482
03/07/2017, 2:38 AMhappy-kitchen-89482
03/07/2017, 2:38 AMwitty-crayon-22786
03/07/2017, 2:38 AMwitty-crayon-22786
03/07/2017, 2:38 AMhappy-kitchen-89482
03/07/2017, 2:39 AMhappy-kitchen-89482
03/07/2017, 2:44 AMhappy-kitchen-89482
03/07/2017, 2:54 AMinvalidate_dependents=True
in a custom taskhappy-kitchen-89482
03/07/2017, 2:54 AMhappy-kitchen-89482
03/07/2017, 2:54 AMhappy-kitchen-89482
03/08/2017, 2:26 AMhappy-kitchen-89482
03/08/2017, 2:26 AMquiet-ice-72984
03/08/2017, 2:30 AMbinary
vs bundle
and the scala compiler. I'm creating an ssh repl which, when I build with binary, can correctly find org.scala-lang.scala-compiler`. Run with java -jar <big binary jar>
.
2017-03-08T02:01:11,480Z INFO [MyScalaSshShell-api] SshCommand - New ssh client connected
[Loaded org.apache.sshd.common.channel.Window$2 from file:/tmp/mitesh/query-api.jar]
[Loaded scala.tools.nsc.interpreter.MemberHandlers from file:/tmp/mitesh/query-api.jar]
[Loaded scala.tools.nsc.interpreter.ReplGlobal from file:/tmp/mitesh/query-api.jar]
However the same code, run with java -jar <bundle jar>
, cant seem to find it.
2017-03-08T02:28:43,492Z ERROR [MyScalaSshShell-api] CrashingThread - Unhandled exception:
scala.reflect.internal.MissingRequirementError: object scala in compiler mirror not found.
scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
It does find some of the classes, but I guess not all of them.
[Loaded scala.tools.nsc.interpreter.ReplGlobal$replPhase$ from file:/tmp/mitesh2/libs/1stparty.co.actioniq.flame-146.jar]
[Loaded scala.tools.nsc.interpreter.jline.InteractiveReader from file:/tmp/mitesh2/libs/1stparty.co.actioniq.flame-146.jar]
quiet-ice-72984
03/08/2017, 2:32 AMscala.tools.nsc.Settings.javacp=true
( to force scala to use the java-classpath). I set the classpath on it too...I figure it must be working because the same code works with binary
. I confirmed that -146.jar
does in fact have the ReplGlobal
class.victorious-potato-60449
03/08/2017, 9:04 AMbinary
goal that I want to be the very last thing to happen. I have registered it successfully on the goal and it is being run, just not at the right time.
As per the here: http://www.pantsbuild.org/dev_tasks.html#task-installation-associate-task-with-goals I understand that you need to have a prepare
method that declares round_manager.require_data()
with a product_type. After looking through the source code I found that this is the class that I want my task to be executed after: https://github.com/pantsbuild/pants/blob/d30cca1e0ecb9cc0e1b7e2cd0ff6e7e077e62a52/contrib/go/src/python/pants/contrib/go/tasks/go_binary_create.py.
However, GoBinaryCreate
doesn’t implement the method product_types
. Am I right then that there is no way for me to tell my task to happen after GoBinaryCreate? I guess I could make a pull request adding the product_types
method, but I would like to know if there is another way before I go that direction. Thanks!fancy-queen-20734
03/08/2017, 4:11 PMfancy-queen-20734
03/08/2017, 4:13 PMproduct_types
to GoBinaryCreate would make sense. Alternatively, I think if you make sure your tasks’ registration is registered after GoBinaryCreate, it will be run after GoBinaryCreate.straight-waiter-86090
03/08/2017, 8:39 PMfancy-queen-20734
03/08/2017, 10:54 PMhappy-kitchen-89482
03/08/2017, 10:55 PMhappy-kitchen-89482
03/08/2017, 10:55 PMrough-dog-96241
03/08/2017, 11:00 PMrough-dog-96241
03/09/2017, 2:20 AMhappy-kitchen-89482
03/09/2017, 3:19 AMplugins
stanza in your pants.inihappy-kitchen-89482
03/09/2017, 3:19 AMplugins: [
'protobuf==3.2.0'
]
happy-kitchen-89482
03/09/2017, 3:19 AM