-
Notifications
You must be signed in to change notification settings - Fork 780
Conversation
Signed-off-by: David Graeff <[email protected]>
Travis is not happy about that change.
|
I wasn't necessarily expecting it to work, I was waiting for the travis results. Maybe a mismatch between the eclipse emf and maven emf version, and |
Are you using the official ESH IDE setup and choose a recent a Java IDE as the basis for it in the first step? |
Might be fedoras system-installed eclipse fault. I'll test in a VM and open an issue if necessary |
This just after using the official ESH IDE setup, but with a system eclipse installed. The consuming code looks like this:
And the generated code looks like this: /**
* generated by Xtext 2.12.0
*/
package org.eclipse.smarthome.model.rule.rules;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Event Emitted Trigger</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.smarthome.model.rule.rules.EventEmittedTrigger#getChannel <em>Channel</em>}</li>
* <li>{@link org.eclipse.smarthome.model.rule.rules.EventEmittedTrigger#getTrigger <em>Trigger</em>}</li>
* </ul>
*
* @see org.eclipse.smarthome.model.rule.rules.RulesPackage#getEventEmittedTrigger()
* @model
* @generated
*/
public interface EventEmittedTrigger extends EventTrigger
{
/**
* Returns the value of the '<em><b>Channel</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Channel</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Channel</em>' attribute.
* @see #setChannel(String)
* @see org.eclipse.smarthome.model.rule.rules.RulesPackage#getEventEmittedTrigger_Channel()
* @model
* @generated
*/
String getChannel();
/**
* Sets the value of the '{@link org.eclipse.smarthome.model.rule.rules.EventEmittedTrigger#getChannel <em>Channel</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Channel</em>' attribute.
* @see #getChannel()
* @generated
*/
void setChannel(String value);
/**
* Returns the value of the '<em><b>Trigger</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Trigger</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Trigger</em>' attribute.
* @see #setTrigger(String)
* @see org.eclipse.smarthome.model.rule.rules.RulesPackage#getEventEmittedTrigger_Trigger()
* @model
* @generated
*/
String getTrigger();
/**
* Sets the value of the '{@link org.eclipse.smarthome.model.rule.rules.EventEmittedTrigger#getTrigger <em>Trigger</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Trigger</em>' attribute.
* @see #getTrigger()
* @generated
*/
void setTrigger(String value);
} // EventEmittedTrigger Maven gives me "AbstractClassMirror - resource is empty: java:/Objects/java.lang.Object". Ah I just found eclipse/xtext-core#702 (xtext < 2.14 not compatible to Java 9+). A new Fedora installation has Java 11 installed. |
Hi, |
I'm sorry I have expressed myself incorrect. What I mean is that there is a system wide eclipse installation as well, next to the oompf one. That fact is important to see this error. But that can also just be because fedora is installing java 11 as dependency for eclipse and not me installing java 8 from the repos before executing oomph. |
The additional Eclipse installation should not matter (if the remaining setup is done well). Test the following step:
|
@maggu2810 That was the solution. Java 8 has to be selected during the installation. How the missing java 11 support manifests itself is not beginner friendly of course, now that java 11 is the default installation. I also noted, that the initial setup (with java 8) failed to build the models correctly on my system. I had to manually execute "Generate all models" of the |
The setup instructions state "Oracle JDK 8" as a pre-requisite but misses that it should be selected in "Java 1.8 + VM". Would you like to add this information to the documentation?
The default installation on your Fedora distribution. 😉
Hm, the latest setup file will run "mvn clean install" as a setup task and this "should" succeed. |
According to my (until now undocumented) test it should fail on Java 11:
I'm going to document all this in detail in #4369. |
Hm, how about a very early warning in the maven process that not-java-8 is being used. At least until everything works with the current LTS? ^^ |
Every time I setup a new eclipse IDE environment I get errors about the not existing
getValue()
method.Does someone else encounter this phenomenon?
FYI: It is a fresh installation via eclipse installer and reproducible.
Signed-off-by: David Graeff [email protected]