Ballerina-lang: VScode cannot detect the home config var correctly when installing Ballerina via Homebrew

Created on 24 Jul 2018  Â·  9Comments  Â·  Source: ballerina-platform/ballerina-lang

Description:
The extension keeps warning: The configured "ballerina.home" seems incorrect.

  • I've installed via homebrew. The package is located at: /usr/local/Cellar/ballerina/0.980.0
  • The ballerina.home config is: "ballerina.home": "/usr/local/Cellar/ballerina/0.980.0"

Affected Versions:
0.980.0

OS, DB, other environment details and versions:

  • installed the extension from vscode marketplace

Suggested Labels (optional):
Type/Bug, Component/VScode plugin

Most helpful comment

For future references; Please note that if you are using brew installed balhome path you need to use /usr/local/Cellar/ballerina/0.980.0/libexec.

All 9 comments

@xlogan do you have other ballerina versions installed in the same location?

Yes, I do. I copied the location to config the ballerina.home variable in VScode settings.

@xlogan can you try having only the latest ballerina version (v0.980) in the installation directory for the moment?

Nice, it works now. I removed the package from Homebrew, downloaded the package. Thanks for your support @nadeeshaan

For future references; Please note that if you are using brew installed balhome path you need to use /usr/local/Cellar/ballerina/0.980.0/libexec.

Noted! Thanks @rasika

Please note that homebrew ballerina 0.980.1 onwards; you can just use /usr/local/Cellar/ballerina/0.980.1 for the ballerina.home in the vscode plugin.

[1]https://github.com/Homebrew/homebrew-core/pull/30426

Awesome!

On Wed, Jul 25, 2018 at 1:42 PM Rasika Perera notifications@github.com
wrote:

Please note that homebrew ballerina 0.980.1 onwards; you can just use
/usr/local/Cellar/ballerina/0.980.0 for the ballerina.home in the vscode
plugin
.

[1]Homebrew/homebrew-core#30426
https://github.com/Homebrew/homebrew-core/pull/30426

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ballerina-platform/ballerina-lang/issues/9724#issuecomment-407650636,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABGU4DM01LIfrYd_Q8cry0kCcyNax5S6ks5uKBNkgaJpZM4VcB9r
.

on ubuntu, installing it using the linux .deb from https://ballerina.io/downloads/

"ballerina.home": "/usr/lib/ballerina/ballerina-0.980.1"
Was this page helpful?
0 / 5 - 0 ratings