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

Decision graph compilation crash when getting an ambiguous slot name #231

Open
michbarsinai opened this issue Sep 5, 2019 · 0 comments
Open
Assignees

Comments

@michbarsinai
Copy link
Member

Here, we have two slots named LegalStatus.

Sep 05, 2019 2:46:16 PM edu.harvard.iq.policymodels.cli.CliRunner promptUserForAnswer
SEVERE: Error executing command: Tag not found
java.lang.RuntimeException: Tag not found
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.findSlot(CompilationUnit.java:199)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$400(CompilationUnit.java:72)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:282)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstConsiderNode.accept(AstConsiderNode.java:37)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:391)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstSetNode.accept(AstSetNode.java:142)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.lambda$visit$1(CompilationUnit.java:360)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:359)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstAskNode.accept(AstAskNode.java:38)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.access$300(CompilationUnit.java:72)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:426)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit$1.visit(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.ast.AstPartNode.accept(AstPartNode.java:44)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.buildNodes(CompilationUnit.java:267)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.lambda$compile$9(CompilationUnit.java:168)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at edu.harvard.iq.policymodels.parser.decisiongraph.CompilationUnit.compile(CompilationUnit.java:168)
	at edu.harvard.iq.policymodels.parser.decisiongraph.DecisionGraphCompiler.compile(DecisionGraphCompiler.java:100)
	at edu.harvard.iq.policymodels.parser.PolicyModelLoader.load(PolicyModelLoader.java:111)
	at edu.harvard.iq.policymodels.cli.commands.LoadPolicyModelCommand.execute(LoadPolicyModelCommand.java:72)
	at edu.harvard.iq.policymodels.cli.commands.ReloadModelCommand.execute(ReloadModelCommand.java:28)
	at edu.harvard.iq.policymodels.cli.CliRunner.promptUserForAnswer(CliRunner.java:242)
	at edu.harvard.iq.policymodels.cli.CliRunner.go(CliRunner.java:168)
	at edu.harvard.iq.policymodels.mains.PolicyModelCliRunner.main(PolicyModelCliRunner.java:36)
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

2 participants