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.
Ensure that:
zeek-language-server
is installed- Both
zeek-language-server
andzeek-config
are in your systemPATH
For information on building from source, refer to the main README.
- 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.
-
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-server
Example (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:
{ "check_for_updates": true, "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
Open a Zeek script file (.zeek
extension). The language server should now be
active for Zeek files.
If you encounter issues:
- Ensure the
zeek-language-server
path 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.