ide - IntelliJ Idea, “Not valid Scala home” error on Windows -
alright, have scala 2.10 installed on computer, , works fine in eclipse...
i installed intellij idea see how alternative was, apparently doesn't scala installation, works fine on macbook, here says "not valid scala home" despite fact correct directory...
upon creating project , writing bit of test code, try compile it, , in debug console says: "error: scala: no compiler library set in module untitled1"
so should do?
scala installed, ide refuses recognize existance
every time i've tried use idea, something goes wrong
here's screenshot of error:
any help?
edit: changing directory c:\program files (x86)\scala
produces following error:
note scala work in eclipse
edit2: going through other change, still makes ide unable recognize compiler
path problem. intellij scala plugin looks installed distribution first checking scala_home environment variable. if not set scan folders path environment variable. in latter case ignore fact found binary directory , not actual scala home (so not adjust added bin @ end of path). note windows scala msi installer not set scala_home (as not needed scala function correctly). either set scala_home environment variable or navigate directory (as did in second screenshot).
sources problem. scala msi installer not install source jars default. again scala_home variable not strictly needed. avoid manually setting compiler jar , aesthetically displeasing error in second screenshot :-) check "sources" in setup options screen.
scaladoc problem. not part of question completeness: scala api docs installed msi installer (if did not uncheck "api documentation" in setup options). in "wrong" path scala plugin perspective:
[scala_home]\doc\api
. wants them instead in:[scala_home]\doc\scala-devel-docs\api
. can deal in variety of ways feel efficient 1 create directory junction if on windows 7. go elevated command prompt, change directory [scala_home]\doc , runmklink /j scala-devel-docs .
thereby redirecting scala-devel-docs parent doc folder. msi uninstall not remove have clean if ever uninstall scala.
Comments
Post a Comment