Skip to content

feat: add perl language support #79

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

britterm-cisco
Copy link

No description provided.

@britterm-cisco
Copy link
Author

@microsoft-github-policy-service agree company="Cisco Systems, Inc."

"""
# Create a basic initialize params structure
# This can be expanded with more specific settings if needed
params = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write this configuration to a separate json file in the same directory, and read from there?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See other language server implementations for example

assert isinstance(result, list)
# The exact assertions will depend on the actual response from the Perl Language Server
# These are placeholder assertions that should be updated with actual expected values
assert len(result) >= 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add actual expected values instead of placeholders?


assert isinstance(result, list)
# The exact assertions will depend on the actual response from the Perl Language Server
# These are placeholder assertions that should be updated with actual expected values
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@LakshyAAAgrawal
Copy link
Collaborator

Thanks a lot for your PR! Could you also add an entry in the README about PERL support?

@LakshyAAAgrawal
Copy link
Collaborator

I also see that the unit test is failing, likely cause is that perl is not available in the test environment.

My intention with multilspy is for it to be batteries-included - any new language support should ideally handle the downloading+setup of the lsp binary, unless it is not feasible in the scope of multilspy to do so. Could you please try to implement the setup_runtime_dependencies method in the perl language server class? If not feasible, the other option would be to add Perl to the github action/CI config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants