Skip to content

About adding support for PerlNavigator #4842

@rymdbar

Description

@rymdbar

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'),
        \ })

Metadata

Metadata

Assignees

No one assigned

    Labels

    new toolSupport for new linters, fixers, etc.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions