-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Debug Failure. False expression #30591
Comments
@sandersn A symbol table bug appears! |
Repro steps:
Edit: The following commands have no error:
|
Looks like the program has duplicates in its list of source files. |
Adding asserts to program.ts:addFileToFilesByName moves this error a lot closer to its origin: function addFileToFilesByName(file: SourceFile | undefined, path: Path, redirectedPath: Path | undefined) {
Debug.assert(!filesByName.has(path), "duplicate path");
if (redirectedPath) {
Debug.assert(!filesByName.has(redirectedPath), "duplicate redirected path");
filesByName.set(redirectedPath, file);
filesByName.set(path, file || false);
}
else {
filesByName.set(path, file);
}
} |
…ed project with --out Test for #30591
Also has this error with typescript@3.4, although I am building project through webpack, and its only happens when in watch mode, and only at first build. After initial build everything is ok, no errors. Without watch mode everything is fine too
Not sure how else I can help |
…ed project with --out Test for microsoft#30591
Trying to do a composite build modeled after microsoft/typescript but generating AMD modules fails:
You can find a link to the project on https://stackoverflow.com/questions/55348498/problems-building-with-typescript-transpiler-tsc-using-the-build-flag, but basically if you set the module to "amd" it fails to transpiler (works fine when outFile -> outDir).
The text was updated successfully, but these errors were encountered: