These are some of the weird cases I encountered for suzaku-io/boopickle#21.
Full repo is here https://github.com/steinybot/bug-reports/tree/boopickle/diverging-implicits.
Something smells fishy...
| package errors | |
| import scala.concurrent.{ExecutionContext, Future} | |
| import scala.language.{implicitConversions, reflectiveCalls} | |
| import scala.scalajs.js | |
| object Errors { | |
| def mapJsError( | |
| message: String, |
These are some of the weird cases I encountered for suzaku-io/boopickle#21.
Full repo is here https://github.com/steinybot/bug-reports/tree/boopickle/diverging-implicits.
Something smells fishy...
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| REPEATS=100 | |
| OUTPUT_FILE='results.csv' | |
| run_tests() { | |
| echo "Benchmarking ${COMMAND[@]}" |
| import pulumi_aws as aws | |
| import ssh | |
| temporary_key = ssh.GenerateSSHKey( | |
| 'GeneratedTemporaryPlatformSSHKey' | |
| ) | |
| temporary_key_pair = aws.ec2.KeyPair( | |
| 'TemporaryPlatformSSHKey', |
| temporary_key = ssh.GenerateSSHKey( | |
| 'GeneratedTemporaryPlatformSSHKey' | |
| ) | |
| platform_connection = ssh.ConnectionInputs( | |
| host=platform_record.name, | |
| username='ec2-user', | |
| private_key=temporary_key.private_key, | |
| private_key_passphrase=temporary_key.passphrase | |
| ) |
| import eu.timepit.refined.api.{Refined, RefinedType, RefType, Validate} | |
| import scala.reflect.macros.blackbox | |
| final case class RefinedBoxed[FTP](value: FTP) { | |
| override def toString: String = value.toString | |
| } | |
| object RefinedBoxed { |
| import play.api.libs.functional._ | |
| import play.api.libs.json.Reads._ | |
| import play.api.libs.json._ | |
| import scala.collection.GenTraversableOnce | |
| trait ReadOps { | |
| def updateFieldValues[A <: JsValue](reads: Reads[A]): Reads[JsObject] = { | |
| of[JsObject].flatMap { obj => |
How to debug Akka Streams:
akka.stream.impl.PhasedFusingActorMaterializer#materialize where it has the built in printing.println("\n\nTraversal:")
TraversalBuilder.printTraversal(current);
println("\nWiring:")
TraversalBuilder.printWiring(current);First set the sources to a single file
sbt> set `integration-tests`/Test/sources ~= (_.filter(_.name == "UploadsControllerSpec.scala"))
Then enable implicit logging
sbt> set `integration-tests`/scalacOptions += "-Xlog-implicits"