Title: tsc: Display source line and mark position where error occurred · Issue #4024 · microsoft/TypeScript · GitHub
Open Graph Title: tsc: Display source line and mark position where error occurred · Issue #4024 · microsoft/TypeScript
X Title: tsc: Display source line and mark position where error occurred · Issue #4024 · microsoft/TypeScript
Description: It would be super helpful to see the source line with the position of the error marked in the output from tsc. I've done a very quick, naive implementation of this (darrylring/TypeScript@0dfcc3ad7d664f622fcd5f139759bd6801d50b5d) and it s...
Open Graph Description: It would be super helpful to see the source line with the position of the error marked in the output from tsc. I've done a very quick, naive implementation of this (darrylring/TypeScript@0dfcc3ad7d...
X Description: It would be super helpful to see the source line with the position of the error marked in the output from tsc. I've done a very quick, naive implementation of this (darrylring/TypeScript@0dfcc3...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4024
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsc: Display source line and mark position where error occurred","articleBody":"It would be super helpful to see the source line with the position of the error marked in the output from `tsc`. I've done a very quick, naive implementation of this (darrylring/TypeScript@0dfcc3ad7d664f622fcd5f139759bd6801d50b5d) and it seems to work nicely:\n\n```\n$ node built/local/tsc.js tests/cases/compiler/errorOnContextuallyTypedReturnType.ts \ntests/cases/compiler/errorOnContextuallyTypedReturnType.ts(1,5): error TS2322: Type '() => void' is not assignable to type '() => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n >>> var n1: () => boolean = function () { }; // expect an error here\n ^~\ntests/cases/compiler/errorOnContextuallyTypedReturnType.ts(2,37): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.\n >>> var n2: () => boolean = function ():boolean { }; // expect an error here\n ^~~~~~~\n```\n","author":{"url":"https://github.com/darrylring","@type":"Person","name":"darrylring"},"datePublished":"2015-07-24T23:06:33Z","url":"https://github.com/microsoft/TypeScript/issues/4024"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7647dd6-c507-9df1-4fcb-6616314f30a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3E8:34CAB:C64B14:FE1FB3:6B0101F2 |
| html-safe-nonce | 2c2763fff660e7a8275608c6a78519b621898b45b4490896f4e67a8cd5bf7f6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0U4OjM0Q0FCOkM2NEIxNDpGRTFGQjM6NkIwMTAxRjIiLCJ2aXNpdG9yX2lkIjoiNTM2MTEyODAyNzc3NjQxODI5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2bb67b25cf16a4e0654f41e816c0690676ecde55574d2179b55f2e5a6d5cd05e |
| hovercard-subject-tag | issue:97165586 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/4024/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fc10adc98614200333e295918df37bbf3d58fbe5f1cd8c9a780986cc2dd6af3/microsoft/TypeScript/issues/4024 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fc10adc98614200333e295918df37bbf3d58fbe5f1cd8c9a780986cc2dd6af3/microsoft/TypeScript/issues/4024 |
| og:image:alt | It would be super helpful to see the source line with the position of the error marked in the output from tsc. I've done a very quick, naive implementation of this (darrylring/TypeScript@0dfcc3ad7d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darrylring |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width