mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

Using Fields inside inlined Runnables #609

Closed DomenikP closed 10 years ago

DomenikP commented 11 years ago

I don't get any warning/error when writing the following code:

exported component LoggerImpl extends nothing { provides Logger i int32 bla = 23; inline void i_log(int8 value) <= op i.log { int8 thisDoesNOthingSensible = value; bla = 3; } runnable i_log } component LoggerImpl

However, while rebuilding the model, the following error message appears:

[jetbrains.mps.smodel.DynamicReference] couldn't resolve reference 'member' from [member] MemberRef [7599526456373123488] in test.debugging.ext.components.inlined_runnable@5_0 [jetbrains.mps.smodel.DynamicReference] -- cannot resolve reference by string: 'field_bla' [jetbrains.mps.smodel.DynamicReference] -- was input: model=r:b1dc03bb-8351-44ef-8062-1cf20665445d(test.debugging.ext.components.inlined_runnable@3_0) node id=7599526456373123356 [jetbrains.mps.smodel.DynamicReference] -- was template: [smodelAttribute] ReferenceMacro [5308710777891634415] in com.mbeddr.ext.components.gen_nomw.generator.template.main@generator [com.mbeddr.core.make.plugin.runMake_Facet] make failed with exit code 2 for test.debugging.ext.components/test.debugging.ext.components.inlined_runnable

bkolb commented 10 years ago

seems to be fixed in the current version