Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About adding support for PerlNavigator #4842

Open
nospam2998 opened this issue Oct 15, 2024 · 0 comments
Open

About adding support for PerlNavigator #4842

nospam2998 opened this issue Oct 15, 2024 · 0 comments
Labels
new tool Support for new linters, fixers, etc.

Comments

@nospam2998
Copy link
Contributor

Name: PerlNavigator
URL: https://github.com/bscan/PerlNavigator/

To my knowledge there are two perl language servers around. One already has a new-tool issue in #3496. This issue covers the other one, PerlNavigator.

Unfortunately PerlNavigator currently has buggy behaviour ignoring capabilities in its initialize method and can thus not easily be used with ale. Unless one applies the patch posted in that bug report, of course.

As for configuring it with ale, this appears to be working: (project_root function is lazily reused from #3496):

        call ale#linter#Define('perl', {
        \   'name': 'perlnavigator',
        \   'lsp': 'stdio',
        \   'executable': s:perlnavigator_executable,
        \   'command': '%e --stdio',
        \   'lsp_config': {
        \       'perlnavigator': {
        \           'perlPath': 'perl',
        \           'enableWarnings': 1,
        \           'perltidyProfile': '',
        \           'perlcriticProfile': '',
        \           'perlcriticEnabled': 1,
        \       },
        \   },
        \   'project_root': function('PLLSGetProjectRoot'),
        \ })
@nospam2998 nospam2998 added the new tool Support for new linters, fixers, etc. label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new tool Support for new linters, fixers, etc.
Projects
None yet
Development

No branches or pull requests

1 participant