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

Crash when using bal mi tool with the input directory current directory #7370

Open
poorna2152 opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@poorna2152
Copy link

Description

When using the bal mi tool with the current directory i.e. bal mi -i . a crash happens. Following is the output seen.

ballerina: Oh no, something really went wrong. Bad. Sad.

We appreciate it if you can report the code that broke Ballerina in
https://github.com/ballerina-platform/ballerina-lang/issues with the
log you get below and your sample code.

We thank you for helping make us better.

[2024-11-19 08:10:41,134] SEVERE {b7a.log.crash} - '/Documents/bal-price-calculation/.' is already within a Ballerina package 
io.ballerina.projects.ProjectException: '/Documents/bal-price-calculation/.' is already within a Ballerina package
        at io.ballerina.projects.internal.ProjectFiles.validateBuildProjectDirPath(ProjectFiles.java:370)
        at io.ballerina.projects.internal.PackageConfigCreator.createBuildProjectConfig(PackageConfigCreator.java:59)
        at io.ballerina.projects.directory.BuildProject.load(BuildProject.java:119)
        at io.ballerina.projects.directory.ProjectLoader.loadProject(ProjectLoader.java:81)
        at io.ballerina.projects.directory.ProjectLoader.loadProject(ProjectLoader.java:41)
        at io.ballerina.mi.cmd.MiCmd.execute(MiCmd.java:65)
        at java.base/java.util.Optional.ifPresent(Optional.java:178)
        at io.ballerina.cli.launcher.Main.main(Main.java:59)

Steps to Reproduce

Use the following code bal mi -i .

Version

v0.1.2

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant