-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lint plugins not supported? #73
Comments
This is a regression bug. Thanks for reporting it! Meanwhile you can use a version prior to v0.5. |
here's my contribution of the error log from vsc. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Failed to load plugin "./linting/plugins/index.js": Cannot find module './linting/plugins/index.js'
Require stack:
- c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js
Error: Cannot find module './linting/plugins/index.js'
Require stack:
- c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
at Function.resolve (node:internal/modules/helpers:190:19)
at r (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:129:922)
at c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:274
at Array.map (<anonymous>)
at SM (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:97)
at PM (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:3410)
at R7 (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:4245)
at Fye (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:129:582)
at r (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:130:78)
at c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:274
at Array.map (<anonymous>)
at SM (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:97)
at PM (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:3410)
at R7 (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:132:4245)
at Fye (c:\Users\fieljere\.vscode\extensions\redocly.openapi-vs-code-0.5.2\out\server\src\server.js:129:582) | .redocly.lint-ignore.yaml
| redocly.yaml
|
+---linting
| \---plugins
| | index.js
| |
| \---rules
| ... # redocly.yaml
plugins:
- './linting/plugins/index.js' |
@duncanbeevers @jeremyfiel could you confirm it is fixed in v0.5.3? |
@tatomyr I verified this is fixed for me in 0.5.3. |
@duncanbeevers which extension provides the inline errors? |
Hmm, that's strange. What version did it start failing on Windows? |
not sure. i can try loading prior versions to narrow it down.. will let you know |
seems to start with 0.5.0
|
Thanks. Will look into that. |
What happened?
First, the preconditions:
operationId
definedredocly.yaml
configured with no plugins / custom lint rules, and noextends
; I enforced a single ruleoperation-operationId: error
redocly lint
and verified the single error was reportedSecond, the error:
redocly.yaml
to load a single custom plugin, and to use a single rule defined by the pluginoperationId
error and the custom rule's error were reportedoperationId
error nor the custom rule's error were reportedI checked the Extension Host logs and didn't see any output for redocly-vs-code.
What should have happened instead?
Custom rules should be honored.
Minimal reproducible OpenAPI snippet
Screenshots
Using @redocly/cli @ 1.25.11
Using redocly-vs-code @ 0.5.1
The text was updated successfully, but these errors were encountered: