KleverChain IDE Extension for Visual Studio Code: Installation Guide

The Kleverchain IDE Extension for Visual Studio Code is a powerful tool that allows developers to write, build, and debug smart contracts for the Klever blockchain. The extension provides a comprehensive development environment that includes a code editor, debugger, deployer, and invoker.

This tutorial will guide you through the process of installing the KleverChain IDE Extension for Visual Studio Code. We will cover two methods of installation:

  • Installing from the Visual Studio Code Marketplace
  • Installing from within the Visual Studio Code IDE

Prerequisites

Before you begin, you will need to have the following installed:

Installing from the Visual Studio Code Marketplace

Step 1: Go to the Visual Studio Marketplace website: KleverChain IDE - Visual Studio Marketplace

Step 2: Click the green “Install” button.

Step 3: If you are not already signed in to your Microsoft account, sign in now.

Step 4: A confirmation dialog will appear. Click “Install” again to confirm the installation.

Step 5: Wait a few seconds while the extension is downloaded and installed.

Step 6: Once the installation is complete, you will see a notification in the lower right corner of the screen. Click “Reload” to restart Visual Studio Code.

Step 7: (Optional) If you want to enable the auto-update functionality for the KleverChain IDE extension, follow these steps:

  • Click the “Extensions” tab in the left sidebar.
  • Click the gear icon in the upper right corner of the screen.
  • Select “Manage Extensions”.
  • In the “Updates” section, locate the KleverChain IDE extension.
  • Check the “Auto Update” checkbox.

Installing from within the Visual Studio Code IDE

  1. Open Visual Studio Code.
  2. Press Ctrl+Shift+P to open the Command Palette.
  3. Type ext install and press Enter.
  4. Search for the KleverChain IDE.
  5. Click on the Install button.
  6. Reload Visual Studio Code.

Verifying the Installation

Once you have installed the KleverChain IDE Extension, you can verify the installation by following these steps:

  1. Open Visual Studio Code.
  2. Click on the Extensions icon in the left sidebar.
  3. Search for the KleverChain IDE.
  4. The extension should be listed in the Installed section.

Using the KleverChain IDE Extension

Once you have installed the KleverChain IDE Extension, you can start using it to develop smart contracts for the Klever blockchain. For more information on how to use the extension, please refer to the our vídeo tutorial Streamline KleverChain dApp Creation: Using the KleverChain Virtual Machine in Visual Studio Code

image

Conclusion

In this tutorial, we walked you through the process of installing the KleverChain IDE Extension for Visual Studio Code. We covered two methods of installation: installing from the Visual Studio Code Marketplace and installing from within the Visual Studio Code IDE. We also showed you how to verify the installation.

We encourage you to explore the KleverChain IDE Extension and use it to develop smart contracts for the Klever blockchain.

Tell us your feedback and suggestions. Here, on Klever, your voice matters.

24 Likes

Screenshot from 2024-04-24 04-44-31

Hi! I have followed your instructions step by step and I seemed to install the KleverChain IDE for Visual Studio Code according to screenshot. However, I cannot locate the path to the Klever SDK.

Not at least at ~/klever-sdk. Even this command
find / -type d -name "klever-sdk" 2>/dev/null
yields nothing. Could you kindly suggest what I should try next?

6 Likes

Hey @Eliot_Sterling be welcome to the Klever Fórum! We’re happy to see you here!

What is your SO?

3 Likes

hey @Eliot_Sterling , can you try ctrl + shift + p (or cmd + shift + p on a mac, type kleverchain and select Setup Workspace ? this should re-trigger the download and reinstall of all klever tools.

4 Likes

Thanks, Duka! I’m on Ubuntu 23.10.

4 Likes

Thanks, Yuri. I tried but it didn’t seem to help. Or simply I did something wrong. The VScode environment is totally new to me. I just have to figure it out somehow. Thanks for your help anyway.

4 Likes

@Yuri_Lozorio can you please check your private messages

4 Likes

Hello my friend, could you share with us your questions?

3 Likes

sure.
I am currently trying to get the kleverchain IDE running in visual studio.
Unfortunately it cannot download the koperator.exe see screenshot
grafik
grafik

2 Likes

@Nicollas could you help us here, mate?

4 Likes

@Andreas_Hennersdorf ,

Thank you for reporting the issue. I’m pleased to inform you that we’ve identified and resolved the problem. The download should now be functioning correctly.

However, I want to emphasize that our Windows development environment is still in an early access phase and remains experimental. If you have access to a Mac or Linux system, I recommend using those platforms for a more stable experience at this time.

If you encounter any further issues or have suggestions, please don’t hesitate to let us know. Your input is valuable in helping us refine the Windows experience.

4 Likes

@Nicollas

Another problem. I can not get test klv, when i hit the button.

Unbenannt

1 Like

thanks, but i get the same error as marco when i try to get the test KLV.
Also the build contract of the example contract fails.
I then tested it on the Mac where I get stuck again with the installation of the koperator.exe file
see screenshot :point_down:

1 Like

The KLV faucet address is out of funds. We’ll filled.

3 Likes

Done. Could you @Andreas_Hennersdorf and @CryptoJaeger to try asking the faucet again?

2 Likes

this works. thanks.
but build a example contract still failed!
grafik

2 Likes

@Nicollas could you help us on this build, mate?

1 Like

@Duka @Nicollas
a little feedback from me.
I can’t get it to work on windows. :face_with_peeking_eye:
My procedure corresponds to the documentation.
rustc version: 1.84.0 nightly

On the MAC I get the message that the koperator was created for macOS 14 or higher.
Unfortunately I do not have this.

Any idea what the problem could be on windows?
Which linux distribution is recommended? maybe I will try it there again

1 Like

Hello bro,

TY for sharing your feedback with us.

So, unfortunately I’m afraid we wont support the windows platform :cry:

Regarding the macOS we’re figuring out a way to create a koperator build compatible with previous versions. I keep you posted

You can use Ubuntu. Worked well with us, but, if you don’t mind, I ask you to try on another distribution, it will help us to test more.

1 Like

@Andreas_Hennersdorf do you have more details about this message of koperator? it only says that or it has more info? if you could provide a screenshot, it will be handy

1 Like