Created
March 15, 2012 09:06
-
-
Save shijinkui/2043090 to your computer and use it in GitHub Desktop.
IDEA11 scala插件报错-已解决
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IDEA11 scala插件编译scala文件时报错,error如下 | |
================= | |
Information:Compilation completed with 18 errors and 0 warnings | |
Information:18 errors | |
Information:0 warnings | |
Error: scala.tools.nsc.MissingRequirementError: object scala not found. | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:655) | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions.scala:605) | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:145) | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:146) | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.scala:176) | |
Error:at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:814) | |
Error:at scala.tools.nsc.Global$Run.<init>(Global.scala:697) | |
Error:at scala.tools.nsc.Main$.process(Main.scala:105) | |
Error:at scala.tools.nsc.Main$.main(Main.scala:123) | |
Error:at scala.tools.nsc.Main.main(Main.scala) | |
Error:at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
Error:at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
Error:at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
Error:at java.lang.reflect.Method.invoke(Method.java:597) | |
Error:at org.jetbrains.plugins.scala.compiler.rt.ClassRunner.main(ClassRunner.java:46) | |
Error: | |
Error: fatal error: object scala not found. |
mac下不支持。windows下正常。fuck
i have resole this problem.
setting --> IDE Setting --> File Types --> scala file --> add Registered Patterns
add *.scala
that is all. 哈哈
只是缺了添加scala文件类型而已
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
idea: 11.0.2
scala plugin: 0.5.388.