XMLInternal 2 gDocument - warnings ...

  • 21
  • 3

Hi,

when running the xmlInternal generator i get a bunch of warnings - like the following one:

child 'GItem' is expected for role 'item' but was 'SimpleAttribute'
-- – was child: SimpleAttribute <no name>[null] in uiframework@5_0
-- – was input: [rootElement] SimpleElement <no name>[5899746768957014141] in uiframework@4_0
-- – was parent in template: [contentNode] GConditionalLine <no name>[1179109560291] in jetbrains.mps.xmlInternal.generator.baseLanguage.template.main@generator
-- – was child in template: [item] GText <no name>[1188773485721] in jetbrains.mps.xmlInternal.generator.baseLanguage.template.main@generator


I did not care until now, but in a larger model, i get 1095 of those ... Is there a way to get rid of them?

Best,
Dan
Temporary workaround:
uncheck "Settings -> Generator -> Error reporting -> Warn when child cannot be ..."

Hi Evgeny,

thanks for your quick response. Did no find this setting in MPS2, nor in MPS1.5 ... There is only:

  1. show informational messages
  2. Show warning
  3. keep transient models with warning
  4. maximum number of transient models to keep

Where do i have to look ...
Dan