Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all Marker Interfaces in EMF export #367

Open
ftomassetti opened this issue Jul 10, 2024 · 1 comment
Open

Support all Marker Interfaces in EMF export #367

ftomassetti opened this issue Jul 10, 2024 · 1 comment

Comments

@ftomassetti
Copy link
Member

#361 introduced marker interfaces, that cause the export of the EMF metamodel to fail.

For example, when publishing the EGL module we get:

Exception in thread "main" java.lang.Error: This class does not belong to this EPackage: com.strumenta.kolasu.model.EntityGroupDeclaration. This EPackage: com.strumenta.egl. Kotlin Package Name: com.strumenta.egl.ast
        at com.strumenta.kolasu.emf.MetamodelBuilder.classToEClass(MetamodelBuilder.kt:184)
        at com.strumenta.kolasu.emf.MetamodelBuilder.provideClass(MetamodelBuilder.kt:373)
        at com.strumenta.kolasu.emf.MetamodelBuilder.classToEClass(MetamodelBuilder.kt:196)
        at com.strumenta.kolasu.emf.MetamodelBuilder.provideClass(MetamodelBuilder.kt:373)
        at com.strumenta.kolasu.emf.MetamodelBuildingKt.toEPackage(MetamodelBuilding.kt:84)
        at com.strumenta.kolasu.emf.MetamodelBuildingKt.toEPackage$default(MetamodelBuilding.kt:64)
        at com.strumenta.kolasu.emf.cli.KolasuLanguageGeneratorCommand.run(KolasuLanguageGeneratorCommand.kt:17)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:198)
        at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:18)
        at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:400)
        at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:397)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:415)
        at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:440)
        at com.strumenta.egl.ast.KolasuLanguage.main(KolasuLanguage.kt:254)
@ftomassetti
Copy link
Member Author

Maybe this is handled already correctly and the problem is due to starlasu tools using an old version of Kolasu

@ftomassetti ftomassetti changed the title Support Marker Interfaces in EMF export Support all Marker Interfaces in EMF export Jul 10, 2024
@ftomassetti ftomassetti reopened this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant