Xtext 2.7 and JDK version - eclipse-rcp

I tried to find information about which level of JDK is recommended for Xtext. To my regret I did not found official requirements regarding JDK level. My question is which level of JDK shall be used for xtext ?
1.8 or 1.7 or 1.6
Thank you in advance
Alexander

In comparision to Java 8 Java 5 and Java 6 didn't bring real syntax extension. I don't know exactly which version is required for Xtext 2.7, but I recently read something about Xtend (which comes with Xtext). The document said that Xtend lambdas will compile to Java8 lambdas if one wants it. Otherwise it still compiles to Java 5.
From this information I would derive that Xtext needs at least Java 5.

There is no "recommended" level, use whatever makes sense for your project. Xtext 2.7 works with anything form Java 5 to Java 8.
Xtext 2.8 will require at least Java 6.

Related

Where to get the SDK for Intellij iDEA for Scala?

I've never used Intellij before or even heard of SDK's, but on the page that describes how to setup it says you need an SDK, and in the tutorial it was 1.6 (java version 1.6.0_37). Where do I download or find this? I've looked all over and all I find is a Java JDK version 6, and can't find any references to SDK's at all.
Java version 6 is actually 1.6, so you are right in getting the Java SDK 6. You can really get Java 8 I would think

possibility of scala-virtualized in Eclipse with Scala >=2.11

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)).

Update groovy 1.7.10 to groovy 2.2 including AST transform issue

I have to update my "groovy files" that have been written in 1.7 to 2.2. To be honest I'm kinda newbie with groovy so that's why I have simple question.
What should I care about when doing it and what exactly should I do?
I simple installed 2.2 compiler in Eclipse and i got error about compiler mismatch but I handle this by switching to 2.2. I'm using JDK 6 and I'm also not sure about jdk version (I've read somewhere that groovy 2.2 needs jdk 7 to work correctly. Is it true?).
After compiling my projects i got multiple errors like this:
Groovy:Unexpected problem with AST transform:
org.codehaus.groovy.runtime.InvokerHelper.getVersion()Ljava/lang/String;
Sorry for my bad english and I hope you understand what I was askin for.

ANTLR and Eclipse (or any decent IDE)

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.

Does XText require minimum versions of Eclipse or Java

While I can just try and run it and see if it fails I may not know if some internals will fail at inopportune times does anyone know if specific versions of java or eclipse are needed?
I'm sure, no special version of Java nor Eclipse is needed. It needs Java 1.5 and some Eclipse Modeling components (such as EMF); but they are already installed with Xtext.