jvalue / jayvee

Jayvee is a domain-specific language and runtime for automated processing of data pipelines
https://jvalue.github.io/jayvee/
116 stars 10 forks source link

[FEATURE] Imports from Anywhere on the FS #593

Open georg-schwarz opened 4 weeks ago

georg-schwarz commented 4 weeks ago

User Story

  1. As a {Jayvee user}
  2. I want {to perform Imports from anywhere of my file system}
  3. So that {model parsing and interpretation don't depend on the current directory (like in Python)}

User Acceptance Criteria

See discussion in #590 for more details.

Definitions of Done

georg-schwarz commented 4 weeks ago

Gave it a try to dynamically load files when imported on this branch: https://github.com/jvalue/jayvee/compare/dynamically-load-imported-documents?expand=1

Ran into a roadblock because Langium's ScopeProvider has a synchronous interface. I will open a ticket (https://github.com/eclipse-langium/langium/issues/1554) to determine whether they would be able to make that async in future releases.

georg-schwarz commented 4 weeks ago

Was pointed to this discussion: https://github.com/eclipse-langium/langium/discussions/1308 We should be able to implement it in that way I think.