Open pubudu91 opened 1 year ago
Hii ballerina team , I would like to work on this task
done with the task kindly check.
Hi @Abhi132004! 🚀
We value your contributions and look forward to collaborating with you. To help you get started, here are some essential resources:
Remember, no contribution is too small, and your feedback is invaluable. Feel free to ask questions, propose ideas, or report issues. Together, we can make Ballerina even better!
Happy coding! 🎉
done with the task kindly check.
Hi @Abhi132004
You have to do the fix and send a PR to the ballerina-platform organization repository. Please look into the resources provided before working on the issue. Feel free to ask any questions you have regarding this issue.
Hi @Abhi132004 . Regarding your PR, this is something different from what we expect in this issue. We need to handle the error from the tool level instead of ballerina program level. When a user runs the tool to generate a Ballerina stub file, it does not run inside a Ballerina program, It's a separate Java program which starts it's execution from here [1]. Feel free to ask questions if anything is not clear.
@dilanSachi fine, So I need to make change in code itself or I will submit a new PR as a new file?
@dilanSachi fine, So I need to make change in code itself or I will submit a new PR as a new file?
You need to change our existing codebase to do this change and send a new pr to the repo
@dilanSachi here's the updated file , This modified code catches exceptions that can occur during the execution of methods such as getProtoFiles and generateBalFile. In contrast, the original code doesn't catch these exceptions explicitly and might lead to unexpected crashes.
The expected changes from the reviewers in patch1 implemented successfully
Code readability improved as mentioned, code updated such that it dosen't exceed 120 words limit ,@ThisaruGuruge @keizer619 @dilanSachi @daneshk
The changes mentioned is implemented in the same pr(patch 3) @dilanSachi
All mentioned changes from patch1-3 are implemented successfully
Hi @keizer619 , Can I get this issue assigned to me
Hi @keizer619 can you assign me? I would like to work on this issue.
@mohammadruman Are you working on this? If not we can let @Ishad-M-I-M to take this
When the proto file is invalid, the
grpc
command crashes. It would be better if we can have proper error messages for the failures.For example, in my case, the issue was I hadn't defined a type that I had used in another type:
The
User
wasn't defined in the file. The output from thegrpc
command was as follows:This has 2 problems:
grpc
command has crashed. This is not a good look to have the runtime crash.