Skip to content

Request textDocument/codeAction failed with message: Debug Failure. False expression 0.28.8 #631

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

Closed
yangdan8 opened this issue Oct 25, 2021 · 5 comments

Comments

@yangdan8
Copy link

0.28.7 everything is normal. Any Vue file will report an error after it is automatically updated to 0.28.8

@johnsoncodehk
Copy link
Member

Thanks for the report, can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter?

@yangdan8
Copy link
Author

The starter does not reproduce

------The error message:
(node:12608) UnhandledPromiseRejectionWarning: Error: Debug Failure. False expression.
(Use Code --trace-warnings ... to show where the warning was created)
(node:12608) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:12608) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@johnsoncodehk
Copy link
Member

Please try to provide a repro case, otherwise I can't investigate. Thanks. :)

@sam-choiholdings
Copy link

I have the same issue when updating VSCode to 1.61.2 and Volar to 0.28.8 , I don't have time to reproduce at the moment, but here's the stack trace:

[Error - 6:33:46 PM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Debug Failure. False expression.
  Code: -32603 
(node:19135) UnhandledPromiseRejectionWarning: Error: Debug Failure. False expression.
    at parseProjectReferenceConfigFile (/Users/sam/git/ismedia/client-monorepo/ismedia/node_modules/typescript/lib/tsserverlibrary.js:111398:26)
    at Array.map (<anonymous>)
    at parseProjectReferenceConfigFile (/Users/sam/git/ismedia/client-monorepo/ismedia/node_modules/typescript/lib/tsserverlibrary.js:111419:72)
    at Array.map (<anonymous>)
    at Object.createProgram (/Users/sam/git/ismedia/client-monorepo/ismedia/node_modules/typescript/lib/tsserverlibrary.js:109570:67)
    at synchronizeHostData (/Users/sam/git/ismedia/client-monorepo/ismedia/node_modules/typescript/lib/tsserverlibrary.js:153745:26)
    at Object.getProgram (/Users/sam/git/ismedia/client-monorepo/ismedia/node_modules/typescript/lib/tsserverlibrary.js:153877:13)
    at getValidTextDocument (/Users/sam/.vscode/extensions/johnsoncodehk.volar-0.28.8/node_modules/vscode-typescript-languageservice/out/index.js:69:37)
    at Object.getCodeActions (/Users/sam/.vscode/extensions/johnsoncodehk.volar-0.28.8/node_modules/vscode-typescript-languageservice/out/services/codeAction.js:11:26)
    at onTs (/Users/sam/.vscode/extensions/johnsoncodehk.volar-0.28.8/node_modules/vscode-vue-languageservice/out/services/codeAction.js:29:44)

Downgrading to 0.28.7 works for now.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Oct 26, 2021

I can reproduce in repro case from this comment, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants