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

Type name resolution in the new metamodel support does not handle built-in types #314

Closed
jeromesimeon opened this issue Aug 12, 2021 · 0 comments · Fixed by #315
Closed
Assignees
Labels
Type: Bug 🐛 Something isn't working

Comments

@jeromesimeon
Copy link
Member

Bug Report 🐛

Name resolution when importing a CTO file into its JSON syntax tree as instance of the Concerto metamodel does not handle built-in types (e.g., Concept, Participant etc).

Expected Behavior

Built in types should be resolved properly in the concerto namespace.

Current Behavior

Name resolution fails when importing a CTO model:

zsh-5.8$ ../concerto-cli/index.js import --input test/data/model/person.cto --resolve
10:06:47 AM - ERROR: Name Participant not found

Type name resolution fails on a declaration like this

namespace test

concept FOO {
  o Participant p
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Something isn't working
Projects
None yet
1 participant