[Bug]: Listening phase does not start when listeners are available only in imported modules #41667
Labels
Priority/High
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Bug
Description
Listening phase does not start when listeners are available only in imported modules.
With 7aff2ff it will work when the code is compiled for the first time (without using BIR cache). But the problem will exist when the code is compiled using the BIR cache because both the
packageSymbol.bir
andimportPkgSymbol
will benull
.Steps to Reproduce
Without using any Ballerina libraries, the issue can be reproduced as follows.
.Ballerina
folder.test_listener_non_default.zip
bal clean
,bal pack
, andbal push --repository local
for the above package.use_listener.zip
bal run
for the above package. It should hang in the listening phase untilSIGINT
is received.Issue with http listeners is illustrated below.
bal clean
,bal pack
, andbal push --repository local
for a Ballerina package with below service.Ballerina.toml
Ballerina.toml
Affected Version(s)
2201.7.3
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
The text was updated successfully, but these errors were encountered: