Version-aware HAProxy configuration support for IntelliJ IDEA, PyCharm and other JetBrains IDEs. Catch config mistakes while editing instead of when HAProxy refuses to reload.
The plugin runs the same language server as the HAProxy Config extension for VS Code (also on Open VSX), so validation rules and documentation are identical in both editors.
Built and maintained by Juan Torchia as part of GMM Software Solutions. Guide: gmmhub.net/haproxy-config-check.
- Syntax highlighting for sections, directives, ACLs, addresses, ports and timeouts.
- Version-aware validation for HAProxy 2.4 to 3.4: unknown directives, directives in the wrong section,
out-of-range ports, unitless timeouts, deprecated options and
use_backendtargets that do not exist. - Completion for directives and
optionvariants, filtered by section. - Hover documentation with signature, valid sections and the HAProxy version that introduced the directive.
- Go to definition and rename for backends.
- A JetBrains IDE based on 2026.1 or later that includes the platform LSP support (verified on IntelliJ IDEA 2026.1 and 2026.2, and PyCharm 2026.1).
- Node.js (current LTS) to run the language server. The plugin uses
nodefromPATH, or the executable set in the settings. Without Node.js, syntax highlighting still works and the IDE shows a warning with a shortcut to the settings.
Settings | Languages & Frameworks | HAProxy
| Setting | Default | Description |
|---|---|---|
| HAProxy version | 3.2 | Version used to decide which directives exist or are deprecated. |
| Node.js executable | empty | Path to node. Empty means node from PATH. |
Changes restart the language server in every open project.
Matched by name, the same rules as the VS Code extension:
haproxy.cfg,haproxy.confandhaproxy*.cfg- any
.cfgor.confinside a directory namedhaproxy
Other .cfg and .conf files are checked for HAProxy section headers (global, defaults, frontend,
backend, listen, userlist, peers, resolvers, mailers, ring, log-forward, program,
http-errors, cache, acme) at the start of a line within the first 200 lines. A keyword followed by
= or : (for example listen = 127.0.0.1:9000 in php-fpm) does not count. Detection only applies to
local files that the IDE treats as plain text, INI, Properties or TextMate, so files that another plugin
claims are left alone.
Files detected by their headers get validation, completion, hover and navigation. Their syntax colors come
from the generic .cfg/.conf grammar, because the IDE picks TextMate grammars by file name.
From the JetBrains Marketplace: Settings | Plugins | Marketplace, search for HAProxy Language Support.
From a release ZIP: download gmm-haproxy-jetbrains-<version>.zip from
GitHub Releases, then
Settings | Plugins | ⚙ | Install Plugin from Disk.
Requirements: JDK 21 (Gradle toolchains can provision it).
./gradlew test # unit and platform tests
./gradlew buildPlugin # build/distributions/gmm-haproxy-jetbrains-<version>.zip
./gradlew runIde # IntelliJ IDEA sandbox that opens demo/
./gradlew runPyCharm # PyCharm sandbox that opens demo/
./gradlew verifyPlugin # Plugin Verifier: IDEA 2026.1.4, IDEA 2026.2.2, PyCharm 2026.1.3Each IDE the verifier downloads takes about 3-4 GB once extracted. To reuse IDEs that are already on disk:
./gradlew verifyPlugin -PverifierLocalIdes=/path/to/idea-2026.1,/path/to/pycharm-2026.1server.js, the TextMate grammar and the language configuration come from a released
gmm-haproxy-vscode VSIX on Open VSX. The version and the SHA-256 of the VSIX are pinned in
gradle.properties:
haproxyServerVersion=0.6.1
haproxyServerSha256=db9bd9fe92709ac5421c3f09b2c485759f1a4f42ffaad0cffd02d6f7e5c5fe8eThe build downloads the VSIX once into build/haproxy-server/, fails if the checksum differs, and copies the
three files into the plugin. To move to a new release:
- Publish the VS Code extension release to Open VSX.
- Compute the checksum:
curl -sL https://open-vsx.org/api/gmm/gmm-haproxy-vscode/<version>/file/gmm.gmm-haproxy-vscode-<version>.vsix | sha256sum
- Update
haproxyServerVersionandhaproxyServerSha256, run./gradlew clean test buildPlugin, check the demo in./gradlew runIde, and mention the server version in the change notes inplugin.xml.
- Update
<change-notes>insrc/main/resources/META-INF/plugin.xml. - Create a GitHub release with a
vX.Y.Ztag. TheJetBrains Marketplace Releaseworkflow builds, verifies, signs and publishes that version, then attaches the ZIP to the release. It runs in thejetbrains-marketplaceenvironment, which needs thePUBLISH_TOKEN,CERTIFICATE_CHAIN,PRIVATE_KEYandPRIVATE_KEY_PASSWORDsecrets.



