Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception during macro expansion #575

henridwyer opened this issue Mar 10, 2017 · 3 comments

Exception during macro expansion #575

henridwyer opened this issue Mar 10, 2017 · 3 comments


Copy link

henridwyer commented Mar 10, 2017

Scala 2.12.1
Ammonite 0.8.2

When trying to use google sheets java api to modify google sheets I get the following error:

import $ivy.``

val httpTransport = GoogleNetHttpTransport.newTrustedTransport()
val JSON_FACTORY = JacksonFactory.getDefaultInstance()

val sheets = new Sheets(httpTransport, JSON_FACTORY, null)
sheets.spreadsheets exception during macro expansion:
java.lang.AssertionError: assertion failed: mkAttributedQualifier(, <none>)
	at scala.reflect.internal.TreeGen.mkAttributedQualifier(TreeGen.scala:86)
	at scala.reflect.internal.TreeGen.mkAttributedQualifier(TreeGen.scala:62)
	at scala.reflect.internal.TreeGen.mkAttributedRef(TreeGen.scala:146)
	at scala.reflect.internal.Internals$$anon$4.mkAttributedRef(Internals.scala:135)
	at scala.reflect.internal.Internals$$anon$4.mkAttributedRef(Internals.scala:132)
	at derive.Derive.companionTree(Derive.scala:416)
	at derive.Derive.getArgSyms(Derive.scala:387)
	at derive.Derive.onFail$1(Derive.scala:155)
	at derive.Derive.$anonfun$deriveType$5(Derive.scala:212)
	at derive.Derive$$Lambda$1797/1086491405.apply(Unknown Source)
	at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:79)
	at derive.Derive.rec$1(Derive.scala:185)
	at derive.Derive.deriveType(Derive.scala:230)
	at derive.Derive.derive(Derive.scala:60)
	at pprint.Internals$LowerPriPPrint$.liftedTree1$1(PPrint.scala:408)
	at pprint.Internals$LowerPriPPrint$.FinalRepr(PPrint.scala:408)

            .print(res7, res7, "res7", _root_.scala.None)
Compilation Failed

This might be a duplicate of #455

Any idea how to work around this?

Copy link

lihaoyi commented May 17, 2017

Fixed in 2d78e1f

@lihaoyi lihaoyi closed this as completed May 17, 2017
Copy link

lihaoyi commented May 21, 2017

Copy link

@lihaoyi thanks this works now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants