In it, there was an XML block , and in that block, two entries were duplicated: I first noticed the scala-library one, and after deleting that, the error report came up about the scala-compiler duplicate too.
After deleting both duplicates, my build is now working. To fix the problem go to project structure in intellij and go to global libraries It should be like this. You have JAR files from multiple versions of scala-library. In order to make the error go away you will have to delete the duplicates. To figure out which version you want to keep, you can view the manifest file inside each JAR:. The error is happening because IntelliJ cannot figure out which version of a given Scala class to use.
To fix the mentioned problem, I've had to purge the directories 1 project , 2 target and 3. Fix the compile issues if some are occuring.
If this does not help, change scalaVersion in build. Repeat the sbt refresh of IntelliJ. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Multiple scala libraies causing error in intellij? Ask Question. Asked 6 years, 7 months ago.
Active 1 year, 9 months ago. Viewed 16k times. I am using intellij 14 with scala 2. Improve this question. Kevin Kevin 1, 3 3 gold badges 21 21 silver badges 34 34 bronze badges. Did you have another version of scala installed on your system? I did brew uninstall scala and brew install scala with-docs don't know if that is causing the issue — Kevin.
Try Uninstalling scala from your system , run scala command if it show scala command not found that means it is completely un-installed, and then install it again. This assumes you are building from your IDE. The Scala installer file will be downloaded with. Before you start installing Scala on your machine, you must have Java 1. Follow the steps given below to install Scala.
Step 2: Set Your Java Environment. Step 3: Install Scala. To compile again, press up arrow and then enter. To run your program, type run.
Type 'haxe' to see the description for the plugin. Select 'Install' to install it. Allow IDEA to restart and initialize the plugin. On the left panel, select Scala. Name the project HelloWorld. Select the highest version number e. Its main features are: Native support for compiling Scala code and integrating with many Scala test frameworks. Continuous compilation, testing, and deployment. Other Releases Latest 2.
Last 2. Nightly builds. All previous releases. Scalable Language, Scala is a general-purpose programming language, both object-oriented and highly functional programming language. It is easy to learn, simple and aids programmers in writing codes in a simple, sophisticated and type-safe manner. It also enables developers and programmers to be more productive. Search for the plugin named "Scala" and install it.
Manually add Spring support to existing modules? Improve this answer. Upgraded the plugins and somehow made it compile. Slightly worried about the sbt-s3 plugin since a lot a has changed, but it's a huge step forward. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer?
Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
0コメント