Unrecognized repository Scala Plugin Bundled Repository - scala

When creating a fresh Scala SBT project in IntelliJ, I get this warning on sbt reload:
[warn] Unrecognized repository Scala Plugin Bundled Repository, ignoring it
I am aware that it is only a warning. What does it mean, and how do I resolve it?
SBT version 1.6.2,
Scala version 2.12.16.

This warning usually means there are some leftovers from a previous Scala plugin update which didn't finish successfully. Trying to update or reinstall your Scala plugin should fix the issue. Trying to change your Scala version might also make it go away.
In the end it's a harmless warning; if it does not causes any issue in your program, you can forget about it.

I have the same warning for quite some time, I have no idea what it means and I ignore it. without experiencing any adverse effects in my project.

"Repair IDE" in IntelliJ's File menu fixed it for me

Related

Intellij IDEA - Cannot add framework support for Scala

I have sbt 0.13.16 and Scala 2.10.6 running with Intellij 2018.2.1, working with those recommended sbt and Scala settings for Odersky's coursera course on Scala (I'm guessing their automated submission grader depended on old SBT?).
When creating new sbt + scala projects, I choose the above sbt and Scala versions, then after all the dependencies have downloaded, when I right-click New -> ... I see options for Java class but nothing for Scala. I have the Scala plugin already there according to the plugin settings.
So I try to Add Framework Support after right-clicking on the project, I select Scala, but then everything is disabled except Cancel.
I looked through previous forums, found one but that seemed relevant only for git projects.
Anyone else run into this issue? Do I need to update to more recent Scala and SBT? Any help would be very appreciated.
Please check https://plugins.jetbrains.com/plugin/1347-scala/versions for a compatibility table.
You can manage plugins in IntelliJ Preferences. Your versions seem to be too old to still be supported, already. It may help to upgrade IntelliJ and then go to preferences and get the latest Scala and SBT plugins.

Failed to refresh gradle project in IntelliJ IDEA 2016.1: Unknown method ScalaCompileOptions.getForce()

I have a Gradle-based project primarily with Java code and a small subproject with Scala (a Gatling-based performance test).
I recently upgraded Gradle wrapper to v2.12, which is currently the latest version.
And today I just updated IntelliJ Idea from v15 to v2016.1.
When I try to refresh the project from the Gradle files in Idea, I get this error.
Error:Cause: org.gradle.api.tasks.scala.ScalaCompileOptions.getForce()Ljava/lang/String;
I noticed when searching on Google, that the method getForce() (returning a String) apparently has been replaced by isForce() (returning a boolean).
If i downgrade Gradle wrapper to v2.11 the problem disappears.
Is there anything else I can do to fix the problem?
I guess there is nothing except downgrade you can do. Just report your problem on Jetbrains issue tracker
This seems to have been fixed as per release notes published in https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+2016.1+145.844.1+Release+Notes. See IDEA-152976.
One needs to switch to IntelliJ IDEA 2016.1 145.844.1
Reinstall the Scala plugin in intellij solved the problem for me.

IntelliJ IDEA w/ Scala Plugin not finding scala.concurrent

I am having the hardest time getting a fresh install of IntelliJ to work properly with Scala.
I've installed IntelliJ IDEA 13.1.4 and the Scala plugin on a Mac. In any project, the IDE complains it cannot find scala.concurrent (or any other package in scala-library) even though the library is listed under "External Libraries". What am I missing?
I've got the basic steps to reproduce down to:
Install IntelliJ IDEA 13.1.4
Install Scala plugin via IntelliJ plugins dialog
Create a new Scala project (either SBT or non-SBT, doesn't matter)
Define a new class and try to import scala.concurrent._
This happens with new or existing projects - even when provisioned via sbt gen-idea.
I've installed Scala and SBT via brew and even tried setting $SCALA_HOME to point to the brew install of scala (/usr/local/share/scala).
IntelliJ is listing the library in External Libraries but still can't resolve the symbol.
I have been fighting with this for hours. What am I missing here?
I had the same issue. I fixed it with Invalidate Caches
File | Invalidate Caches / restart. Manual way on Mac with removing this folder:
~/Library/Caches/IntelliJIDEAXX
I had the same issue and above advice didn't help me. After googling and reading JetBrains tickets, I found out that I had $JAVA_HOME variable pointing to JDK 1.7:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
Removing that from both current shell (unset JAVA_HOME) and shell's profile (in my case .zshrc) resolved the issue.

IntelliJ 404 scala lang

Ok, I need some help in setting up a Scala project with IntelliJ, I have download and installed the project successfully, but i have had issues when it comes to installing the Scala compiler itself, WHen i go to configure a new Scalaa project and choose to set the Scala home, I choose the download Scala option and i get the following error "downloading failed, connection failed with error 404: http://www.scala.lang.org/downloads.distrib/files/scala2.10.0+RC2.tgz" i have tried downloading the things, such as primefaces and jSF through intelij, and they all work fine, any suggestions?
Download Scala manually and just select proper directory in new project window.
http://www.scala-lang.org/download/
You should be using SBT to define and build your project. Among other things, it handles retrieving the Scala compiler and libraries. IDEA is similarly self-contained as far as its Scala plug-in's internal Scala compiler is concerned. By using SBT and IDEA (see below for connecting the two), the only thing not covered is a Scala REPL for use outside of either SBT or IDEA. If you're using a Mac, Homebrew includes a Scala formula. Because SBT retrieves the Scala compiler and libraries for the version of Scala you specified, everything is self-contained.
By far the best way to build and maintain IDEA project definitions for Scala projects is with the sbt-idea plug-in for SBT. Once you install that plug-in, which is trivial, you simply use the gen-idea SBT task it provides. When your dependencies change, you run gen-idea again to update the project.

Scala IDE error - "projectname" is not a Scala project -

I have installed latest scala ide plugin to eclipse (Version: 3.4.2). It seems installation is ok without any errors.
I am able to create a scala project and add a package, but i couldn't add scala object, at the time it shows "projectname" is not a Scala project error message in add object dialog.
I have googled and found it could be related to JDT Weaving not enabled in eclipse. I have verified, its enabled and running in my environment.
Below the screenshot of the error.
alt text http://a.imageshack.us/img80/3070/scala.png
I just started scala.. Can someone help me to resolve this problem?
I had a similar error two minutes ago. Here's how I fixed it. I'm using Helios and the relevant Scala IDE version.
Right click on the project name --> Configure --> Add scala nature
I must mention that I have the M2Eclipse plugin as well and my project is a Maven project in addition to having a Scala "nature" .. Not that it should matter .. ;-)
The error message means your project is not recognize as a Scala one (as detailed in the scala.tools.eclipse.wizards.AbstractNewElementWizardPage.scala class.
But adding "Scala nature" to your project, as suggested by Alexey Romanov in the comments, might not be enough in this case.
The requirements mentioned in scala-ide.org clearly include:
Java Developer Toolkit 1.6
Eclipse Classic 3.5.2
So could you try with a more recent Eclipse version?
See Requirements and Installation, and then the turorial:
As mentioned, note the 'S' in the Scala project icon.