openlawlibrary / pygls

A pythonic generic language server
https://pygls.readthedocs.io/en/latest/
Apache License 2.0
588 stars 105 forks source link

Deprecations #249

Closed dimbleby closed 2 years ago

dimbleby commented 2 years ago

Fixing a couple of deprecation warnings

  /home/dch/pygls/pygls/server.py:168: DeprecationWarning: There is no current event loop
    self.loop = loop or asyncio.get_event_loop()

and

  /home/dch/.virtualenvs/pygls/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
    config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
tombh commented 2 years ago

Awesome! I've been seeing those warnings too. Glad they're fixed now, thank you ✨