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)
Description
When using the bal mi tool with the current directory i.e.
bal mi -i .
a crash happens. Following is the output seen.Steps to Reproduce
Use the following code
bal mi -i .
Version
v0.1.2
Environment Details (with versions)
No response