-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add endLine and endColumn keys to JSONReporter #5456
Conversation
Co-authored-by: Daniël van Noord <[email protected]>
Pull Request Test Coverage Report for Build 1535142075
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, isn't it a small breaking change dependending on the way the json is read ? Thinking about Message(**json.load(..))
here. Regarding breaking change we may as well do them properly in a major, where they are expected instead of multiple small one released with minors where they are not ? We already had multiple downstream bug following breaking change in things we considered internal. We don't want downstream libs to not have enough trust to recover our minors automatically right ?
In theory, it could be. The problem is that we need this change for error range support in vscode-python. At least I've not been able to come up with an alternative implementation that's also backwards compatible. With the json output, it a) only effects a limited audience to begin with, b) should, for the most part, be backwards compatible with existing use cases, and c) if it does break, users should be able to work around it. I'm open to suggestions, if anyone has a better idea. -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make the tradeoff then, having range in vscode now as opposed to when 3.0 is released months or years is a powerful motivator.
Type of Changes
Description
Based on the work of @DanielNoord in 6e91225, I've added the
endLine
andendColumn
keys to the output of theJSONReporter
. These are necessary for support in vscode-python.I've explicitly chosen
endLine
(notend_line
) andendColumn
as those are better compatible with javascript syntax.Closes #5380