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

Test Coverage: Generation fails when a module is not added to the default layout of the test build script #20

Open
alexanderpann opened this issue Oct 20, 2023 · 0 comments

Comments

@alexanderpann
Copy link
Member

The corresponding exception is:

jetbrains.mps.generator.impl.TemplateQueryException: reference macro target query failed
	at jetbrains.mps.generator.template.DefaultQueryExecutionContext.evaluate(DefaultQueryExecutionContext.java:207)
	at jetbrains.mps.generator.impl.reference.ReferenceInfo_Macro2.expandReferenceMacro(ReferenceInfo_Macro2.java:53)
	at jetbrains.mps.generator.impl.reference.ReferenceInfo_MacroBase.create(ReferenceInfo_MacroBase.java:41)
	at jetbrains.mps.generator.impl.reference.PostponedReference.initReplacementReference(PostponedReference.java:88)
	at jetbrains.mps.generator.impl.reference.PostponedReferenceUpdate.prepare(PostponedReferenceUpdate.java:44)
	at jetbrains.mps.generator.impl.TemplateGenerator.apply(TemplateGenerator.java:253)
	at jetbrains.mps.generator.impl.GenerationSession.executeMajorStepInternal(GenerationSession.java:478)
	at jetbrains.mps.generator.impl.GenerationSession.executeMajorStep(GenerationSession.java:434)
	at jetbrains.mps.generator.impl.GenerationSession.processGenPlanBranch(GenerationSession.java:290)
	at jetbrains.mps.generator.impl.GenerationSession.generateModel(GenerationSession.java:205)
	at jetbrains.mps.generator.impl.GenerationController.generateModel(GenerationController.java:140)
	at jetbrains.mps.generator.impl.GenerationController.generate(GenerationController.java:72)
	at jetbrains.mps.generator.GenerationFacade.process0(GenerationFacade.java:178)
	at jetbrains.mps.generator.GenerationFacade.process(GenerationFacade.java:161)
	at jetbrains.mps.lang.core.plugin.Generate_Facet$Target_generate$1.lambda$execute$1(Generate_Facet.java:453)
	at jetbrains.mps.smodel.ActionDispatcher.dispatch(ActionDispatcher.java:99)
	at jetbrains.mps.smodel.ActionDispatcher.lambda$wrap$0(ActionDispatcher.java:136)
	at jetbrains.mps.smodel.LockRunnable.run(LockRunnable.java:60)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:839)
	at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:84)
	at jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:56)
	at jetbrains.mps.lang.core.plugin.Generate_Facet$Target_generate$1.execute(Generate_Facet.java:450)
	at jetbrains.mps.internal.make.runtime.script.Script.lambda$executeTargets$0(Script.java:309)
	at jetbrains.mps.ide.make.WorkbenchMakeService$Controller.runJobWithMonitor(WorkbenchMakeService.java:314)
	at jetbrains.mps.internal.make.runtime.script.Script.executeTargets(Script.java:254)
	at jetbrains.mps.internal.make.runtime.script.Script.execute(Script.java:232)
	at jetbrains.mps.make.service.CoreMakeTask.lambda$doRun$0(CoreMakeTask.java:101)
	at jetbrains.mps.make.dependencies.MakeSequence.iterate(MakeSequence.java:54)
	at jetbrains.mps.make.service.CoreMakeTask.doRun(CoreMakeTask.java:75)
	at jetbrains.mps.ide.make.MakeTask$WorkbenchMakeTask.doRun(MakeTask.java:148)
	at jetbrains.mps.make.service.CoreMakeTask.run(CoreMakeTask.java:54)
	at jetbrains.mps.ide.make.MakeTask$2.run(MakeTask.java:68)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException
	at org.mpsqa.testcov.buildIntegration.jacoco.generator.templates.QueriesGenerated.referenceMacro_GetReferent_6_1(QueriesGenerated.java:192)
	at org.mpsqa.testcov.buildIntegration.jacoco.generator.templates.QueriesGenerated$RTQ.evaluate(QueriesGenerated.java:750)
	at jetbrains.mps.generator.template.DefaultQueryExecutionContext.evaluate(DefaultQueryExecutionContext.java:203)
	... 32 more
@alexanderpann alexanderpann changed the title Test Coverage: Generation fails when a module is not added the default layout of the test build script Test Coverage: Generation fails when a module is not added to the default layout of the test build script Oct 20, 2023
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