Title: TypeScript Service: canceled request with sequence number · Issue #15028 · microsoft/TypeScript · GitHub
Open Graph Title: TypeScript Service: canceled request with sequence number · Issue #15028 · microsoft/TypeScript
X Title: TypeScript Service: canceled request with sequence number · Issue #15028 · microsoft/TypeScript
Description: TypeScript Version: 2.2.2 This is a continuation of #10735. I tried to create a repo but failed, however I have it happening in multiple larger projects so the bug is there but I can't say what is causing it. I tried to capture a tssever...
Open Graph Description: TypeScript Version: 2.2.2 This is a continuation of #10735. I tried to create a repo but failed, however I have it happening in multiple larger projects so the bug is there but I can't say what is ...
X Description: TypeScript Version: 2.2.2 This is a continuation of #10735. I tried to create a repo but failed, however I have it happening in multiple larger projects so the bug is there but I can't say what...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript Service: canceled request with sequence number","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:** 2.2.2\r\n\r\nThis is a continuation of #10735.\r\nI tried to create a repo but failed, however I have it happening in multiple larger projects so the bug is there but I can't say what is causing it.\r\n\r\nI tried to capture a tssever log file as @mhegazy suggested but as soon as it happened, the tsserver destroyed it completely and filled it with null bytes.\r\nHexdump:\r\n```\r\n0000000 6e49 6f66 3020 2020 2020 6942 646e 6e69\r\n0000010 2e67 2e2e 000a 0000 0000 0000 0000 0000\r\n0000020 0000 0000 0000 0000 0000 0000 0000 0000\r\n*\r\n0001a10 0000 0000 4900 666e 206f 3133 2020 4520\r\n0001a20 6978 6974 676e 2e2e 0a2e \r\n0001a2a\r\n```\r\nThe none-null bytes reads as (the null bytes are between the Info rows):\r\n```\r\nInfo 0 Binding...\r\nInfo 31 Exiting...\r\n```\r\n\r\nThis is the trace from vscode\r\n```\r\n[Info - 6:31:24 PM] Using tsserver from location: /home/rasmus/Development/RAXA/node_modules/typescript/lib/tsserver.js\r\n[Trace - 6:31:25 PM] Sending request: configure (0). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"hostInfo\": \"vscode\"\r\n}\r\n[Trace - 6:31:25 PM] Response received: configure (0). Request took 649 ms. Success: true \r\n[Trace - 6:31:25 PM] Sending request: compilerOptionsForInferredProjects (1). Response expected: yes. Current queue length: 3\r\nArguments: {\r\n \"options\": {\r\n \"module\": \"CommonJS\",\r\n \"target\": \"ES6\",\r\n \"allowSyntheticDefaultImports\": true,\r\n \"allowNonTsExtensions\": true,\r\n \"allowJs\": true,\r\n \"jsx\": \"Preserve\"\r\n }\r\n}\r\n[Trace - 6:31:25 PM] Response received: compilerOptionsForInferredProjects (1). Request took 655 ms. Success: true \r\nResult: true\r\n[Trace - 6:31:25 PM] Sending request: getSupportedCodeFixes (2). Response expected: yes. Current queue length: 2\r\n[Trace - 6:31:25 PM] Response received: getSupportedCodeFixes (2). Request took 639 ms. Success: true \r\nResult: [\r\n \"2304\",\r\n \"2339\",\r\n \"2377\",\r\n \"2420\",\r\n \"2503\",\r\n \"2515\",\r\n \"2653\",\r\n \"2663\",\r\n \"2686\",\r\n \"2689\",\r\n \"6133\",\r\n \"6138\",\r\n \"17009\"\r\n]\r\n[Trace - 6:31:25 PM] Sending request: getSupportedCodeFixes (3). Response expected: yes. Current queue length: 1\r\n[Trace - 6:31:25 PM] Response received: getSupportedCodeFixes (3). Request took 626 ms. Success: true \r\nResult: [\r\n \"2304\",\r\n \"2339\",\r\n \"2377\",\r\n \"2420\",\r\n \"2503\",\r\n \"2515\",\r\n \"2653\",\r\n \"2663\",\r\n \"2686\",\r\n \"2689\",\r\n \"6133\",\r\n \"6138\",\r\n \"17009\"\r\n]\r\n[Trace - 6:31:25 PM] Sending request: open (4). Response expected: no. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"fileContent\": \"import * as React from 'react'\\nimport {Route} from 'react-router'\\nimport compose from 'recompose/compose'\\nimport {SectionProps} from './section'\\n\\nexport type RouteSectionProps = SectionProps & {\\n url: string\\n}\\nexport type PrivateRouteSectionProps = RouteSectionProps & {}\\n\\nexport const enhance = compose()\\n\\nexport const RouteSectionView = ({url}: PrivateRouteSectionProps) =>\\n \u003cRoute path={url} />\\n\\nexport const RouteSection = enhance(RouteSectionView) as React.ComponentClass\u003cRouteSectionProps>\\n\",\r\n \"scriptKindName\": \"TSX\"\r\n}\r\n[Trace - 6:31:25 PM] Sending request: geterr (5). Response expected: no. Current queue length: 0\r\nArguments: {\r\n \"delay\": 0,\r\n \"files\": [\r\n \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\"\r\n ]\r\n}\r\n[Trace - 6:31:29 PM] Event received: configFileDiag (0).\r\nData: {\r\n \"triggerFile\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"configFile\": \"/home/rasmus/Development/RAXA/packages/web/tsconfig.json\",\r\n \"diagnostics\": []\r\n}\r\n[Trace - 6:31:29 PM] Event received: syntaxDiag (0).\r\nData: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"diagnostics\": []\r\n}\r\n[Trace - 6:31:29 PM] Event received: semanticDiag (0).\r\nData: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"diagnostics\": []\r\n}\r\n[Trace - 6:31:29 PM] Event received: requestCompleted (0).\r\nData: {\r\n \"request_seq\": 5\r\n}\r\n[Trace - 6:31:30 PM] Sending request: occurrences (6). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 16,\r\n \"offset\": 20\r\n}\r\n[Trace - 6:31:30 PM] Response received: occurrences (6). Request took 36 ms. Success: true \r\nResult: [\r\n {\r\n \"start\": {\r\n \"line\": 16,\r\n \"offset\": 14\r\n },\r\n \"end\": {\r\n \"line\": 16,\r\n \"offset\": 26\r\n },\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"isWriteAccess\": true\r\n }\r\n]\r\n[Trace - 6:31:32 PM] Sending request: quickinfo (7). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 16,\r\n \"offset\": 20\r\n}\r\n[Trace - 6:31:32 PM] Response received: quickinfo (7). Request took 2 ms. Success: true \r\nResult: {\r\n \"kind\": \"const\",\r\n \"kindModifiers\": \"export\",\r\n \"start\": {\r\n \"line\": 16,\r\n \"offset\": 14\r\n },\r\n \"end\": {\r\n \"line\": 16,\r\n \"offset\": 26\r\n },\r\n \"displayString\": \"const RouteSection: React.ComponentClass\u003cRouteSectionProps>\",\r\n \"documentation\": \"\"\r\n}\r\n[Trace - 6:31:33 PM] Sending request: definition (8). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 13,\r\n \"offset\": 15\r\n}\r\n[Trace - 6:31:33 PM] Response received: definition (8). Request took 12 ms. Success: true \r\nResult: [\r\n {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"start\": {\r\n \"line\": 13,\r\n \"offset\": 14\r\n },\r\n \"end\": {\r\n \"line\": 13,\r\n \"offset\": 30\r\n }\r\n }\r\n]\r\n[Trace - 6:31:34 PM] Sending request: definition (9). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 11,\r\n \"offset\": 13\r\n}\r\n[Trace - 6:31:34 PM] Response received: definition (9). Request took 2 ms. Success: false . Message: No content available.\r\n[Trace - 6:31:34 PM] Sending request: definition (10). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 13,\r\n \"offset\": 10\r\n}\r\n[Trace - 6:31:34 PM] Response received: definition (10). Request took 1 ms. Success: false . Message: No content available.\r\n[Trace - 6:31:34 PM] Sending request: definition (11). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 14,\r\n \"offset\": 8\r\n}\r\n[Trace - 6:31:34 PM] Response received: definition (11). Request took 2 ms. Success: true \r\nResult: [\r\n {\r\n \"file\": \"/home/rasmus/Development/RAXA/node_modules/@types/react-router/index.d.ts\",\r\n \"start\": {\r\n \"line\": 71,\r\n \"offset\": 9\r\n },\r\n \"end\": {\r\n \"line\": 71,\r\n \"offset\": 14\r\n }\r\n }\r\n]\r\n[Trace - 6:31:34 PM] Sending request: open (12). Response expected: no. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/node_modules/@types/react-router/index.d.ts\",\r\n \"fileContent\": \"// Type definitions for React Router 4.0\\r\\n// Project: https://github.com/ReactTraining/react-router\\r\\n// Definitions by: Sergey Buturlakin \u003chttps://github.com/sergey-buturlakin>\\r\\n// Yuichi Murata \u003chttps://github.com/mrk21>\\r\\n// Václav Ostrožlík \u003chttps://github.com/vasek17>\\r\\n// Nathan Brown \u003chttps://github.com/ngbrown>\\r\\n// Alex Wendland \u003chttps://github.com/awendland>\\r\\n// Kostya Esmukov \u003chttps://github.com/KostyaEsmukov>\\r\\n// John Reilly \u003chttps://github.com/johnnyreilly>\\r\\n// Karol Janyst \u003chttps://github.com/LKay>\\r\\n// Dovydas Navickas \u003chttps://github.com/DovydasNavickas>\\r\\n// Tanguy Krotoff \u003chttps://github.com/tkrotoff>\\r\\n// Huy Nguyen \u003chttps://github.com/huy-nguyen>\\r\\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\\r\\n// TypeScript Version: 2.2\\r\\n\\r\\ndeclare module 'react-router' {\\r\\n import * as React from 'react';\\r\\n import * as H from 'history';\\r\\n\\r\\n\\t// This is the type of the context object that will be passed down to all children of\\r\\n\\t// a `Router` component:\\r\\n\\tinterface RouterChildContext\u003cP> {\\r\\n\\t\\trouter: {\\r\\n\\t\\t\\thistory: H.History\\r\\n\\t\\t\\troute: {\\r\\n\\t\\t\\t\\tlocation: H.Location,\\r\\n\\t\\t\\t\\tmatch: match\u003cP>\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\\r\\n interface MemoryRouterProps {\\r\\n initialEntries?: H.Location[];\\r\\n initialIndex?: number;\\r\\n getUserConfirmation?: () => void;\\r\\n keyLength?: number;\\r\\n }\\r\\n class MemoryRouter extends React.Component\u003cMemoryRouterProps, void> {}\\r\\n\\r\\n\\r\\n interface PromptProps {\\r\\n message: string | ((location: H.Location) => void);\\r\\n when?: boolean;\\r\\n }\\r\\n class Prompt extends React.Component\u003cPromptProps, void> {}\\r\\n\\r\\n\\r\\n interface RedirectProps {\\r\\n to: H.LocationDescriptor;\\r\\n push?: boolean;\\r\\n from?: string;\\r\\n }\\r\\n class Redirect extends React.Component\u003cRedirectProps, void> {}\\r\\n\\r\\n\\r\\n interface RouteComponentProps\u003cP> {\\r\\n match: match\u003cP>;\\r\\n location: H.Location;\\r\\n history: H.History;\\r\\n }\\r\\n\\r\\n interface RouteProps {\\r\\n location?: H.Location;\\r\\n component?: React.SFC\u003cRouteComponentProps\u003cany> | void> | React.ComponentClass\u003cRouteComponentProps\u003cany> | void>;\\r\\n render?: (props: RouteComponentProps\u003cany>) => React.ReactNode;\\r\\n children?: (props: RouteComponentProps\u003cany>) => React.ReactNode | React.ReactNode;\\r\\n path?: string;\\r\\n exact?: boolean;\\r\\n strict?: boolean;\\r\\n }\\r\\n class Route extends React.Component\u003cRouteProps, void> {}\\r\\n\\r\\n\\r\\n interface RouterProps {\\r\\n history: any;\\r\\n }\\r\\n class Router extends React.Component\u003cRouterProps, void> {}\\r\\n\\r\\n\\r\\n interface StaticRouterProps {\\r\\n basename?: string;\\r\\n location?: string | object;\\r\\n context?: object;\\r\\n }\\r\\n class StaticRouter extends React.Component\u003cStaticRouterProps, void> {}\\r\\n\\r\\n\\r\\n interface SwitchProps extends RouteProps {\\r\\n }\\r\\n class Switch extends React.Component\u003cSwitchProps, void> {}\\r\\n\\r\\n\\r\\n interface match\u003cP> {\\r\\n params: P;\\r\\n isExact: boolean;\\r\\n path: string;\\r\\n url: string;\\r\\n }\\r\\n\\r\\n\\r\\n function matchPath\u003cP>(pathname: string, props: RouteProps): match\u003cP> | null;\\r\\n\\r\\n\\r\\n function withRouter(component: React.SFC\u003cRouteComponentProps\u003cany>> | React.ComponentClass\u003cRouteComponentProps\u003cany>>): React.ComponentClass\u003cany>;\\r\\n\\r\\n\\r\\n export {\\r\\n MemoryRouter,\\r\\n Prompt,\\r\\n Redirect,\\r\\n RouteComponentProps, // TypeScript specific, not from React Router itself\\r\\n RouteProps, // TypeScript specific, not from React Router itself\\r\\n Route,\\r\\n Router,\\r\\n StaticRouter,\\r\\n Switch,\\r\\n match, // TypeScript specific, not from React Router itself\\r\\n matchPath,\\r\\n\\t\\twithRouter,\\r\\n\\t\\tRouterChildContext\\r\\n }\\r\\n}\\r\\n\",\r\n \"scriptKindName\": \"TS\"\r\n}\r\n[Trace - 6:31:34 PM] Sending request: quickinfo (13). Response expected: yes. Current queue length: 0\r\nArguments: {\r\n \"file\": \"/home/rasmus/Development/RAXA/packages/web/src/components/ui/scaffold/route-section.tsx\",\r\n \"line\": 14,\r\n \"offset\": 7\r\n}\r\n[Trace - 6:31:35 PM] TypeScript Service: tried to cancel request with sequence number 13. But request got already delivered.\r\n[Trace - 6:31:38 PM] TypeScript Service: canceled request with sequence number 17\r\n[Trace - 6:31:42 PM] TypeScript Service: canceled request with sequence number 20\r\n[Trace - 6:31:42 PM] TypeScript Service: canceled request with sequence number 15\r\n[Error - 6:32:26 PM] TSServer exited with code: unknown\r\n[Info - 6:32:26 PM] Using tsserver from location: /home/rasmus/Development/RAXA/node_modules/typescript/lib/tsserver.js\r\n[Trace - 6:32:55 PM] TypeScript Service: canceled request with sequence number 32\r\n[Trace - 6:32:59 PM] TypeScript Service: canceled request with sequence number 33\r\n[Trace - 6:33:03 PM] TypeScript Service: canceled request with sequence number 37\r\n[Trace - 6:33:04 PM] TypeScript Service: canceled request with sequence number 38\r\n[Trace - 6:33:04 PM] TypeScript Service: canceled request with sequence number 39\r\n[Trace - 6:33:04 PM] TypeScript Service: canceled request with sequence number 40\r\n[Trace - 6:33:05 PM] TypeScript Service: canceled request with sequence number 41\r\n[Trace - 6:33:05 PM] TypeScript Service: canceled request with sequence number 42\r\n[Trace - 6:33:06 PM] TypeScript Service: canceled request with sequence number 43\r\n[Trace - 6:33:07 PM] TypeScript Service: canceled request with sequence number 44\r\n[Trace - 6:33:08 PM] TypeScript Service: canceled request with sequence number 45\r\n[Trace - 6:33:09 PM] TypeScript Service: canceled request with sequence number 47\r\n[Trace - 6:33:11 PM] TypeScript Service: canceled request with sequence number 46\r\n[Trace - 6:33:28 PM] TypeScript Service: canceled request with sequence number 50\r\n[Trace - 6:33:29 PM] TypeScript Service: canceled request with sequence number 51\r\n[Trace - 6:33:29 PM] TypeScript Service: canceled request with sequence number 53\r\n[Trace - 6:34:27 PM] TypeScript Service: canceled request with sequence number 56\r\n[Trace - 6:34:27 PM] TypeScript Service: canceled request with sequence number 54\r\n[Trace - 6:35:06 PM] TypeScript Service: canceled request with sequence number 61\r\n```\r\n\r\ntsserver.log when just having caused the bug but before tsserver hangs or crashed (before the request times out?)\r\n\u003chttps://gist.github.com/Pajn/706265d7f61e89bab5b3bcfe93ce068d>\r\n\r\nIn this particular project it seems like I can reproduce it every time by doing go to definition in a specific JSX element.","author":{"url":"https://github.com/Pajn","@type":"Person","name":"Pajn"},"datePublished":"2017-04-05T16:50:15Z","url":"https://github.com/microsoft/TypeScript/issues/15028"}
| 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:70ee3707-cc07-cfb6-4d5f-9045d620b868 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89DE:213839:DB863A:11BB767:6B00F674 |
| html-safe-nonce | 9957ec11862150ea5a210ac3854a2e782946904ac60b1c454de57e048aaff734 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OURFOjIxMzgzOTpEQjg2M0E6MTFCQjc2Nzo2QjAwRjY3NCIsInZpc2l0b3JfaWQiOiI3MTA2MzM0NzU2NjgxMzQ4NzI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f4995660fc5873b8a09c9a13bfd3313ce3053ca9e7d52ef7a797e6771e928c26 |
| hovercard-subject-tag | issue:219647854 |
| 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/15028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53ceb1d6354cd1b4ff340a1254fb101169c51e0aa1e181eed29e82477e00d219/microsoft/TypeScript/issues/15028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53ceb1d6354cd1b4ff340a1254fb101169c51e0aa1e181eed29e82477e00d219/microsoft/TypeScript/issues/15028 |
| og:image:alt | TypeScript Version: 2.2.2 This is a continuation of #10735. I tried to create a repo but failed, however I have it happening in multiple larger projects so the bug is there but I can't say what is ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Pajn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width