Community
Participate
Working Groups
(I hope this is my environment or somehting I have overlooked, but) it looks like the CheckType.NORMAL checks are not performed on save anymore. To reproduce: (1) create the MyDSL project (2) create a validator, such as package org.xtext.example.mydsl.validation; import org.eclipse.xtext.validation.Check; import org.eclipse.xtext.validation.CheckType; import org.xtext.example.mydsl.myDsl.Greeting; import org.xtext.example.mydsl.myDsl.MyDslPackage; public class MyDslJavaValidator extends AbstractMyDslJavaValidator { @Check (CheckType.NORMAL) public void checkFirst(Greeting greeting) { if (!Character.isUpperCase(greeting.getName().charAt(0))) { warning("Name should start with a capital", MyDslPackage.GREETING__NAME); } } } (3) start a runtime workbench, type Hello sven! Hello sebastian! (4) save. (5) nothing happens... No marker, but also no call to RessourceValidatorImpl.validate (nor to the ValidatingEditorCallback). Using Xtext 1.0 RC4 on gallileo 3.5.2.
The sample works for me. Does the project have the Xtext-Nature assigned?
It turned out that Auto-Build was disabled.