I'm able to set an NodeAttribute only if first the attribute gets deleted

I don't know if the one in the subject is an expected behavior or a bug.

My concept has an attribute with role "comment". The following do not work.
node.@comment = newNodeComment;
prettyPrint();
This is working:
node.@comment.delete;
node.@comment = newNodeComment;
prettyPrint();
Without delete the attribute remaing unchanged.
Tested in 3.1.5 from an intention code.
4 comments
Indeed, this is the currently implemented behaviour, although, admittedly, somewhat puzzling to the user.
0
BTW genContext.show info statements from a pre-process mapping script are not displayed on Messages window, genContext.show warning is working.
Obviously I have the "Show Information Messages" enabled and I see default generatator Info messages (textGen, copytraceInfo, generate...).
0
Emitting generator infos/warnings is enabled by setting the "Show informational messages"/"Show warnings" flags on the Generator configuration pane in the Project settings.
The buttons on the Messages window lets you filter messages, but do not say the generator, whether to emit them or not.
0

Please sign in to leave a comment.