Is it possible to write and compile Scala code in netbeans6.9.1? I am a beginner to Scala programming, and am very much confused about this.
I've never actually tried to write Scala in Netbeans personally but according to Dick Wall the support for Scala in Netbeans is pretty much the best of breed among the main 3 IDEs (IntelliJ, Eclipse, and Netbeans). I know that's just anecdotal but it's from a pretty trusted source who literally inserted a whole new section into his Java Posse podcast just so he can geek out over Scala.
This looks like a fantastic place to get you started. http://wiki.netbeans.org/Scala
Yes, check out the Netbeans wiki; Scala modules are experimental and under active development, so check the nightly builds. Also check out ErlyBird; it's an Erlang/Scala IDE based on NetBeans.
I have successfully used Scala with Netbeans 6.8. I tried using 6.9, but could not get it to work.
If you can manage with NB 6.8, then you are in luck.
Note that even with 6.8, refactoring is not available. However, code completion works very nicely and that is sufficient for me. I hope that there is a more usable Netbeans plugin for Scala in the near future.
Of course, you need to install the Scala plugin after installing NB 6.8 to get anything to work. Instructions here: http://wiki.netbeans.org/Scala68v1
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 followed this guide: http://lamplmscore.epfl.ch/mediawiki/index.php/Eclipse_IDE_with_Scala-virtualized
in order to use the virtualized (-Yvirtualize ) plugin inside the eclipse compiler. This works for a nightly build of Scala 2.10 which is old and lacks features like implicit classes. Does anyone know of a way to work with newer versions of Scala with the virtualize plugin AND eclipse?
Sorry to be bringing bad news:
The Eclipse IDE for Scala-virtualized has not been updated in the last 2 years, so it's not expected to be usable (Source: I maintained the EclipseIDE for scala-virtualized) -- I updated the wiki.
Regarding 2.11, please see Alexey's comment (and answer) below.
Scala-virtualized has been updated to 2.11.2 now. You can definitely use it in IDEA, at least (just make sure the Scala-virtualized scala-{library,reflect,compiler}.jar are above the non-virtualized versions in Dependencies tab under Project Settings -> Modules). I don't know if you can use it in Eclipse, but it might be possible using Scala installations support (see under BYOS (Bring Your Own Scala)).
First of all, I would like to say that I don't know if Stack Overflow is the right forum to ask this, but let's give it a try.
I'm a .NET developer, but I'm interested in giving Scala a try in my next project. Developing for .NET is very "simple" in the sense that everything happens "inside" Visual Studio, from coding to installing libraries, to deploying, you get it.
I've stumbled upon the Typesafe Activator tool. My question is for Scala programmers who are using it: is this tool usually used as an IDE for the whole project? Or is it used just to generate the templates, then work in another IDE like Eclipse? What would be a usual "cycle" in web app developing project with Scala?
Thank you very much in advance!
Right now the code editor in Activator is pretty basic. So most users start with Activator for new projects and learning and then open the project in IntelliJ or Eclipse. Then you can continue using Activator alongside an IDE if you want.
I agree with James that it is common to create the project with Activator before then moving to your preferred IDE. I'm not even close to the expert he is, and that has worked for me.
But inconsistently.
For me, as an IntelliJ user on Mac, I have found that JetBrains (the makers of IntelliJ) continues to make so many changes to their Scala, SBT, and Play plugins that there can be inconsistencies. I've found starting from IntelliJ sometimes works; starting with Activator sometimes works; importing an SBT project of any kind sometimes works; and so on. I have yet to uncover any pattern as to why.
You may have better luck than I, but just be ready to try a few approaches. Using Activator first as James suggests is certainly a viable one.
I have been using ANTLR with Eclipse for some time using the ANTLRv3IDE plugin. While it is not perfect, and a bit outdated, it does its job reasonably well.
Now I am looking to switch to ANTLRv4 for another DSL that I am creating. However, Eclipse support seems to be extremely thin. I decided to try out ANTLRWorks, which is a NetBeans plugin, but I could not get it to install (it seems to be locked to specific dated versions (201302132200 while I have something newer, still 7.3 as docs say) of dependencies).
So, the question: Has anyone set up any Java IDE (preferably Eclipse, but I could be persuaded to switch if support is good for something else) to integrate with ANTLR? With integrate, I mean: code generate on save/keyboard shortcut and syntax coloring (at the very least). Code completion and other features are of course nice to have, but I could live without them for now.
I am well aware of Xtext and I have had great success using it for some projects, but unfortunately it does not fit the needs here (need no IDE support, need my own DSL model not based on ECore, etc).
I know ANTLRWorks can be run as a standalone application without a Java IDE, but that I consider to be a last-resort solution as it is extremely cumbersome to work this way (switch between application, files out of sync, no VCS support etc). I tried the other way around: to install the Java parts into ANTLRworks (which itself is a NetBeans distro), but it did not end well (it seems basic project support etc was stripped out of ANTLRworks).
Antlr4 plugin for Eclipse is here:
https://github.com/jknack/antlr4ide
ANTLRWorks 2 uses many non-public interfaces from NetBeans, which means it will always be bound to a particular version. The standalone download will always work because it bundles the dependencies itself.
The standalone build of ANTLRWorks 2.1 is available. This build includes support for ANTLR 4.1.
A new plugin build of ANTLRWorks 2.1 will be available once NetBeans 7.4 is released.
Moving forward, the code for ANTLRWorks post-2.1 is open-source under an LGPL license.
I think you have downloaded Netbeans 7.3.1.
Try download 7.3 from https://netbeans.org/downloads/7.3/ and install the ANTLRworks plugin there. (Link to the ANTLRworks Update Center: http://tunnelvisionlabs.com/downloads/nbupdates/nb73/aw2/updates.xml ).
Note that ANTLRworks v2 contains ANTLR v4.0, which is not the current version of ANTLR (4.1). So also download ANTLR v4.0 from the ANTLR download folder (The antlr-4.0-complete.jar file) and use it as library for compilation.
Now you can use nearly all things you wanted.
ANTLRv3IDE was opensourced. It should be compile-able for Juno. For stringtemplate (ST4) look at the Hastee plugin. It supports some of ST4 constructs.
Getting thrown into ColdFusion dev at work and just starting out, I wonder if there are any advantages (or disadvantages) of using Eclipse vs Intellij. I'm used to working in Intellij on Groovy/Grails and have close to zero hands-on time with Eclipse. The shop I'm in mostly uses Eclipse (I think because it's free and not much else), some use Dreamweaver (1 person me thinks).
Thanks in advance.
I'm a CF Developer that has been playing with intelliJ of late! I must say I do love the smoothness of intelliJ. IntelliJ does has have a CF code library ( http://plugins.intellij.net/plugin/?id=3571 ).
I don't use Eclipse for CF Development, but do use CFBuilder, which is based on Eclipse.
I personally prefer intelliJ as an IDE, but prefer CF Builder when working with CF.
There are two options for working with Eclipse for ColdFusion Development:
cfeclipse - an open source, free plugin for Eclipse
cfBuilder - the 'official' IDE, sold and distributed by Adobe.
There is also a plugin for IntelliJ which I have no personal experience using however I note that some highly respected CF devs are using it and preferring it to the Eclipse-based options.
My team and I currently use CFBuilder 2 and find that to be good enough for our needs. The biggest criticism I see about CFBuilder/Eclipse is that it can perform poorly on older PCs and the common solution is to increase the RAM available to it.
The benefit my team finds with CFBuilder is that the full Eclipse plug-in ecosystem is available giving us bundled options for source control and other development tools. (The same may exist for IntelliJ but I have no personal experience with it.)
Dreamweaver, especially a recent version, is an option and many CF devs swear by ColdFusion Studio which is a very old program and might be hard to get your hands on. Finally, there is also a plugin for Notepad++ for the times where you need to make a quick edit to a file and don't require a full IDE.
The editor that a lot of people have been using for ColdFusion lately is SublimeText 2 (http://www.sublimetext.com/2) with the official ColdFusion Package (https://github.com/SublimeText/ColdFusion). The link I posted below from Nettuts will help you get up and running with the PackageControl package that makes installing the ColdFusion package very easy.
Sublime is lightweight, powerful, and a pleasure to code in. It has small animations that make it feel responsive, and the birds eye map view of the code can be very useful. It even has some code insite that I find really helpful.
Heres a great post on Nettuts to get you started: http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/