question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tsc output format changed?

See original GitHub issue

I noticed Typescript errors were no longer being matched correctly. After a bit of research it seems the format has changed? I couldn’t find confirmation, but here’s a comparison:

Before:

src/commandHandler.ts(107,11): error TS2322: Type 'Response<ReposGetCollaboratorPermissionLevelResponse>' is not assignable to type 'Response<CollaboratorPermissionLevel>'.

Now:

src/commandHandler.ts:107:11 - error TS2322: Type 'Response<ReposGetCollaboratorPermissionLevelResponse>' is not assignable to type 'Response<CollaboratorPermissionLevel>'.

It seems a small change to the regex in the tsc.json could be changed to accommodate both patterns.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
bryanmacfarlanecommented, Jun 26, 2020

I’ll take a look at how you overrode and see if we can improve our matcher.

2reactions
NicholasBollcommented, May 1, 2020

I was able to override the matcher here and it worked to put annotations on the correct line: https://github.com/Workday/canvas-kit/pull/609/commits/c1e38bea3332dcda0748a27e8dc83450caaf2fc5

Screen Shot 2020-05-01 at 3 26 07 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - tsc CLI Options - TypeScript
Flag Type Default ‑‑allowJs boolean false ‑‑allowUmdGlobalAccess boolean false ‑‑allowUnreachableCode boolean
Read more >
How to colorize the errors in tsc output? - Stack Overflow
Stylize errors and messages using color and context. Alas, it defaults to false so you have to enable it in your .tsconfig :...
Read more >
Configuring TypeScript compiler - inDepthDev
By default, TS compiler outputs transpiled files to the same directory where the original TS files is found. However, this can be changed...
Read more >
TypeScript configuration - Angular
Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration. This page covers some aspects of TypeScript ...
Read more >
How to Setup a TypeScript project using Rollup.js
tsc , will run the TypeScript compiler through the configurations defined in tsconfig.json file. The output content will be located in the ./out ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found