Skip to content
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

Volar stop working after i upgrade volar version #1782

Closed
MonsterPi13 opened this issue Aug 29, 2022 · 6 comments
Closed

Volar stop working after i upgrade volar version #1782

MonsterPi13 opened this issue Aug 29, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@MonsterPi13
Copy link

MonsterPi13 commented Aug 29, 2022

After i upgrade VSCode and Volar version, volar crashed.

VSCode version: 1.70.2
Volar version: 0.40.4

Error as below:

/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:8175
        ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either both be absolute or both be relative");
                 ^

Error: Debug Failure. False expression: Paths must either both be absolute or both be relative
    at Object.getRelativePathFromDirectory (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:8175:18)
    at Object.getTsBuildInfoEmitOutputFilePath (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:110032:55)
    at verifyProjectReferences (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:119067:71)
    at verifyCompilerOptions (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:118716:13)
    at Object.createProgram (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:116912:9)
    at synchronizeHostData (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:165063:26)
    at Object.getProgram (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/typescript.js:165195:13)
    at Object.a [as isValidFile] (/Users/ruanpeng/.vscode/extensions/vue.volar-0.40.4-darwin-arm64/dist/node/server.js:576:14666)
    at /Users/ruanpeng/.vscode/extensions/vue.volar-0.40.4-darwin-arm64/dist/node/server.js:1123:4519
    at r (/Users/ruanpeng/.vscode/extensions/vue.volar-0.40.4-darwin-arm64/dist/node/server.js:1123:6966)
[Info  - 14:17:05] Connection to server got closed. Server will restart.
[Error - 14:17:09] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Debug Failure. False expression: Paths must either both be absolute or both be relative
  Code: -32603 
[Error - 14:17:23] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Debug Failure. False expression: Paths must either both be absolute or both be relative
  Code: -32603 

When i downgrade volar version to v0.4.0, it works well.

@johnsoncodehk
Copy link
Member

Fixed by 9849743.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Aug 30, 2022
@radoslavirha
Copy link

Hi,

I'm still getting ^^ error with "vue-tsc": "^1.1.2". It's pretty annoying because I cannot find bugs.

Thanks

@albert0815
Copy link

We are experiencing the same error. Really hard to understand what is going on.

@baakeydow
Copy link

same here

@microHoffman
Copy link

I can confirm this error on vue-tsc v1.3.4 ... downgrading to v1.2.0 resolved this issue, but i have no idea why it happens...

@wangxdmm
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants