You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an issue like Newline required at end of file but not found, eslint doesn't report endLine or endChar and current code is wrong in checking those properties for null but not for undefined. So server ends up sending null/None value for line and character properties in Position object which is invalid according to the spec [1] (only numbers are allowed).
For some issues eslint triggers error with no `endLine` and/or
`endColumn` defined. In that case the code should use `line` and
`column` for the values, respectively. While the code has attempted to
do that, it only checked for `null` value for those while eslint
actually doesn't even have them set so they are undefined.
Fix by checking that value is either null or undefined.
This problem causes random exceptions on some LSP clients (for me it
triggered in Sublime LSP). Not sure if it affected Vetur.
Resolvesmicrosoft#752
For some issues eslint triggers error with no `endLine` and/or
`endColumn` defined. In that case the code should use `line` and
`column` for the values, respectively. While the code has attempted to
do that, it only checked for `null` value for those while eslint
actually doesn't even have them set so they are undefined.
Fix by checking that value is either null or undefined.
This problem causes random exceptions on some LSP clients (for me it
triggered in Sublime LSP). Not sure if it affected Vetur.
Resolves#752
For an issue like
Newline required at end of file but not found
, eslint doesn't report endLine or endChar and current code is wrong in checking those properties for null but not for undefined. So server ends up sendingnull
/None
value forline
andcharacter
properties inPosition
object which is invalid according to the spec [1] (only numbers are allowed).[1] https://microsoft.github.io/language-server-protocol/specification#position
The text was updated successfully, but these errors were encountered: