dx: be more explicit with emitSkipped error#395
Merged
Conversation
- a few issues have reported that "failed to transpile" is a vague / confusing error
- and `emitSkipped` actually _doesn't_ mean that it failed to transpile, as, in current versions of TS, it's not due to syntactic or semantic errors
- so explicitly say "Emit skipped" instead, which is slightly less vague, in that it can actually be used as a search term
- and provide a link to my TS issue that lists some reasons why `emitSkipped` occurs, since this is unfortunately otherwise undocumented by TS
- in the future, hopefully that issue will be resolved and we'll be able to give better or more specific error messages, but for now this is probably the best we can do due to its undocumented nature, unfortunately
Collaborator
Author
|
Hmm... so with latest rpt2 In this case, there are diagnostics with the That's because the type error is in This might be a TS bug upstream? I'm really not sure... 😕 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Provide a bit more details when erroring on
emitSkippedand link to my TS issue since this is unfortunately undocumentedemitSkippedistruein Compiler API microsoft/TypeScript#49790failed to transpileerror --noEmitOnError: truebreaks rpt2 #254,failed to transpiletslib.es6.jsafter update tov0.30.0#264, test: add initial integration test suite #371 (comment)Details
emitSkippedactually doesn't mean that it failed to transpile, as, in current versions of TS, it's not due to syntactic or semantic errors (c.f. Struggling to get an emit failure with 1.5 microsoft/TypeScript#2290 (comment), which is linked in my upstream issue)emitSkippedoccurs, since this is unfortunately otherwise undocumented by TS