Multiple scala libraies causing error in intellij?

后端 未结 11 1892
独厮守ぢ
独厮守ぢ 2021-02-05 02:23

I am using intellij 14 with scala 2.11.6 installed using home brew and symlink using

ln -s /usr/local/Cellar/scala/2.11.6/libexec/src /usr/local/Cellar/scala/2.1         


        
11条回答
  •  我在风中等你
    2021-02-05 03:01

    Maybe you have used

    /usr/local/Cellar/scala/2.11.6/
    

    as the path for Scala SDK?

    When you install scala with homebrew that path will contain not only the scala libraries, but also a symlink with the relevant libraries for intellij. So if you use the top-level install directory intellij will find the libraries twice.

    Instead you should use

    /usr/local/Cellar/scala/2.11.6/idea/lib
    

提交回复
热议问题