Skip to content

Update import and notification methods in ollama_lsp#9

Open
m-nikolaidis wants to merge 1 commit intoJacob411:mainfrom
m-nikolaidis:patch-1
Open

Update import and notification methods in ollama_lsp#9
m-nikolaidis wants to merge 1 commit intoJacob411:mainfrom
m-nikolaidis:patch-1

Conversation

@m-nikolaidis
Copy link
Copy Markdown

Using this plugin with pygls v2 was throwing the following errors:

from pygls.server import LanguageServer ImportError: cannot import name 'LanguageServer' from 'pygls.server'
and "send_notification" method not found.

This method was removed in the newest version without deprecation warning.

Since there is no fixed requirement of pygls version I updated the import and method according to the documentation.

Using this plugin with pygls v2 was throwing the following errors:

`from pygls.server import LanguageServer
ImportError: cannot import name 'LanguageServer' from 'pygls.server'
`
and "send_notification" method not found.

This method was removed in the newest version without deprecation warning.

Since there is no fixed requirement of pygls version I updated the import and method according to the [documentation](https://pygls.readthedocs.io/en/latest/pygls/howto/migrate-to-v2.html)
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.

1 participant