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]: Ballerina C2C plugin fails when trying to build the docker images for an HTTP service #43795

Open
ayeshLK opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
needTriage The issue has to be inspected and labeled manually Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug userCategory/Compilation

Comments

@ayeshLK
Copy link
Member

ayeshLK commented Feb 5, 2025

Description

$subject

Ballerina C2C plugin crashes with following error.

error: compilation failed: The compiler extension in package 'ballerina:cloud:3.1.0' failed to complete. class io.ballerina.compiler.syntax.tree.QualifiedNameReferenceNode cannot be cast to class io.ballerina.compiler.syntax.tree.BasicLiteralNode (io.ballerina.compiler.syntax.tree.QualifiedNameReferenceNode and io.ballerina.compiler.syntax.tree.BasicLiteralNode are in unnamed module of loader 'app')

Steps to Reproduce

  1. Create a new ballerina project (with service template)
bal new sample_http_svc -t service
  1. Go into sample_http_svc and add a new module to the project.
bal add config
  1. Add new configurable value to the config.bal file.
public configurable int port = 9090;
  1. Use the defined configurable inside the service.bal
service / on new http:Listener(config:port) {
    // other resource functions
}
  1. Build the project using Ballerina C2C plugin.
bal build --cloud=docker

Affected Version(s)

  • Ballerina SL 2201.10.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

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Feb 5, 2025
@ayeshLK ayeshLK added the Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) label Feb 5, 2025
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 Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

4 participants