AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
226 stars 54 forks source link

rangeFormatting request including context clause raises AssertionError #1073

Closed stephe-ada-guru closed 1 year ago

stephe-ada-guru commented 1 year ago

The attached test.json.txt shows an error; the attached range_formatting_context.diff (against libadalang_tools) fixes it. test.json.txt range_formatting_context.diff.txt

stephe-ada-guru commented 1 year ago

There are additional problems with the response once the assertion_error is fixed; I'll submit another issue.

joaopsazevedo commented 1 year ago

This issue is now fixed in the the edge branch. Thank you for reporting and for the reproducer.