Language Support#
Serena provides a set of versatile code querying and editing functionalities based on symbolic understanding of the code. Equipped with these capabilities, Serena discovers and edits code just like a seasoned developer making use of an IDE’s capabilities would. Serena can efficiently find the right context and do the right thing even in very large and complex projects!
There are two alternative technologies powering these capabilities:
Language servers implementing the language server Protocol (LSP) — the free/open-source alternative.
The Serena JetBrains Plugin, which leverages the powerful code analysis and editing capabilities of your JetBrains IDE.
You can choose either of these backends depending on your preferences and requirements.
Language Servers#
Serena incorporates a powerful abstraction layer for the integration of language servers that implement the language server protocol (LSP). It even supports multiple language servers in parallel to support polyglot projects.
The language servers themselves are typically open-source projects (like Serena) or at least freely available for use.
We currently provide direct, out-of-the-box support for the programming languages listed below. Some languages require additional installations or setup steps, as noted.
AL
Ansible (experimental; requires Node.js and npm; automatically installs
@ansible/ansible-language-server; must be explicitly specified in thelanguagesentry in theproject.yml; requiresansiblein PATH for full functionality) the upstream@ansible/ansible-language-server@1.2.3supports hover, completion, definition, semantic tokens, and validation; document symbols, workspace symbols, references, and rename are not supported by this version)Bash
C#
(by default, uses the Roslyn language server (languagecsharp), requiring .NET v10+ and, on Windows,pwsh(PowerShell 7+); set language tocsharp_omnisharpto use OmiSharp instead)C/C++
(by default, uses the clangd language server (languagecpp) but we also support ccls (languagecpp_ccls); for best results, provide acompile_commands.jsonat the repository root; see the C/C++ Setup Guide for details.)Clojure
Dart
Elixir
(requires Elixir installation; Expert language server is downloaded automatically)Elm
(requires Elm compiler)Erlang
(requires installation of beam and erlang_ls; experimental, might be slow or hang)F#
(requires .NET v8.0+; uses FsAutoComplete/Ionide, which is auto-installed; for Homebrew .NET on macOS, set DOTNET_ROOT in your environment)Fortran
(requires installation of fortls:pip install fortls)Go
(requires installation ofgopls)Groovy
(requires local groovy-language-server.jar setup viaGROOVY_LS_JAR_PATHor configuration)Haskell (automatically locates HLS via ghcup, stack, or system PATH; supports Stack and Cabal projects)
HLSL / GLSL / WGSL (uses shader-language-server (language
hlsl); automatically downloaded; on macOS, requires Rust toolchain for building from source; note: reference search is not supported by this language server)Java
JavaScript
(supported via the TypeScript language server, i.e. use languagetypescriptfor both JavaScript and TypeScript)Julia
Kotlin
(uses the pre-alpha official kotlin LS, some issues may appear)Lean 4
(requiresleanandlakeinstalled via elan; uses the built-in Lean 4 LSP; the project must be a Lake project withlake buildrun before use)Lua
Luau
Markdown
(must explicitly enable languagemarkdown, primarily useful for documentation-heavy projects)Nix
(requires nixd installation)OCaml (requires opam and ocaml-lsp-server to be installed manually; see the OCaml Setup Guide)
Pascal
(uses Pascal/Lazarus, which is automatically downloaded; setPPandFPCDIRenvironment variables for source navigation)Perl
(requires installation of Perl::LanguageServer)PHP
(by default, uses the Intelephense language server (languagephp), setINTELEPHENSE_LICENSE_KEYenvironment variable for premium features; we also support Phpactor (languagephp_phpactor), which requires PHP 8.1+)Python
R
(requires installation of thelanguageserverR package)Ruby
(by default, uses ruby-lsp (languageruby); use languageruby_solargraphto use Solargraph instead.)Rust
(requires rustup - uses rust-analyzer from your toolchain)Scala
(requires some manual setup; uses Metals LSP)Solidity (experimental; requires Node.js and npm; automatically installs
@nomicfoundation/solidity-language-server; works best with afoundry.tomlorhardhat.config.jsin the project root)Swift
TypeScript
Vue
(3.x with TypeScript; requires Node.js v18+ and npm; supports .vue Single File Components with monorepo detection)YAML
Zig
(requires installation of ZLS - Zig Language Server)
Support for further languages can easily be added by providing a shallow adapter for a new language server implementation, see Serena’s memory on that.
The Serena JetBrains Plugin#
As an alternative to language servers, the Serena JetBrains Plugin leverages the powerful code analysis capabilities of JetBrains IDEs. The plugin naturally supports all programming languages and frameworks that are supported by JetBrains IDEs, including IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, RubyMine, GoLand, and potentially others (Rider and CLion are unsupported though).
When using the plugin, Serena connects to an instance of your JetBrains IDE via the plugin. For users who already work in a JetBrains IDE, this means Serena seamlessly integrates with the IDE instance you typically have open anyway, requiring no additional setup or configuration beyond the plugin itself. This approach offers several key advantages:
External library indexing: Dependencies and libraries are fully indexed and accessible to Serena
No additional setup: No need to download or configure separate language servers
Enhanced performance: Faster tool execution thanks to optimized IDE integration
Multi-language excellence: First-class support for polyglot projects with multiple languages and frameworks
Even if you prefer to work in a different code editor, you can still benefit from the JetBrains plugin by running a JetBrains IDE instance (most have free community editions) alongside your preferred editor with your project opened and indexed. Serena will connect to the IDE for code analysis while you continue working in your editor of choice.
See the JetBrains Plugin documentation for usage details.