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

2.13.1: NoSuchMethodError: scala.tools.nsc.Global.reporter()Lscala/tools/nsc/reporters/Reporter #10

Closed
cosmin33 opened this issue Apr 19, 2020 · 2 comments

Comments

@cosmin33
Copy link

To reproduce:

git clone https://github.com/cosmin33/exo.git
cd exo
sbt ++2.13.1 compile

Produces exception:

[error] java.lang.NoSuchMethodError: scala.tools.nsc.Global.reporter()Lscala/tools/nsc/reporters/Reporter;
[error] pascal.Rewriter$$anon$1.parse(PascalPlugin.scala:40)
[error] pascal.Rewriter$$anon$1.makeTypeParamFromName(PascalPlugin.scala:60)
[error] pascal.Rewriter$$anon$1.typeArgToTypeParam(PascalPlugin.scala:68)
[error] pascal.Rewriter$$anon$1.$anonfun$typeArgToTypeParam$2(PascalPlugin.scala:75)
[error] scala.collection.immutable.List.map(List.scala:219)
[error] pascal.Rewriter$$anon$1.typeArgToTypeParam(PascalPlugin.scala:75)
[error] pascal.Rewriter$$anon$1.$anonfun$polyVal$1(PascalPlugin.scala:95)
[error] scala.collection.immutable.List.map(List.scala:219)
[error] pascal.Rewriter$$anon$1.polyVal(PascalPlugin.scala:95)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:104)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:25)
[error] scala.reflect.api.Trees$Transformer.transformTrees(Trees.scala:2583)
[error] scala.reflect.internal.Trees$Apply.transform(Trees.scala:759)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:104)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:25)
[error] scala.reflect.internal.Trees$ValDef.$anonfun$transform$4(Trees.scala:407)
[error] scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2625)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:24)
[error] scala.reflect.internal.Trees$ValDef.transform(Trees.scala:406)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:104)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:25)
[error] scala.reflect.api.Trees$Transformer.$anonfun$transformStats$1(Trees.scala:2614)
[error] scala.reflect.api.Trees$Transformer.transformStats(Trees.scala:2612)
[error] scala.reflect.internal.Trees$Template.transform(Trees.scala:517)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.$anonfun$transform$1(TypingTransformers.scala:47)
[error] scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2625)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:32)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:104)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:25)
[error] scala.reflect.api.Trees$Transformer.transformTemplate(Trees.scala:2587)
[error] scala.reflect.internal.Trees$ModuleDef.$anonfun$transform$3(Trees.scala:370)
[error] scala.reflect.api.Trees$Transformer.atOwner(Trees.scala:2625)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:37)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:32)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.atOwner(TypingTransformers.scala:24)
[error] scala.reflect.internal.Trees$ModuleDef.transform(Trees.scala:369)
[error] scala.tools.nsc.transform.TypingTransformers$TypingTransformer.transform(TypingTransformers.scala:51)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:104)
[error] pascal.Rewriter$$anon$1.transform(PascalPlugin.scala:25)
...

The same compilation for scala 2.13.0 works.
this looks the same like the issue kindprojector had: typelevel/kind-projector#116

@TomasMikula
Copy link
Owner

Thank you for the report!

Please, try with the new version

addCompilerPlugin("com.github.tomasmikula" % "pascal" % "0.4.0" cross CrossVersion.full)

@cosmin33
Copy link
Author

Thank you for the quick resolve

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

No branches or pull requests

2 participants