-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unclear error message "The error was: stream is already consumed" for invalid Metapath expressions #289
Labels
Milestone
Comments
I think this is caused by reusing a cached function result sequence that is stream (default) and not list backed. Streams cannot be reused, thus the need to ensure the sequence is list backed. Based on my current theory, the following should fix the error. Change the code in if (callingContext != null) {
// ensure the result sequence is list backed
result.getValue();
// add result to cache
dynamicContext.cacheResult(callingContext, result);
} |
david-waltermire
added a commit
to david-waltermire/metaschema-java
that referenced
this issue
Dec 12, 2024
… Metapath expressions. Resolves metaschema-framework#289.
9 tasks
david-waltermire
added a commit
to david-waltermire/metaschema-java
that referenced
this issue
Dec 12, 2024
… Metapath expressions. Resolves metaschema-framework#289.
david-waltermire
added a commit
to david-waltermire/metaschema-java
that referenced
this issue
Dec 19, 2024
… Metapath expressions. Resolves metaschema-framework#289. (metaschema-framework#290)
david-waltermire
added a commit
to david-waltermire/metaschema-java
that referenced
this issue
Dec 19, 2024
… Metapath expressions. Resolves metaschema-framework#289. (metaschema-framework#290)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
User Story
As a developer of Metaschema-enabled tooling, in order to increase the speed of development and debugging Metapath code, I need more precise error messaging where I frequently receive the error message.
A fairly complex example that I can to turn into a minimally viable and producible example is in this GitHub Gist.
Goals
test
,target
, ormessage
Dependencies
No response
Acceptance Criteria
Revisions
No response
The text was updated successfully, but these errors were encountered: