mbeddr / mbeddr.core

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

Unable to build com.itemis.embedded.platform.msp430.tests.unit #1008

Closed stephaneberle9 closed 10 years ago

stephaneberle9 commented 10 years ago

failed to generate output after 10 repeated mappings last rules applied: An exception was encountered: java.lang.NullPointerException (no message) (right-click to see) model "com.itemis.embedded.platform.msp430.tests.unit" generation failed (see exception) generation completed with errors in 538 ms Error executing target jetbrains.mps.lang.core.Generate.generate "generate" target execution time: 541 ms Other targets execution time: 7 ms; configure: 7 ms, preloadModels: 0 ms, checkParameters: 0 ms, addLanguages: 0 ms, collectPathes: 0 ms, resetCache: 0 ms Rebuild failed. See previous messages for details.

bkolb commented 10 years ago

relates to http://youtrack.jetbrains.com/issue/MPS-19417

bkolb commented 10 years ago

Temporary work-around: Go to settings -> generator and deselect "apply in place transforamtions

stephaneberle9 commented 10 years ago

Unfortunately, this doesn't change anything at my end...

bkolb commented 10 years ago

please pull and rebuild. just checked again. for me it works

stephaneberle9 commented 10 years ago

Still fails during code generation when I try it.

stephaneberle9 commented 10 years ago

The workaround has started to work for me as well :)

stephaneberle9 commented 10 years ago

Without above mentioned workaround, the generation fails with the following output:

couldn't get node by id: '1539255704408506110' in model r:769ad9a0-f26a-4d17-9cc6-f3ae937bc774(com.mbeddr.ext.components.gen_nomw.generator.template.main@generator) while loading priority rules for generator: com.mbeddr.ext.compositecomponents/flatteningCompComps failed to generate output after 10 repeated mappings to get more diagnostic generate model with the 'save transient models' option Generation failed for model 'com.itemis.embedded.platform.msp430.tests.unit': failed to generate output after 10 repeated mappings. generation completed with errors in 1092 ms Exception executing target jetbrains.mps.lang.core.Generate.generate "generate" target execution time: 1093 ms Other targets execution time: 6 ms; configure: 6 ms, preloadModels: 0 ms, checkParameters: 0 ms, addLanguages: 0 ms, collectPathes: 0 ms, resetCache: 0 ms Rebuild failed. See previous messages for details.

markusvoelter commented 10 years ago

So this seems to be a problem in MPS? Did we report that?

stephaneberle9 commented 10 years ago

Interestingly, the after having updated and rebuilt mbeddr today, the code generation on the com.itemis.embedded.platform.msp430.tests.unit models has completed successfully.

We will have to observe if the code generation continues to work in future or will fail again. But so far we can safely close this issue.