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

Unexpected error when using dist pull #233

Open
hasithaa opened this issue Aug 15, 2022 · 2 comments
Open

Unexpected error when using dist pull #233

hasithaa opened this issue Aug 15, 2022 · 2 comments
Assignees
Labels

Comments

@hasithaa
Copy link

Observed following when test 2201.2.

Notice, that I have given the wrong ballerina version to test this.
I did update the ballerina command, but it failed with a version not found error. (Expected)
But 'f' is not recognized as an internal or external command, is an unexpected error message.

C:\WINDOWS\system32>bal dist pull 2202.1.1
Checking for newer versions of the update tool...
Downloading ballerina-command-1.3.9 100% [===============================================] 1/1 MB (0:00:01 / 0:00:00)
1 File(s) copied
1 File(s) copied
Tool version updated to the latest version: 1.3.9
Cleaning old files...
C:\PROGRA~1\BALLER~1\lib\ballerina-command-1.3.10.jar

Update successfully completed

ballerina: distribution '2202.1.1' not found
'f' is not recognized as an internal or external command,
operable program or batch file.
ballerina: unknown command 'dist'
Run 'bal help' for usage.
@udda1996 udda1996 self-assigned this Aug 15, 2022
@NipunaMadhushan
Copy link
Contributor

I tested this in windows and I got the following.
test1

Seems like I'm getting the error message as expected.

@udda1996
Copy link
Contributor

udda1996 commented Aug 19, 2022

This happens when we update the tool, we replace the bal.bat (or bal file depending on the OS) file with the newly available one in the new Tool version while running the install script. This is a known issue. When the batch file is edited while it is being executed the commands could get executed partially. https://stackoverflow.com/questions/34856786/my-batch-files-cmd-sometimes-execute-partial-lines

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

Successfully merging a pull request may close this issue.

3 participants