Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL not creating markers
EVL not creating markers [message #1836509] Wed, 06 January 2021 11:04 Go to next message
Justin Cooper is currently offline Justin CooperFriend
Messages: 6
Registered: August 2019
Junior Member
Hello,

Attached is a minimal example of an issue I am seeing where markers are not being created from EVL constraints when using the org.eclipse.epsilon.evl.emf.validation extension point.

I've attached a minimal example metamodel, evl constraints and example model. When validating the model, there should be 3 error markers created.

An error marker should be generated on the CPU for having a clock speed equal to 0 (Marker correctly generated)

Another error marker should be generated on the CPU for having an undefined name (No marker generated)

An error marker on the Board should be generated for having an undefined name (No marker generated)

As you can see from the console when running validation, the EVL correctly runs on the element and returns false, however no markers are generated.

Thanks,
Justin
  • Attachment: evl-issue.zip
    (Size: 121.06KB, Downloaded 72 times)
Re: EVL not creating markers [message #1836521 is a reply to message #1836509] Wed, 06 January 2021 17:16 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Justin,

Thank you for taking the time to put this together! I have reproduced the issue you're encountering and will investigate.

Thanks,
Dimitris
Re: EVL not creating markers [message #1836523 is a reply to message #1836521] Wed, 06 January 2021 18:46 Go to previous message
Justin Cooper is currently offline Justin CooperFriend
Messages: 6
Registered: August 2019
Junior Member
Many thanks Dimitris,

After a little bit of digging, I don't think it is a bug. Looking at this bug report https://bugs.eclipse.org/bugs/show_bug.cgi?id=369383, I can see there is an additionalNamespaceURI tag.

Changing the com.example.electronics.evl plugin.xml to be the following, fixed my issue!

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.epsilon.evl.emf.validation">
      <constraintsBinding
            constraints="src/deployment.evl"
            modelName="M"
            namespaceURI="http://www.example.com/deployment">
            <additionalNamespaceURI
                  namespaceURI="http://www.example.com/electronics">
            </additionalNamespaceURI>   
      </constraintsBinding>
      <constraintsBinding
            constraints="src/electronics.evl"
             modelName="M"
            namespaceURI="http://www.example.com/electronics">
             <additionalNamespaceURI
                  namespaceURI="http://www.example.com/deployment">
            </additionalNamespaceURI>          
      </constraintsBinding>
   </extension>
   <extension
         point="org.eclipse.ui.ide.markerResolution">
      <markerResolutionGenerator
            class="org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator"
            markerType="org.eclipse.emf.ecore.diagnostic">
      </markerResolutionGenerator>
   </extension>

</plugin>
Previous Topic:possible to open .model file in an DSL graphic editor?
Next Topic:Getting coverage information using Junit plugin
Goto Forum:
  


Current Time: Sat Apr 27 13:10:52 GMT 2024

Powered by FUDForum. Page generated in 0.03366 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top