Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Compilation error details #65

Open
RadoBuransky opened this issue Nov 20, 2014 · 3 comments
Open

Compilation error details #65

RadoBuransky opened this issue Nov 20, 2014 · 3 comments

Comments

@RadoBuransky
Copy link

I use Zinc from Gradle to compile a Scala project. Compilation fails with "implicit numeric widening" error, but I don't see any information where is the error located. I mean there is no file name, line number, ...

I run "gradle -d compileTestScala" and I get following output:

10:39:58.372 [ERROR] [system.err] 10:39:58.372 [ERROR] [org.gradle.api.internal.tasks.scala.jdk6.ZincScalaCompiler] implicit numeric widening
10:39:59.468 [QUIET] [system.out] 10:39:59.468 [DEBUG] [org.gradle.api.internal.tasks.scala.jdk6.ZincScalaCompiler] Compilation failed (CompilerInterface)
10:39:59.471 [QUIET] [system.out] 10:39:59.469 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonServer] Exception executing org.gradle.api.intaCompiler@74f7baf5 in compiler daemon: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed.
10:39:59.470 [ERROR] [system.err] 10:39:59.468 [ERROR] [org.gradle.api.internal.tasks.scala.jdk6.ZincScalaCompiler] one error found
10:39:59.496 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':compileTestScala'
10:39:59.499 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :compileTestScala FAILED
@RadoBuransky
Copy link
Author

I have found out that it is caused by this line:

assert(List(1).length == 1)

assert is a macro provided by ScalaTest (org.scalatest.Assertions).

@RadoBuransky
Copy link
Author

I've created an issue in ScalaTest as well, if you're interested:
scalatest/scalatest#445

@gkossakowski
Copy link
Contributor

Have you tried running zinc in debug mode? That probably should show you more details.

retronym pushed a commit to retronym/zinc-legacy that referenced this issue Nov 1, 2017
Rebased FPORT: Improvements to ExtractAPI (#2413 & #2414)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants