ballerina-platform / ballerina-distribution Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Description:
Seems like the router script does not pick the packed jre version properly after #170.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
1.0.0-beta
OS, DB, other environment details and versions:
OS Version: Ubuntu 18.04
Steps to reproduce:
Related Issues:
Description:
ballerina help
gives the following output:
...
...
Update tool Commands:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
When I run ballerina list
, it says its an unknown command:
ballerina: unknown command 'list'
Run 'ballerina help' for usage.
Description:
On ballerina 1.1.0-alpha, when you issue the ballerina update
, it fails like the below.
$ ballerina update
Current user does not have write permissions to directory
Using tool version: 0.8.1
What are the next steps of a user?
User will be lost from this step on what to do next.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Currently for all the string escaping/unescaping done throughout the whole Ballerina project is handled using the commons-lang3
library. Need to check whether we can just simply borrow the code for escaping/unescaping and get rid of the dependency, since it only seems to be used for this.
Description:
Refer to the below command sequence. Just with the ballerina fetch command it has switched the version. This should happen only after issuing ballerina dist use
. It seems now the output of ballerina dist fetch
is equivalant to ballerina dist pull
➜ ~ ballerina dist list
Distributions available locally:
jballerina-1.1.0-alpha
Distributions available remotely:
jballerina-1.0.0
jballerina-1.0.1
jballerina-1.0.2
jballerina-1.0.3
jballerina-1.0.4
➜ ~ ballerina dist fetch jballerina-1.0.0
Current user does not have write permissions to /Library/Ballerina/distributions directory
➜ ~ sudo ballerina dist fetch jballerina-1.0.0
Password:
Sorry, try again.
Password:
Downloading jballerina-1.0.0 100% [=============================================================================================================================================================================] 99/99 (0:08:09 / 0:00:00)
jballerina-1.0.0 is installed. Please execute "ballerina dist use jballerina-1.0.0" to use as the default
➜ ~ ballerina dist list
Distributions available locally:
jballerina-1.1.0-alpha
* jballerina-1.0.0
Distributions available remotely:
jballerina-1.0.1
jballerina-1.0.2
jballerina-1.0.3
jballerina-1.0.4
➜ ~ ballerina -v
Ballerina 1.0.0
Language specification 2019R3
Command 1.1.0-alpha
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
Removing alpha dist using ballerina update command, after changing to a different versions fails.
Step 01
$ ballerina dist list
Distributions available locally:
jballerina-1.1.0-alpha
* jballerina-1.0.2
Distributions available remotely:
jballerina-1.0.0
jballerina-1.0.1
jballerina-1.0.3
jballerina-1.0.4
Step 02
$ ballerina dist remove jballerina-1.1.0-alpha
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
jballerina-1.1.0-alpha cannot remove
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Currently, there isn't an example on finite types in BBE
Issue by shavantha
Thursday Apr 19, 2018 at 12:24 GMT
Originally opened as https://github.com/ballerina-platform/ballerina-examples/issues/279
the .sh file or the description file should mention if a project sub-folder within a sample needs to be initialized
for an example grpc-unary-service samples init file has the below instructions. but before we initialize the sample folder if we run ballerina run client
, the step wont work and we are shown a ballerina: cannot find package 'client'
so we need to initialize the sample folder first. This needs to be mentioned on all samples which has a client folder.
#Run the service
$ ballerina run grpc-unary-service.bal
ballerina: initiating service(s) in 'grpc-unary-service.bal'
#Run client connector
ballerina run client
~
~
~
Description:
Error,
C:\Users\hasitha>ballerina dist update
Failed : HTTP error code : 404
C:\Users\hasitha>ballerina version
jBallerina 1.1.0-alpha
Language specification 2019R3
Command 1.1.0-alpha
C:\Users\hasitha>
Description:
$ ballerina dist update
Using jballerina-1.0.4
Using jballerina-1.0.4
Also this is there with ballerina dist pull
command as well.
$ ballerina dist pull jballerina-1.0.2
Using jballerina-1.0.2
Using jballerina-1.0.2
Description:
The platform distribution contains tools distribution version as the version in /bin/version file.
Suggested Labels:
Bug
Affected Product Version:
beta-0
OS, DB, other environment details and versions:
Pack downloaded from the Windows installer
Description:
sudo chmod 756 /Library/Ballerina/distributions
➜ ~ ballerina dist pull jballerina-1.0.4
Cannot connect to the central server
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
Running ballerina dist use
command with a non-exixting ballerina version, silently exit without giving any error.
eg: ballerina dist use jballerina-x.x.x
Description:
Current readme file contains very generic information regarding the tools pack. It only provides steps to build the pack, but not how to run/use the composer or runtime.
Suggested Labels:
Improvement
Description:
Should we list "Update Tool Commands" before the "Other Commands"?
Need to rename "Update tool Commands" to "Update Tool Commands" ?
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
I've installed from ballerina.io provided RPM v0.983.0-1.x86-64
. It sets BALLERINA_HOME=/usr/lib64/ballerina/ballerina-0.983.0
, but the actual value as per dir structure created need to be /usr/lib64/ballerina/ballerina-platform-0.983.0
.
This in turn results into wrong error message as well, which is Error: JAVA_HOME is not defined correctly.
.
Affected Product Version:
v0.983.0-1.x86_64
OS, DB, other environment details and versions:
Steps to reproduce:
I've fixed it locally and will submit a patch.
Description:
This is on ballerina 1.1.0-alpha
$ballerina help dist
NAME
DIST - Commands for ballerina distribution version management
SYNOPSIS
ballerina [-h | --help]
<command> [<args>]
DESCRIPTION
OPTIONS
-h, --help
Print usage details of a command.
BALLERINA COMMANDS
Available commands are:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
EXAMPLES
Get help on how to use the ballerina command.
→ ballerina dist --help
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Need to review the content of all the commands of the update tool:
Description:
Run any ballerina command.
ballerina.bat -v
The system cannot find the path specified.
Command 1.1.0-alpha
Steps to reproduce:
Workaround
Details
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.17763 N/A Build 17763
Description:
Add support for installing Ballerina via MacPorts
Steps to reproduce:
N/A
Affected Versions:
N/A
OS, DB, other environment details and versions:
macOS 10.14
Related Issues (optional):
N/A
Suggested Labels (optional):
macOS/Package Management
Suggested Assignees (optional):
I would be interested in building a MacPorts Portfile for the Ballerina Language.
Description:
$ ballerina dist list
Distributions available locally:
jballerina-1.1.0-alpha
Distributions available remotely:
jballerina-1.0.0
jballerina-1.0.1
jballerina-1.0.2
jballerina-1.0.3
jballerina-1.0.4
$ ballerina dist use jballerina-1.0.1
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
Something like: ballerina dist update ballerina-x.x.x
Description:
$title.
Description:
If a user is running ballerina update
or ballerina dist pull
, etc which deals with writing new files to local fils system, the update command expects the process to have write permission to the process. But it looks like this check is done as the last part which happens after checking for latest version, downloading the version, and then try to create/write files by extracting the download resources.
$ ballerina update
Current user does not have write permissions to directory
Using tool version: 0.8.1
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
With 1.1.0-alpha, when we check the help command output, it is not aligned properly, especially the "Update tool Commands" related help message.
$ballerina help
NAME
The Ballerina build tool
SYNOPSIS
ballerina [-v | --version] [-h | --help]
<command> [<args>]
DESCRIPTION
Ballerina is a statically typed, concurrent programming language, focusing on network interaction and structured
data. It is intended to be the core of a language-centric middleware platform. It has all the general-purpose
functionality expected of a modern programming language, but it also has several unusual aspects that make it
particularly suitable for its intended purpose.
Find more information at: https://ballerina.io/
OPTIONS
-v, --version
Print the Ballerina version information.
-h, --help
Print usage details of a command.
BALLERINA COMMANDS
Here is a list of available subcommands:
Core Commands:
build Compile Ballerina program into an executable
run Build and run Ballerina program
test Run module tests
doc Generate API documentation
clean Clean artifacts generated during the build
format Format Ballerina sources
Module Commands:
pull Pull a module from Ballerina Central
push Upload module to the Ballerina Central
search Search Ballerina Central for modules
Project Commands:
new Create a new Ballerina project
add Create a new Ballerina module in a project
Other Commands:
encrypt Encrypt sensitive data
grpc Generate Ballerina sources for the given protobuf definition
openapi Generate Ballerina sources for the given OpenAPI definition and vice versa.
version Print Ballerina version
Update tool Commands:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
See 'ballerina help <command>' for more information on a specific command.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
$title.
Description:
Assume I have the following b7a versions and am using 1.0.4.
$ ballerina dist list
Distributions available locally:
jballerina-1.1.0-alpha
* jballerina-1.0.4
Distributions available remotely:
jballerina-1.0.0
jballerina-1.0.1
jballerina-1.0.2
jballerina-1.0.3
Should ballerina dist update
switch to the latest version (jballerina-1.1.0-alpha) now?
I assume if it was not available locally, we would pull the same anyway?
Description:
Currently, there is no content in the README file. Please update it
Running ballerina help
gives the following:
$ ballerina help
NAME
The Ballerina build tool
SYNOPSIS
ballerina [-v | --version] [-h | --help]
<command> [<args>]
DESCRIPTION
Ballerina is a statically typed, concurrent programming language, focusing on network interaction and structured
data. It is intended to be the core of a language-centric middleware platform. It has all the general-purpose
functionality expected of a modern programming language, but it also has several unusual aspects that make it
particularly suitable for its intended purpose.
Find more information at: https://ballerina.io/
OPTIONS
-v, --version
Print the Ballerina version information.
-h, --help
Print usage details of a command.
BALLERINA COMMANDS
Here is a list of available subcommands:
Core Commands:
build Compile Ballerina program into an executable
run Build and run Ballerina program
test Run module tests
doc Generate API documentation
clean Clean artifacts generated during the build
format Format Ballerina sources
Module Commands:
pull Pull a module from Ballerina Central
push Upload module to the Ballerina Central
search Search Ballerina Central for modules
Project Commands:
new Create a new Ballerina project
add Create a new Ballerina module in a project
Other Commands:
encrypt Encrypt sensitive data
grpc Generate Ballerina sources for the given protobuf definition
openapi Generate Ballerina sources for the given OpenAPI definition and vice versa.
version Print Ballerina version
Update tool Commands:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
See 'ballerina help <command>' for more information on a specific command.
Description:
Current documentation does not have a guide about the operators in ballerina.
For an example, this question should not be asked in stackoverflow, it should be easily found.
We need a BBE for demonstrating the operators like %
, ||
, &&
, etc.
When you run ballerina version
, you get the following:
$ ballerina version
jBallerina 1.1.0-alpha
Language specification 2019R3
Command 1.1.0-alpha
Instead of saying "Command", can we come up with a more descriptive name? I didn't realize "Command" meant the ballerina
CLI command until Tharik pointed it out. Maybe simply refer to it as "ballerina
command"?
Need to $subject. Currently they only contain a one sentence description.
Description:
$Subject
$ ballerina dist fetch --help
null
Description:
After installing the 1.1.0-alpha on Mac, when we check the ballerina version command, below is the output.
$ ballerina -v
jBallerina 1.1.0-alpha
Language specification 2019R3
Command 1.1.0-alpha
Command version should be 0.8.0 as discussed.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
Try some invalid command like
➜ ~ ballerina dist foo
The output is
Unmatched argument at index 1: 'foo'
Instead, it should give some meaningful error like
ballerina: unknown command 'ballerina dist foo'
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Currently these files contain some stuff that is not required such as -Xbootclasspath etc.
Description:
The output of 1.1.0-alpha does not show/list ballerina update
command related help.
$ ballerina help
NAME
The Ballerina build tool
SYNOPSIS
ballerina [-v | --version] [-h | --help]
<command> [<args>]
DESCRIPTION
Ballerina is a statically typed, concurrent programming language, focusing on network interaction and structured
data. It is intended to be the core of a language-centric middleware platform. It has all the general-purpose
functionality expected of a modern programming language, but it also has several unusual aspects that make it
particularly suitable for its intended purpose.
Find more information at: https://ballerina.io/
OPTIONS
-v, --version
Print the Ballerina version information.
-h, --help
Print usage details of a command.
BALLERINA COMMANDS
Here is a list of available subcommands:
Core Commands:
build Compile Ballerina program into an executable
run Build and run Ballerina program
test Run module tests
doc Generate API documentation
clean Clean artifacts generated during the build
format Format Ballerina sources
Module Commands:
pull Pull a module from Ballerina Central
push Upload module to the Ballerina Central
search Search Ballerina Central for modules
Project Commands:
new Create a new Ballerina project
add Create a new Ballerina module in a project
Other Commands:
encrypt Encrypt sensitive data
grpc Generate Ballerina sources for the given protobuf definition
openapi Generate Ballerina sources for the given OpenAPI definition and vice versa.
version Print Ballerina version
Update tool Commands:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
See 'ballerina help <command>' for more information on a specific command.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
When there are multiple bindings available for SLF4J in the class path, it messes with the logging configuration. According to SLF4J [1], the way a binding is selected is dependent on the JVM and therefore, should be considered a random selection. This issue may be possible to solve with SLF4J 1.8. But currently, it is still in alpha stage.
This will be an issue if a user puts a 3rd party library which has a logging framework embedded in it to the <BALLERINA_HOME>/bre/lib
directory.
To further illustrate this issue, the following is a normal log output to the console from a simple Ballerina main program.
2017-06-30 17:00:58,658 INFO [com.xyz] - Inside package 'com.xyz'
2017-06-30 17:00:58,663 INFO [com.abc] - Inside package 'com.abc'
2017-06-30 17:00:58,664 ERROR [com.abc] - Error inside package 'com.abc'
Given below is the result of executing the same program, but this time, a library with Log4J embedded in it (activemq-all-5.14.0.jar
) was placed in <BALLERINA_HOME>/bre/lib
directory.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/pubudu/products/ballerina-tools-0.89/bre/lib/activemq-all-5.14.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/pubudu/products/ballerina-tools-0.89/bre/lib/slf4j-jdk14-1.7.22.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
INFO | Inside package 'com.xyz'
INFO | Inside package 'com.abc'
ERROR | Error inside package 'com.abc'
As it can be seen from the last 3 lines, the log format is not the format we specified.
You get the following when you run ballerina dist
$ ballerina dist
NAME
DIST - Commands for ballerina distribution version management
SYNOPSIS
ballerina [-h | --help]
<command> [<args>]
DESCRIPTION
OPTIONS
-h, --help
Print usage details of a command.
BALLERINA COMMANDS
Available commands are:
list List available ballerina distributions
fetch Pull a given distribution version
pull Pull and use a given distribution version
use Switch to a specific distribution version
update Update to latest distribution version
remove Delete locally installed distribution version
EXAMPLES
Get help on how to use the ballerina command.
→ ballerina dist --help
The above text contains typos and content issues.
ballerina dist
command."?Description:
On ballerina 1.1.0-alpha the ballerina help
outputs the following.
$ ballerina help
NAME
The Ballerina build tool
SYNOPSIS
ballerina [-v | --version] [-h | --help]
<command> [<args>]
DESCRIPTION
Ballerina is a statically typed, concurrent programming language, focusing on network interaction and structured
data. It is intended to be the core of a language-centric middleware platform. It has all the general-purpose
functionality expected of a modern programming language, but it also has several unusual aspects that make it
particularly suitable for its intended purpose.
Find more information at: https://ballerina.io/
Questions
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
This is on 1.1.0-alpha
$ballerina help update
ballerina: unknown help topic `update`
Run 'ballerina help' for usage.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
When the network is disconnected, some commands says Ballerina update service
is not available while some commands says Central Server
not available.
We need to have a consistent terminolgy to refer the remote update service.
Suggested Labels:
Suggested Assignees:
Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:
Description:
I'm new to maven and java dev environments.
Arch linux does some weird stuff when it installs openjdk.
It maps to a program called archlinux-java and $JAVA_HOME doesn't exist.
OS, DB, other environment details and versions:
Arch linux
Steps to reproduce:
pacman -S jdk8-openjdk maven nodejs npm
git clone --recursive https://github.com/ballerina-platform/ballerina-lang
git submodule update --init
mvn clean install
When I do it this way the build fails on installing toml
When I download the zip and attempt to run any binary, it gives me a JAVA_HOME error -- which
I set JAVA_HOME to /usr/lib/jvm/java-8-jdk
and I tried /usr/lib/jvm/java-8/jdk/bin
both recieved ERROR: JAVA_HOME is not defined correctly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.