perl-lsp is a language server for Perl that brings IDE-style semantic intelligence to editors implementing the Language Server Protocol. It is built around tree-sitter-perl and tower-lsp.
The server performs cross-file analysis rather than treating each document in isolation. It infers types from how values are constructed and used, propagates return and parameter information between modules, and follows inheritance, roles and mixins. Framework-specific understanding covers Moo, Moose, Mojo::Base, DBIx::Class and Perl 5.38 class syntax.
Module discovery draws on standard project layouts, @INC, PERL5LIB and cpanfile dependencies. Although perl-lsp is not primarily a linter, its –check mode provides batch diagnostics suitable for CI and returns a failure status when qualifying issues are found.
This is free and open source software.
Key Features
- Provides completion, go-to-definition, references and cross-file rename.
- Offers hover information, signature help and inlay hints.
- Emits semantic tokens and document and workspace symbols.
- Uses perltidy for document and range formatting.
- Includes optional checks for unsafe dereferences, redundant guards and dereference-shape mismatches.
- Provides CLI tools for code exploration and refactoring.
- Uses a per-project SQLite cache for repeat resolution.
- Supports custom framework intelligence through Rhai plugins.
Website: github.com/tree-sitter-perl/perl-lsp
Support:
Developer: tree-sitter-perl
License: MIT License
perl-lsp is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Perl Linters | |
|---|---|
| Perl::Critic | Extensible framework for creating and applying coding standards |
| Perltidy | Indents and reformats Perl scripts |
| zarn | Static security analysis for source code and dependencies |
| perl-lsp | Language Server Protocol implementation for Perl |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.