modal-dsl / modal

A Domain Specific Language for AL Extension Development
Apache License 2.0
16 stars 4 forks source link

rule ruleSolution failed predicate: {getUnorderedGroupHelper().canLeave(grammarAccess.getSolutionAccess().getUnorderedGroup_3())}? #16

Closed Hofschn8 closed 4 years ago

Hofschn8 commented 4 years ago

Hello, when i try to create a .mdal file (yours demo file is working) - i get following Error :

rule ruleSolution failed predicate: {getUnorderedGroupHelper().canLeave(grammarAccess.getSolutionAccess().getUnorderedGroup_3())}?

image

Hopefully you can help BR

joneug commented 4 years ago

At the moment it is mandatory to define all table types inside a solution (except for supplemental). So in addition to the master definition, you would have to specify a document and the ledgerEntry as it is done in the demo. I understand that you might not need the other two. I am working on making these other two optional so that your example will work. This improvement is planned for the next release.

This problem is already tracked in #14. So I am closing this issue.

joneug commented 3 years ago

This issue was fixed in version 0.4.0 of the mdAL VS Code Extension. Please update your installation and the example you provided should work.