I'm running NB 8.0.2 on Linux Mint 17.1. I've followed the instructions twice, but still only see the "Scala Sbt Project" project template. I was expecting to see several non-SBT templates as well. I can, however, create and run Scala objects just fine, so I can work with it as it is, even if I'm not planning on using SBT.
Is something wrong with my plugin config, though, if I'm only seeing the SBT project template?
I've already gone through How do I add the Scala Platform in Netbeans? and other links, but this seems to be a NB 8 issue, as most of the posts/blogs concern NB 7 and 6. I didn't see anything about it on https://github.com/dcaoyuan/nbscala or https://blogs.oracle.com/geertjan/entry/10_steps_to_happiness_with .
Thanks,
Ari
Related
I have several machines. I just bought a new MacBook and installed Scala, set and then IntelliJ IDE. Nothing I do will make it correctly create or import a Scala project. I get message some times that the Scala library is not configured. Sometimes I can add the Scala Framework manually and sometimes Scala isn't an option in Add Framework. I have reinstalled SBT Scala, the Intellij Scala plugin and even IDEA. Every other machine is fine and I never had any problems - I'm going to have to give-up on Intellij at this point and use Eclipse (a cheaper option than sticking with the old laptop). I have different settings and options than the other machines as I'm on a slightly newer (2018.2) IDEA build but other than that I'm at a loss.
Anyone hit this before? What stupid thing have I done wrong?
The reason you get that is that there are certain combinations of SBT and IntelliJ that just don't work well together. Go to project/build.properties in your project and change your SBT version from to something like 1.1.1 (That one works well for me) and experiment. I know it is frustrating. Also be sure that IntelliJ and Scala plugins are upgraded.
I recently installed the Scala IDE Eclipse Kepler, and I have trouble with scala.html template files and sbt files.
The other references online say that I can use "Template Editor" to edit the scala template. However, such template is not found in the IDE.
I also don't see any mentioning of the editor for .sbt files.
IntelliJ Idea has them all, but requires a fee.
Is there anything that I should install to edit all files related to scala and play framework?
The Play plugin for 2.11 (it seems you are using 2.11) is only available together with the 4.0 milestone 3 release, available here:
http://scala-ide.org/download/milestone.html
Unfortunately, the changes we needed to make in order to adapt to 2.11 made it too difficult to re-release it on 3.0.4. I hope the milestone release is good for you. We should have the next major release soon, though.
I am giving a try to Scala Eclipse IDE after a very long time. I installed Eclipse and the said Scala plugin only a while ago, but I am unable to get stuff working. In all of the Scala files, I get the errors like following (See the tooltip):
This project uses Gradle for building, and I also have the latest version of Groovy plugin installed. Please help me get this thing working. Thanks.
Edit:
Thank you, everyone. The problem was solved. It appears there was a problem with my Scala plugin installation. A complete reinstall of everything (including Eclipse) helped. Also, this time I did not install the Groovy plugin.
I don't know which version of Eclipse / Scala-IDE you're using, but there are two reasons I know this sometimes happens:
1) You don't have JDT weaving for Scala installed.
The scala-ide uses aspects to weave in code into the JDT compiler. If you don't have this installed, this may cause the Scala files to be seen as Java files.
2) If, somehow, the Java Source File content type includes *.scala. In fact, it should be Scala Source File. If this is the case, you should remove the *.scala from the Java Source File content type.
I have a simple question regarding groovy with eclipse. I downloaded the plugin as mentioned and i didnt have problems with installations but i have compiler errors in hello p. the problem in my opinion that eclipse isnot using the groovy compiler. but i have no idea what to do
Is the filename extension .groovy?
Are you sure the project has the Groovy nature? (right-click on the project, and ensure Remove Groovy Nature appears. If Add Groovy nature appears, then the project doesn't have a groovy nature, and therefore the groovy compiler won't work).
Could you also post the file that isn't compiling. There might be something wrong with what you typed.
Make sure you are opening the file in a Groovy editor.
Look for any exceptions in your error log.
Also, just in case, you can try uninstalling and reinstalling the plugin. I'd recommend using the latest milestone version as that one is about to be promoted to 2.1.2 final.
http://dist.springsource.org/milestone/GRECLIPSE/e3.6/
I confirmed that Groovy plugin isnot workingn on mac. I tried it on 2 machines and they are giving the same error. Groovy plugin is working on windows without problems :)
NetBeans is a better option for Groovy+Java development. You can mix Java and Groovy files in a Java project in NetBeans. It also creates a distributable jar for your project. No classpath and jar issues with NetBeans created MET-INF file.
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.