Skip to content

Cannot use "with" keyword to define an Entity implements a trait #361

@simonwfarrow

Description

@simonwfarrow

Describe the bug
I have defined a Trait and I am trying to use the with keyword of an Entity definition to implement the Trait.
I get the following error mismatched input 'ith' expecting RULE_CLOSE(org.eclipse.xtext.diagnostics.Diagnostic.Syntax)

To Reproduce
Steps to reproduce the behavior:

  1. Define a Trait Trait newTrait {}
  2. Define a Entity Entity newEntity with newTrait {}

Expected behavior
An Entity can implement a Trait with the with keyword
Looking at the DSL java docs I can see a getTraits() function of the DomainObject type https://www.javadoc.io/doc/org.contextmapper/context-mapper-dsl/latest/org/contextmapper/tactic/dsl/tacticdsl/DomainObject.html

IDE and Plugin (please complete the following information):
I am using the ContextMapper plugin for VSCode @ v6.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions