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

[Bug]: Cannot use getRuntime().callFunction() method without using the module version #43617

Open
NipunaMadhushan opened this issue Nov 20, 2024 · 0 comments
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation

Comments

@NipunaMadhushan
Copy link
Contributor

Description

When we use env.getRuntime().callFunction() we need to provide module details (org, name, majorVersion). But when we define a module, the majorVersion is optional and we have several usecases where we do not know the module version.

When we pass the module without majorVersion for the env.getRuntime().callFunction() method, it fails to read the module from runtimeValueCreators. The reason is that the runtimeValueCreators contains module names with version (e.g. ballerina/http:2) and what we search does not contain the version.

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needTriage The issue has to be inspected and labeled manually Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

2 participants