Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>checkerframework-language-serverNew to Visual Studio Code? Get it now.
checkerframework-language-server

checkerframework-language-server

zhangjiangqige

|
251 installs
| (0) | Free
Language server of the Checker Framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Checker Framework for VS Code

This project is an extension for VS Code providing the features of Checker Framework.

Getting Started

After installing this extension, open or save any .java file and it will be checked by Checker Framework using the Nullness Checker.

The first time the extension gets running, dependencies will be downloaded: the latest version of Checker Framework(typetools/checker-framework), and a language server wrapping around the Checker Framework.

Prerequisites

JDK is required, i.e. JAVA_HOME needs to be properly set. Versions supported are 8, 9 and 11.

Configuration

Several parameters are available:

checkers

This is a list of checkers that you want to use to check source files. Shorthand names and long full names are both supported. The list of all checkers can be found in the manual of Checker Framework.

"checker-framework.checkers": [
    "interning",
    "org.checkerframework.checker.nullness.NullnessChecker"
]

commandLineOptions

This is a list of command line options that will be passed to the Checker Framework, which are options of a normal javac.

Sample setting:

"checker-framework.commandLineOptions": [
    "-proc:only"
]

frameworkPath

This is the path to the root folder of Checker Framework that's going to be used. Normally it's the directory obtained after unzipping the zip downloaded. By default, this extension will set this up for you.

Sample setting:

"checker-framework.frameworkPath": "/Users/joe/env/checker-framework-3.0.0"

languageServerPath

This is the path of the jar file of the language server. This will usually be set up automatically.

Sample setting:

"checker-framework.languageServerPath": "/Users/bob/env/checker-framework-languageserver-all.jar"

checkerframework_org

This specifies from which Github organization to download Checker Framework. The default is typetools.

Sample setting:

"checker-framework.checkerframework_org": "typetools"

checkerframework_repo

This specifies from which Github repository under checkerframework_org to download Checker Framework. The default is checker-framework.

Combined with checkerframework_org, the default Checker Framework is typetools/checker-framework.

Sample setting:

"checker-framework.checkerframework_repo": "checker-framework"

languageserver_org

This specifies from which Github organization to download the language server. The default is eisopux.

Sample setting:

"checker-framework.languageserver_org": "eisopux"

languageserver_repo

This specifies from which Github repository under languageserver_org to download the language server. The default is checker-framework-languageserver.

Combined with languageserver_org, the default language server is eisopux/checker-framework-languageserver.

Sample setting:

"checker-framework.languageserver_repo": "checker-framework-languageserver"

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

This project is inspired and helped by the following projects:

  • adamyy/checkerframework-lsp
  • georgewfraser/vscode-javac
  • adamvoss/vscode-languageserver-java-example
  • DafnyVSCode/Dafny-VSCode
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft