Diagnostic ranges are incorrect
rwols opened this issue · comments
The ranges of the diagnostics are not entirely correct:
Relevant payload:
{
"uri": "file:///home/raoul/.config/sublime-text-3/Packages/LSP/plugin/core/transports.py",
"diagnostics": [
{
"message": "E501 line too long (102 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 34,
"character": 79
},
"end": {
"line": 34,
"character": 23
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (103 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 48,
"character": 79
},
"end": {
"line": 48,
"character": 24
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (89 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 54,
"character": 79
},
"end": {
"line": 54,
"character": 10
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (112 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 66,
"character": 79
},
"end": {
"line": 66,
"character": 33
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (100 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 67,
"character": 79
},
"end": {
"line": 67,
"character": 21
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (101 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 73,
"character": 79
},
"end": {
"line": 73,
"character": 22
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (102 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 74,
"character": 79
},
"end": {
"line": 74,
"character": 23
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (103 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 75,
"character": 79
},
"end": {
"line": 75,
"character": 24
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (102 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 169,
"character": 79
},
"end": {
"line": 169,
"character": 23
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (85 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 181,
"character": 79
},
"end": {
"line": 181,
"character": 6
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (103 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 199,
"character": 79
},
"end": {
"line": 199,
"character": 24
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (81 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 202,
"character": 79
},
"end": {
"line": 202,
"character": 2
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (99 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 211,
"character": 79
},
"end": {
"line": 211,
"character": 20
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (89 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 221,
"character": 79
},
"end": {
"line": 221,
"character": 10
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (85 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 236,
"character": 79
},
"end": {
"line": 236,
"character": 6
}
},
"severity": 2,
"relatedInformation": null
},
{
"message": "E501 line too long (104 > 79 characters)",
"source": "pycodestyle",
"code": "E501",
"range": {
"start": {
"line": 242,
"character": 79
},
"end": {
"line": 242,
"character": 25
}
},
"severity": 2,
"relatedInformation": null
}
]
}
Thanks for report!
Check out v1.2.2 on pypi