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

Error while processing file, that has imports #14

Open
TertiumOrganum1 opened this issue Nov 28, 2024 · 1 comment
Open

Error while processing file, that has imports #14

TertiumOrganum1 opened this issue Nov 28, 2024 · 1 comment

Comments

@TertiumOrganum1
Copy link

Error while processing file, that has imports (at least local: for example, import "./spa_context.cml")

command:
~/apps/context-mapper-cli-6.12.0/bin/cm generate -i back_context.cml -g plantuml -o ../out_img
result:

Exception in thread "main" java.lang.IllegalArgumentException: resolve against non-hierarchical or relative base at org.eclipse.emf.common.util.URI$Hierarchical.resolve(URI.java:3548) at org.eclipse.emf.common.util.URI.resolve(URI.java:5580) at org.contextmapper.dsl.cml.CMLImportResolver.resolveImportedResources(CMLImportResolver.java:42) at org.contextmapper.dsl.cml.CMLModelDomainAndSubdomainResolver.initAllDeclaredSubdomainsIncludingImportedOnes(CMLModelDomainAndSubdomainResolver.java:87) at org.contextmapper.dsl.cml.CMLModelDomainAndSubdomainResolver.<init>(CMLModelDomainAndSubdomainResolver.java:38) at org.contextmapper.dsl.generator.PlantUMLGenerator.generateFromContextMappingModel(PlantUMLGenerator.java:61) at org.contextmapper.dsl.generator.AbstractContextMappingModelGenerator.doGenerate(AbstractContextMappingModelGenerator.java:54) at org.contextmapper.dsl.standalone.StandaloneContextMapper.callGenerator(StandaloneContextMapper.java:61) at org.contextmapper.cli.commands.GenerateCommand.run(GenerateCommand.java:55) at org.contextmapper.cli.ContextMapperCLI.run(ContextMapperCLI.java:59) at org.contextmapper.cli.ContextMapperCLI.main(ContextMapperCLI.java:44)

If there are no imports everything works

@TertiumOrganum1
Copy link
Author

Checked with absolute paths - the same exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant