This product was discontinued in September 2020. Support is available for existing customers until September 2021. It is replaced by a CodeQL extension for Visual Studio Code which is available from the Visual Studio Code marketplace.

Installing CodeQL for Eclipse

Important

CodeQL for Eclipse is a plugin that allows you to write and run CodeQL queries locally in your IDE. These topics explain how to run custom queries on CodeQL databases using the CodeQL for Eclipse plugin.

LGTM for Eclipse is a separate plugin for downloading alerts from LGTM, so that you can fix them easily in your IDE. For more information about this plugin, see IDE integration for LGTM.

Database compatibility

The licensed version of CodeQL for Eclipse primarily supports running queries on CodeQL databases downloaded from LGTM Enterprise, and databases created using the CodeQL CLI. To ensure your databases are compatible, make sure that the version numbers of CodeQL for Eclipse and LGTM Enterprise are the same. If you're using the CodeQL CLI, check that it's compatible with your version of CodeQL for Eclipse.

You may also analyze databases downloaded from LGTM.com, if they are compatible with your version of the plugin. However, since the analysis used on LGTM.com is updated regularly, you may find that some databases cannot be analyzed, even with the most recent version of the plugin. If this is the case, and you want to analyze databases available on LGTM.com, then you can query them directly in the query console on LGTM.com. Alternatively, you could install the open source CodeQL extension for Visual Studio Code and use this to run queries.

Installation options

If you already have Eclipse installed, you can install CodeQL for Eclipse as a plugin. If you don't have Eclipse installed, you can either:

For a summary of useful Eclipse commands, see Eclipse tips for new users.

Related Topics Link IconRelated Topics