[Bug]: Can't use the configs defined in a submodule. #40356
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Question
userCategory/Compilation
Description
When using configurations in the ballerina config model, we are defining types that correspond to the configs in the toml file. I have encountered the following issue with configuration usage.
Steps to Reproduce
mymodule
.Config.toml
file in the root of the project.myconfig
file, define a config type as below.main.bal
file use the config initialized in themymodule
as below.bal run
and it will show the following error.Affected Version(s)
Ballerina 2201.5.0 (Swan Lake Update 5)
Language specification 2022R4
Update Tool 1.3.14
OS, DB, other environment details and versions
Linux
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: