You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue arises when attempting to import types from an online URI within a namespace. The import fails, returning a "Namespace is not defined for type/import" error for all types that are included from the external URI, even when the namespace is properly defined for that type/import in the code for which error is shown.
Expected Behavior
The import statement should correctly recognize the namespace and types defined in the external URI, allowing the file to be processed without errors.
If there is an error in the import, error should correctly identify the wrong import.
Current Behavior
The import process fails, producing an error message stating that the "Namespace is not defined" for the imported type.
Possible Solution
Investigate the handling of namespaces during the validation in concerto-core, especially for files imported from an external URI. Ensure that the namespace definitions from the imported files are properly recognized and integrated into the current file's namespace.
Steps to Reproduce
Define a namespace in a .cto file (e.g., namespace [email protected]).
Bug Report 🐛
The issue arises when attempting to import types from an online URI within a namespace. The import fails, returning a "Namespace is not defined for type/import" error for all types that are included from the external URI, even when the namespace is properly defined for that type/import in the code for which error is shown.
Expected Behavior
The import statement should correctly recognize the namespace and types defined in the external URI, allowing the file to be processed without errors.
If there is an error in the import, error should correctly identify the wrong import.
Current Behavior
The import process fails, producing an error message stating that the "Namespace is not defined" for the imported type.
Possible Solution
Investigate the handling of namespaces during the validation in concerto-core, especially for files imported from an external URI. Ensure that the namespace definitions from the imported files are properly recognized and integrated into the current file's namespace.
Steps to Reproduce
See here the second import is wrong, it should be org.accordproject.cicero.dom).
Context (Environment)
Application
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: