Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-18993

Unable to build/compile Spark in IntelliJ due to missing Scala deps in spark-tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.3, 2.1.1, 2.2.0
    • Build
    • None

    Description

      After https://github.com/apache/spark/pull/16311 is merged, I am unable to build it in my IntelliJ. Got the following compilation error:

      Error:scalac: error while loading Object, Missing dependency 'object scala in compiler mirror', required by /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/rt.jar(java/lang/Object.class)
      Error:scalac: Error: object scala in compiler mirror not found.
      scala.reflect.internal.MissingRequirementError: object scala in compiler mirror not found.
      	at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:17)
      	at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:18)
      	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:53)
      	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:66)
      	at scala.reflect.internal.Mirrors$RootsBase.getPackage(Mirrors.scala:173)
      	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackage$lzycompute(Definitions.scala:161)
      	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackage(Definitions.scala:161)
      	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackageClass$lzycompute(Definitions.scala:162)
      	at scala.reflect.internal.Definitions$DefinitionsClass.ScalaPackageClass(Definitions.scala:162)
      	at scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1395)
      	at scala.tools.nsc.Global$Run.<init>(Global.scala:1215)
      	at xsbt.CachedCompiler0$$anon$2.<init>(CompilerInterface.scala:105)
      	at xsbt.CachedCompiler0.run(CompilerInterface.scala:105)
      	at xsbt.CachedCompiler0.run(CompilerInterface.scala:94)
      	at xsbt.CompilerInterface.run(CompilerInterface.scala:22)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
      	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
      	at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
      	at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:29)
      	at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:26)
      	at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:67)
      	at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:24)
      	at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
      	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
      

      Attachments

        Activity

          People

            srowen Sean R. Owen
            smilegator Xiao Li
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: