CLion 2021.3 Help

Offline work

A lot of features in CLion require access to the Internet. If you are working offline (for example, in an isolated environment), there are some aspects that you should keep in mind.

Updates

By default, CLion is configured to check for updates automatically and notify you when a new version is available. Updates are usually patch-based: they are applied to the existing installation and only require you to restart the IDE. However, sometimes patch updates are not available, and a new version of CLion must be installed.

If CLion does not have HTTP access outside your local network, it will not be able to check for updates and apply patches. In this case, you have to download new versions of the IDE and install them manually as described in Standalone installation.

For more information, see Update CLion.

Plugins

Usually, plugins are installed from the JetBrains Plugin Repository. However, you can set up a custom plugin repository in your local network and configure CLion to use it for installing and updating plugins.

Alternatively, you can download and manually install plugins from disk.

License activation

You can evaluate CLion for up to 30 days. After that, buy and register a license to continue using the product.

If CLion does not have HTTP access outside your local network, you will not be able to use the JetBrains Account for signing in. However, you can generate an offline activation code that will be valid during your subscription term.

If your organization has at least 50 active subscriptions or licenses of JetBrains products, you can use the Floating License Server to activate CLion instances within your company network. Keep in mind that the License Server itself requires internet access for connecting to the JetBrains Account.

For more information, see Register.

Code inspections

Some code inspections verify external resources. For example, the Non-existent web resource inspection highlights dead links. If you don't have internet access, these inspections will not work and dead links will not be highlighted.

For more information, see Static code analysis.

Version control systems

Most likely, your source code is under some sort of version control system (VCS). If a remote repository is not in your local network, and there is no internet access, CLion will not be able to communicate with the VCS. For example, if you are using Git, you will be able to commit your changes but won’t be able to push them to the remote repository or pull updates from it.

For more information about VCS integration, see Version control.

Tasks and issue trackers

You can set up a connection with an issue tracker to work with tasks and bugs assigned to you directly from CLion. For example, you can connect to YouTrack, Jira, GitHub, and so on.

If the issue tracker server is not in your local network, and there is no internet access, CLion will not be able to sync your issues. In this case, you will be able to work only with local tasks that you create yourself.

For more information, see Manage tasks and contexts.

Gradle dependencies

By default, Gradle connects to remote repositories and checks for updates on every launch. Resolving Gradle dependencies can require downloading new artifacts. You can switch to offline mode if you want Gradle to use only those resources that are available locally.

Switch Gradle to offline mode

  • In the Gradle tool window, click The Toggle Offline Mode button.

This will append the --offline option to all Gradle commands that CLion runs. It will also report any items that cannot be found in the local repository.

Usage statistics

When you run CLion for the first time, you are prompted whether to send anonymous data on the features and plugins you use, your hardware and software configuration, file types, number of files per project, and so on. This does not include any personal or sensitive data, such as parts of your source code or file names. This information is collected in accordance with the JetBrains Privacy Policy and is used to help improve the products and overall experience.

Even if you enable anonymous usage statistics, it will not be sent if there is no HTTP access outside your local network. Also, you can disable this feature entirely if you agreed at first and then changed your mind later.

Disable sending usage statistics

  1. In the Settings/Preferences dialog (Ctrl+Alt+S) , select Appearance & Behavior | System Settings | Data Sharing.

  2. Clear the Send usage statistics checkbox.

Last modified: 14 January 2022