-
Notifications
You must be signed in to change notification settings - Fork 15
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
[FEATURE] Imports from Anywhere on the FS #593
Comments
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 (eclipse-langium/langium#1554) to determine whether they would be able to make that async in future releases. |
Was pointed to this discussion: eclipse-langium/langium#1308 |
FYI, with Jayvee 0.6.0, importing documents above a model still shows an error in the VSCode extension, e.g. consider the following directories:
If you open
If you run |
Actually, the language server part of this might have been a caching (?) issue on my side, seems to work now and not show an error in the jv model. However, the interpreter still errors if run from |
Yes, the interpreter and the VSCode plugin take the current directory (where jv is run / the IDE is opened) as basis to load files. That means we cannot link to anything outside of that scope yet. Quick-fix for now: Start the editor or execute the jv program from a higher directory. For implementing a more dynamic loading we will have to rework the whole file loading mechanism. Caveat: Auto-complete will never work in that regard. |
User Story
User Acceptance Criteria
See discussion in #590 for more details.
Definitions of Done
The text was updated successfully, but these errors were encountered: