IntelliJ Setup for zeek-language-server
July 13, 2025 ยท View on GitHub
This guide explains how to configure the Zeek language server with JetBrains IDEs (CLion, PyCharm, RustRover, etc.). It provides step-by-step instructions for setup and configuration.
Prerequisites
Ensure that:
zeek-language-serveris installed- Both
zeek-language-serverandzeek-configare in your systemPATH
For information on building from source, refer to the main README.
Installation Steps
Install LSP4IJ Plugin
- Open your JetBrains IDE
- Go to Plugins -> Marketplace
- Search for and install LSP4IJ by RedHat
- Restart IDE
For more information, visit the LSP4IJ plugin page.
Developer documentation is available in the LSP4IJ GitHub repository.
Configure Language Server
-
Open Settings/Preferences:
- Windows/Linux: File > Settings
- macOS: IntelliJ IDEA > Preferences
-
Navigate to Languages & Frameworks > Language Servers
-
Click the "+" button to add a new server definition
-
Configure the server:
-
Name: "Zeek"
-
Server:
- Command: Full path to
zeek-language-serverExample (macOS):/Users/username/.cargo/bin/zeek-language-server
- Command: Full path to
-
Mappings -> File name patterns(1)
- File name patterns:
*.zeek - Language ID:
zeek
- File name patterns:
-
Configuration:
{ "inlay_hints_parameters": true, "inlay_hints_variables": true, "references": false, "rename": false }
-
-
Click "Apply" then "OK" to save the settings
-
Restart your IDE for the changes to take effect
Usage
Open a Zeek script file (.zeek extension). The language server should now be
active for Zeek files.
Troubleshooting
If you encounter issues:
- Ensure the
zeek-language-serverpath is correct - Consult the IDE's log files for any error messages
For further assistance, refer to the main README or the project's issue tracker.