openapi-lint-vscode icon indicating copy to clipboard operation
openapi-lint-vscode copied to clipboard

On validate/lint errors the plugin crashes

Open exoszajzbuk opened this issue 4 years ago • 2 comments

if you run Lint, Validate, etc commands and there are any validation/lint errors the plugin crashes with "range" being undefined

Screenshot 2020-09-30 at 21 03 50

pointing to this line of code https://github.com/Mermade/openapi-lint-vscode/blob/v1.2.0/extension.js#L148

OS: MacOS 10.15.6

VSCode:

Version: 1.49.2
Commit: e5e9e69aed6e1984f7499b7af85b3d05f9a6883a
Date: 2020-09-24T16:23:52.277Z (6 days ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0

Plugin: 1.2.0

exoszajzbuk avatar Sep 30 '20 19:09 exoszajzbuk

Thanks for reporting. Will update my vscode and try to reproduce.

MikeRalphson avatar Sep 30 '20 19:09 MikeRalphson

I see the issue I reported is a duplicate of this, I have a machine where I can reproduce and also a proposed "workaround" in https://github.com/Mermade/openapi-lint-vscode/issues/25