CLion
With CLion IDE support, Harness CDE enables seamless and efficient remote development in your Gitspaces with your IDE. This integration leverages JetBrains Gateway to establish a direct remote connection with CLion, eliminating the need for any prior setup.
This guide provides a step-by-step walkthrough to help you use CLion IDE with your Gitspaces. Let’s get started!
Pre-Requisites
Install JetBrains Gateway
Before starting out, ensure that JetBrains Gateway is installed on your device.
JetBrains Gateway is a lightweight desktop application that enables you to work remotely with JetBrains IDEs (including Clion) without downloading the full IDE. It connects to a remote server, downloads necessary backend components, and opens your project in a JetBrains client.
Recommended Gitspace Configuration
The following Gitspace requirements are optional but highly recommended for the best and most efficient experience when using Gitspaces in CLion. You can refer to the JetBrains guide here for detailed information on system requirements for remote development.
Recommended Requirements
To ensure optimal performance while connecting to your Gitspace in CLion IDE, your Gitspace should meet the following specifications:
- Processor: Minimum of 4 cores (vCPUs) with either x86_64 or arm64 architecture.
- Memory: At least 8 GB RAM.
- Storage: At least 10 GB of available disk space.
If your Gitspace does not meet the recommended requirements, the following warning may appear during your Clion setup. You can choose to create a new Gitspace that adheres to the recommended specifications or proceed with your existing configuration.
Configuring your Gitspace
To meet the recommended specifications, select the "Large" machine type while configuring your Gitspace in the Harness UI. This option provides:
- Processor: 4 cores (CPUs)
- Memory: 32 GB RAM
- Storage: 30 GB Disk Size
Getting started with CLion IDE
Follow these steps to get started with integrating CLion IDE into your Gitspaces workflow:
Create a Gitspace
-
Navigate to the Harness UI and create a new Gitspace for your project repository.
-
Select "CLion" as the IDE during Gitspace creation.
-
Add your SSH key and configure the required Gitspace specifications.
For optimal performance, it is recommended to use the "Large" Gitspace machine type. Refer to the "Recommended Gitspace Configuration" section for detailed requirements.
- Click "Create Gitspace".
Open the Gitspace in CLion
- Once the Gitspace is created and running, click on the "Open JetBrains Gateway" button.
- A prompt will appear requesting permission to open JetBrains Gateway and establish a connection with the remote server. Click "Open JetBrains Gateway".
Connect to the Remote Server
You will be redirected to JetBrains Gateway, where you will be prompted to connect and establish an SSH connection. Click "Check Connection and Continue" to begin the setup process. This setup process will download the necessary files and tools required for your CLion environment.
In case your Gitspace does not meet the recommended requirements, you may receive the following warning during the above setup. You can either create a new Gitspace to align with the recommended specifications or continue with your current configuration.
Setup Complete
Once the setup completes, your Gitspace will be successfully connected to CLion IDE. Congratulations! You are now ready to work on your Gitspace directly within CLion IDE.