-
As per the current implementation of the configuration Toml feature, the location of the configuration.toml file should be either defined as a system variable or should be located at the directory where the CLI command is executed. VSCode plugin supports 'run', 'build', etc. pallette commands by directly executing ballerina CLI commands at the project root for ballerina projects and by passing the bal file path as an argument for single file projects. If the configuration.toml feature is used in a particular bal file or a project, there's a greater chance that the commands will fail. As a solution, the plugin can ask for the configuration.toml file path as a user input before executing the command if required. However, we do not have the ballerina CLI support to pass the configuration.toml file path. Related issue: https://github.com/ballerina-platform/plugin-vscode/issues/132 @HindujaB Is there any possibility to introduce the configuration.toml path as an optional parameter for CLI commands? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Ballerina currently supports the environment variable and the current working directory to locate the And IIANM, we log the working directory when running vscode plugin commands at the output terminal like
With proper documentations provided, wouldn't it be expected from the user to have the @manuranga @warunalakshitha What do you think? But, we still don't log the execution directory for Ballerina debugger, though. |
Beta Was this translation helpful? Give feedback.
Ballerina currently supports the environment variable and the current working directory to locate the
Config.toml
file.Due to the complexity between user defined arguments and ballerina arguments, we kept only the above methods.
And IIANM, we log the working directory when running vscode plugin commands at the output terminal like
With proper documentations provided, wouldn't it be expected from the user to have the
Config.toml
at the required location?In this case, the project root or using the env variable.
@manuranga @warunalakshitha What do you think?
But, we still don't log the execution directory for Ballerina debugger, …