palantir / python-language-server

An implementation of the Language Server Protocol for Python
MIT License
2.6k stars 282 forks source link

Add plugin for syntax error detection with Jedi #875

Open danzvara opened 3 years ago

danzvara commented 3 years ago

This adds a plugin for accessing Jedi's syntax error detection. From v0.17.0 Jedi provides Script.get_syntax_errors to display syntax errors (they only support Syntax and Indent error right now), so I thought it would be nice to have this included in PYLS. It's my first PR here, so apologize if I forgot about something obvious, appreciate any comments/suggestions! :)

palantirtech commented 3 years ago

Thanks for your interest in palantir/python-language-server, @danzvara! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.