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

Invalid result for expression getImplementations(i,model)->asSequence()->at(1) #1

Open
mkllnk opened this issue Oct 4, 2023 · 0 comments

Comments

@mkllnk
Copy link
Contributor

mkllnk commented Oct 4, 2023

I followed your setup instructions and it all worked well. Well done! I noticed a couple of errors during generation though. They seem to affect PHP only though.

org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result for expression getImplementations(i,model)->asSequence()->at(1) at line 67 in Module queries for query getImplementation(Interface,Model). Last recorded value of self was org.eclipse.uml2.uml.internal.impl.InterfaceImpl@31c628e7 (name: ISKOSConceptScheme, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false). Problem found while generating the file '/home/maikel/code/connector-codegen/gen/php/test/SKOSConceptTest.php'.
	at queries.getImplementation(Type,Model)(queries.mtl:0)
	at queries.getImplementation(Type,Model)(queries.mtl:0)
	at queries.getImplementation(TypedElement,Model)(queries.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:100)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:100)
	at test.generateAdderTest(Property,Model)(test.mtl:0)
	at test.generateAdderTest(Property,Model)(test.mtl:90)
	at test.generateAdderTest(Property,Model)(test.mtl:89)
	at test.generateAdderTest(Property,Model)(test.mtl:88)
	at test.generateAdderTest(Property,Model)(test.mtl:87)
	at test.generateAdderTest(Property,Model)(test.mtl:86)
	at test.generateClassTest(Model,Class)(test.mtl:0)
	at test.generateClassTest(Model,Class)(test.mtl:45)
	at test.generateClassTest(Model,Class)(test.mtl:43)
	at test.generateClassTest(Model,Class)(test.mtl:35)
	at test.generateClassTest(Model,Class)(test.mtl:10)
	at test.generateClassTest(Model,Class)(test.mtl:9)
	at generate.generatePhp(Model)(generate.mtl:0)
	at generate.generatePhp(Model)(generate.mtl:12)
	at generate.generatePhp(Model)(generate.mtl:9)
	at generate.generate(Model)(generate.mtl:0)
	at generate.generate(Model)(generate.mtl:8)
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result for expression getImplementations(i,model)->asSequence()->at(1) at line 67 in Module queries for query getImplementation(Interface,Model). Last recorded value of self was org.eclipse.uml2.uml.internal.impl.InterfaceImpl@3240b2a4 (name: ISKOSLabel, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false). Problem found while generating the file '/home/maikel/code/connector-codegen/gen/php/test/SKOSConceptTest.php'.
	at queries.getImplementation(Type,Model)(queries.mtl:0)
	at queries.getImplementation(Type,Model)(queries.mtl:0)
	at queries.getImplementation(TypedElement,Model)(queries.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:0)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:100)
	at test.generateNewParameter(Parameter,String,Model)(test.mtl:100)
	at test.generateAdderTest(Property,Model)(test.mtl:0)
	at test.generateAdderTest(Property,Model)(test.mtl:90)
	at test.generateAdderTest(Property,Model)(test.mtl:89)
	at test.generateAdderTest(Property,Model)(test.mtl:88)
	at test.generateAdderTest(Property,Model)(test.mtl:87)
	at test.generateAdderTest(Property,Model)(test.mtl:86)
	at test.generateClassTest(Model,Class)(test.mtl:0)
	at test.generateClassTest(Model,Class)(test.mtl:45)
	at test.generateClassTest(Model,Class)(test.mtl:43)
	at test.generateClassTest(Model,Class)(test.mtl:35)
	at test.generateClassTest(Model,Class)(test.mtl:10)
	at test.generateClassTest(Model,Class)(test.mtl:9)
	at generate.generatePhp(Model)(generate.mtl:0)
	at generate.generatePhp(Model)(generate.mtl:12)
	at generate.generatePhp(Model)(generate.mtl:9)
	at generate.generate(Model)(generate.mtl:0)
	at generate.generate(Model)(generate.mtl:8)
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