Skip to content

Incremental build fails with debug assertion when passing config file via CLI #32353

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
ajafff opened this issue Jul 11, 2019 · 0 comments · Fixed by #32360
Closed

Incremental build fails with debug assertion when passing config file via CLI #32353

ajafff opened this issue Jul 11, 2019 · 0 comments · Fixed by #32360
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@ajafff
Copy link
Contributor

ajafff commented Jul 11, 2019

TypeScript Version: 3.6.0-dev.20190711

Search Terms:

Code

tsc --init
touch index.ts
tsc -p tsconfig.json --incremental

Expected behavior:

No error, obviously. Note that there's no error with -b tsconfig.json.

Actual behavior:

It throws because it expects tsconfig.json to be an absolute path.

Error: Debug Failure. False expression: Paths must either both be absolute or both be relative
    at Object.getRelativePathFromDirectory (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:12564:18)
    at relativeToBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76859:52)
    at convertToReusableCompilerOptionValue (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76884:24)
    at convertToReusableCompilerOptions (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76867:32)
    at getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76825:22)
    at Object.newProgram.getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:76957:63)
    at Object.getProgramBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:74728:291)
    at emitBuildInfo (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69511:32)
    at emitSourceFileOrBundle (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69484:13)
    at forEachEmittedFile (/Users/klaus/code/test/node_modules/typescript/lib/tsc.js:69294:28)

Playground Link:

Related Issues:

Seems to be caused by ##31985 (@sheetalkamat)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
3 participants