Mermade / openapi-lint-vscode

OpenAPI 2.0/3.0.x intellisense, validator, linter, converter and resolver extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=mermade.openapi-lint
BSD 3-Clause "New" or "Revised" License
51 stars 9 forks source link

On validate/lint errors the plugin crashes #25

Open exoszajzbuk opened 3 years ago

exoszajzbuk commented 3 years ago

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

MikeRalphson commented 3 years ago

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

bjorn-einar-bjartnes-4ss commented 3 years ago

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