Activator Game Problem on IntelliJ Idea 14

I have the following problem in IntelliJ IDEA 14:

I created a Play project (Scala) using Activator (v1.2.10). Then I converted it to an IDEA project using the activator idea team. When I opened the project with IDEA 14 (Community Edition), the SBT module is not enabled. Therefore, the new dependency in the build.sbt file is not included in the classpath. In addition, the project is not listed in the IDEA SBT submission.

The following warning is shown by IDEA:

β€œThis IDEA project is being converted from the SBT project using the gen-idea tool, which is currently using the legacy Scala project model. Please consider using the built-in SBT support using the Import project action.

Please note that Scala and SBT plugins are already installed on IDEA.

I do not face the same problem in IDEA 13.

+5
source share
3 answers

Have you tried File | Import Project File | Import Project and select build.sbt file?

IDEA imports it as an SBT project, with all dependencies resolved correctly. It works great for me on IDEA 14 and 13.

+1
source

This seems to be a bug in some versions of IntelliJ 14 that have just been fixed (since version 14.0.3). Updating IJ and then updating the scala plugin seems to make it work.

+1
source

In this case, just import manually "build.sbt" from your project, so if the directory is ~ / Documents / myPlayApp, then select import ~ / Documents / myPlayApp / build.sbt

0
source

Source: https://habr.com/ru/post/1207044/


All Articles