Skip to content

Instantly share code, notes, and snippets.

View clhodapp's full-sized avatar

Chris Hodapp clhodapp

  • San Francisco, California
View GitHub Profile
@clhodapp
clhodapp / slick-issue-187
Created July 30, 2013 11:19
Log from issue 187
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.memory.DistributedQueryingTest.test1 started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 2.676s
[info] Test run started
[info] Test com.typesafe.slick.testkit.tests.ReducedTest.testQuery[h2mem] started
*** (s.s.c.FuseComprehensions) select(Path , Ref s2)
*** (s.s.c.FuseComprehensions) select(Path , Path s2.s3)
*** (s.s.c.FuseComprehensions) Checking:
@clhodapp
clhodapp / slick-issue-188
Created July 30, 2013 11:49
Log from issue 188
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.lifted.SchemaSupportTest.testSchemaSupport started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.653s
[info] Test run started
[Using test database jdbc:h2:mem:test1]
[info] Test scala.slick.test.direct.QueryableTest.test[0] started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 6.958s
[info] Test run started
@clhodapp
clhodapp / slick-issue-189
Created July 30, 2013 15:26
Log from issue 189
[info] Loading project definition from /Users/clhodapp/gsoc/git/slick/project
[info] Set current project to root (in build file:/Users/clhodapp/gsoc/git/slick/)
[info] Test run started
[info] Test scala.slick.test.lifted.TablesInObjectTest.test1 started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.587s
[info] Test run started
[info] Test scala.slick.test.lifted.SchemaSupportTest.testSchemaSupport started
[info] Test run finished: 0 failed, 0 ignored, 1 total, 0.071s
[info] Test run started
[Using test database jdbc:h2:mem:test1]
[info] Loading global plugins from /Users/clhodapp/.sbt/0.13/plugins
[info] Set current project to tmp (in build file:/Users/clhodapp/tmp/)
> set libraryDependencies += "junit" % "junit" % "latest.release"
[info] Defining *:libraryDependencies
[info] The new value will be used by *:allDependencies
[info] Reapplying settings...
[info] Set current project to tmp (in build file:/Users/clhodapp/tmp/)
> console
[info] Updating {file:/Users/clhodapp/tmp/}tmp...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
import reflect.runtime.universe._
import reflect.runtime.currentMirror
import scala.tools.reflect.ToolBox
class Demo[T: TypeTag] {
def runTest(): Any = {
val tb = currentMirror.mkToolBox()
val companion = typeOf[T].typeSymbol.companion
tb.eval(q"$companion.test")
Welcome to Scala 2.12.0-M3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45).
Type in expressions for evaluation. Or try :help.
scala> :paste
// Entering paste mode (ctrl-D to finish)
trait Foo[A]
object Foo {
@annotation.implicitAmbiguous("Custom ambiguous message")
implicit def a = new Foo[String] { }
Welcome to Scala 2.12.0-M3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45).
Type in expressions for evaluation. Or try :help.
scala> :paste
// Entering paste mode (ctrl-D to finish)
trait Foo[A]
object Foo {
@annotation.implicitAmbiguous("Custom ambiguous message")
implicit val a = new Foo[String] { }
def foo = """hello
there
chris"""
$ scala -language:_
Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_45).
Type in expressions for evaluation. Or try :help.
scala> import reflect.macros.whitebox.Context
import reflect.macros.whitebox.Context
scala> def idImpl(c: Context)(t: c.Tree): c.Tree = t
idImpl: (c: scala.reflect.macros.whitebox.Context)(t: c.Tree)c.Tree
@clhodapp
clhodapp / affirmation
Created October 28, 2016 07:06
MuleSoft Contributor Agreement Acceptance by Chris Hodapp
I, Chris Hodapp, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Oct 28 2016 00:07:21 GMT-0700 (PDT)