|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`main outputs old server errors 1`] = ` |
| 4 | +[MockFunction] { |
| 5 | + "calls": [ |
| 6 | + [ |
| 7 | + "<BASE_PATH>/ts_downloads/base/MockRepoOwner.MockRepoName.rawError.txt", |
| 8 | + "Req #123 - cursedCommand |
| 9 | +Some error. Could not do something. |
| 10 | +Maybe a Debug fail. |
| 11 | + at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1) |
| 12 | + at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2) |
| 13 | + at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3) |
| 14 | + at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4) |
| 15 | + at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5)", |
| 16 | + ], |
| 17 | + [ |
| 18 | + "<BASE_PATH>/RepoResults123/718e48b799650d4b66e5d80ad6bac7b9.results.txt", |
| 19 | + "<h2>Maybe a Debug fail.</h2> |
| 20 | +
|
| 21 | +\`\`\` |
| 22 | +Req #123 - cursedCommand |
| 23 | + at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1) |
| 24 | + at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2) |
| 25 | + at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3) |
| 26 | + at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4) |
| 27 | + at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5) |
| 28 | +\`\`\` |
| 29 | +
|
| 30 | +<h4>Affected repos</h4> |
| 31 | +<details> |
| 32 | +<summary><a href="https://github.com./MockRepoOwner/MockRepoName">MockRepoOwner/MockRepoName</a></summary> |
| 33 | +Raw error text: <code>RepoResults123/MockRepoOwner.MockRepoName.rawError.txt</code> in the <a href="PLACEHOLDER_ARTIFACT_FOLDER">artifact folder</a> <br /> |
| 34 | +Replay commands: <code>RepoResults123/MockRepoOwner.MockRepoName.replay.txt</code> in the <a href="PLACEHOLDER_ARTIFACT_FOLDER">artifact folder</a> |
| 35 | +<h4>Last few requests</h4> |
| 36 | +
|
| 37 | +\`\`\`json |
| 38 | +{"rootDirPlaceholder":"@PROJECT_ROOT@","serverArgs":["--disableAutomaticTypingAcquisition"]} |
| 39 | +{"seq":1,"type":"request","command":"configure","arguments":{"preferences":{"disableLineTextInReferences":true,"includePackageJsonAutoImports":"auto","includeCompletionsForImportStatements":true,"includeCompletionsWithSnippetText":true,"includeAutomaticOptionalChainCompletions":true,"includeCompletionsWithInsertText":true,"includeCompletionsWithClassMemberSnippets":true,"allowIncompleteCompletions":true,"includeCompletionsForModuleExports":false},"watchOptions":{"excludeDirectories":["**/node_modules"]}}} |
| 40 | +{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/sample_repoName.config.js","projectRootPath":"@PROJECT_ROOT@"}]}} |
| 41 | +{"seq":3,"type":"request","command":"cursedCommand","arguments":{"file":"@PROJECT_ROOT@/src/sampleTsFile.ts","line":1,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} |
| 42 | +\`\`\` |
| 43 | +
|
| 44 | +<h4>Repro steps</h4> |
| 45 | +
|
| 46 | +\`\`\`bash |
| 47 | +#!/bin/bash |
| 48 | +
|
| 49 | +git clone https://github.com./MockRepoOwner/MockRepoName --recurse-submodules |
| 50 | +git -C "./MockRepoName" reset --hard 57b462387e88aa7e363af0daf867a5dc1e83a935 |
| 51 | +# Install packages (exact steps are below, but it might be easier to follow the repo readme) |
| 52 | +npm --prefix "./dirA" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 53 | +npm --prefix "./dirB/dirC" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 54 | +npm --prefix "./dirD/dirE/dirF" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 55 | +downloadUrl=$(curl -s "PLACEHOLDER_GETARTIFACTS_API?artifactName=RepoResults123&api-version=7.0" | jq -r ".resource.downloadUrl") |
| 56 | +wget -O RepoResults123.zip "$downloadUrl" |
| 57 | +unzip -p RepoResults123.zip RepoResults123/MockRepoOwner.MockRepoName.replay.txt > MockRepoOwner.MockRepoName.replay.txt |
| 58 | +npm install --no-save @typescript/server-replay |
| 59 | +\`\`\` |
| 60 | +
|
| 61 | +To run the repro: |
| 62 | +\`\`\`bash |
| 63 | +# \`npx tsreplay --help\` to learn about helpful switches for debugging, logging, etc. |
| 64 | +npx tsreplay ./MockRepoName ./MockRepoOwner.MockRepoName.replay.txt <PATH_TO_tsserver.js> |
| 65 | +\`\`\` |
| 66 | +
|
| 67 | +</details> |
| 68 | +", |
| 69 | + { |
| 70 | + "encoding": "utf-8", |
| 71 | + }, |
| 72 | + ], |
| 73 | + [ |
| 74 | + "<BASE_PATH>/RepoResults123/metadata.json", |
| 75 | + "{"newTsResolvedVersion":"1.1.1","oldTsResolvedVersion":"0.0.0","statusCounts":{"Detected interesting changes":1}}", |
| 76 | + { |
| 77 | + "encoding": "utf-8", |
| 78 | + }, |
| 79 | + ], |
| 80 | + [ |
| 81 | + "<BASE_PATH>/RepoResults123/!718e48b799650d4b66e5d80ad6bac7b9.results.txt", |
| 82 | + " |
| 83 | +<details> |
| 84 | +<summary>New server no longer reports this error: Maybe a Debug fail.</summary> |
| 85 | +
|
| 86 | +\`\`\` |
| 87 | +Req #123 - cursedCommand |
| 88 | + at a (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:1:1) |
| 89 | + at b (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:2:2) |
| 90 | + at c (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:3:3) |
| 91 | + at d (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:4:4) |
| 92 | + at e (/mnt/vss/_work/1/s/typescript-1.1.1/lib/typescript.js:5:5) |
| 93 | +\`\`\` |
| 94 | +
|
| 95 | +<h4>Affected repos</h4> |
| 96 | +<details> |
| 97 | +<summary><a href="https://github.com./MockRepoOwner/MockRepoName">MockRepoOwner/MockRepoName</a></summary> |
| 98 | +Raw error text: <code>RepoResults123/MockRepoOwner.MockRepoName.rawError.txt</code> in the <a href="PLACEHOLDER_ARTIFACT_FOLDER">artifact folder</a> <br /> |
| 99 | +Replay commands: <code>RepoResults123/MockRepoOwner.MockRepoName.replay.txt</code> in the <a href="PLACEHOLDER_ARTIFACT_FOLDER">artifact folder</a> |
| 100 | +<h4>Last few requests</h4> |
| 101 | +
|
| 102 | +\`\`\`json |
| 103 | +{"rootDirPlaceholder":"@PROJECT_ROOT@","serverArgs":["--disableAutomaticTypingAcquisition"]} |
| 104 | +{"seq":1,"type":"request","command":"configure","arguments":{"preferences":{"disableLineTextInReferences":true,"includePackageJsonAutoImports":"auto","includeCompletionsForImportStatements":true,"includeCompletionsWithSnippetText":true,"includeAutomaticOptionalChainCompletions":true,"includeCompletionsWithInsertText":true,"includeCompletionsWithClassMemberSnippets":true,"allowIncompleteCompletions":true,"includeCompletionsForModuleExports":false},"watchOptions":{"excludeDirectories":["**/node_modules"]}}} |
| 105 | +{"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"@PROJECT_ROOT@/sample_repoName.config.js","projectRootPath":"@PROJECT_ROOT@"}]}} |
| 106 | +{"seq":3,"type":"request","command":"cursedCommand","arguments":{"file":"@PROJECT_ROOT@/src/sampleTsFile.ts","line":1,"offset":1,"includeExternalModuleExports":false,"triggerKind":1}} |
| 107 | +\`\`\` |
| 108 | +
|
| 109 | +<h4>Repro steps</h4> |
| 110 | +
|
| 111 | +\`\`\`bash |
| 112 | +#!/bin/bash |
| 113 | +
|
| 114 | +git clone https://github.com./MockRepoOwner/MockRepoName --recurse-submodules |
| 115 | +git -C "./MockRepoName" reset --hard 57b462387e88aa7e363af0daf867a5dc1e83a935 |
| 116 | +# Install packages (exact steps are below, but it might be easier to follow the repo readme) |
| 117 | +npm --prefix "./dirA" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 118 | +npm --prefix "./dirB/dirC" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 119 | +npm --prefix "./dirD/dirE/dirF" install --prefer-offline --no-audit --no-progress --legacy-peer-deps --ignore-scripts -q |
| 120 | +downloadUrl=$(curl -s "PLACEHOLDER_GETARTIFACTS_API?artifactName=RepoResults123&api-version=7.0" | jq -r ".resource.downloadUrl") |
| 121 | +wget -O RepoResults123.zip "$downloadUrl" |
| 122 | +unzip -p RepoResults123.zip RepoResults123/MockRepoOwner.MockRepoName.replay.txt > MockRepoOwner.MockRepoName.replay.txt |
| 123 | +npm install --no-save @typescript/server-replay |
| 124 | +\`\`\` |
| 125 | +
|
| 126 | +To run the repro: |
| 127 | +\`\`\`bash |
| 128 | +# \`npx tsreplay --help\` to learn about helpful switches for debugging, logging, etc. |
| 129 | +npx tsreplay ./MockRepoName ./MockRepoOwner.MockRepoName.replay.txt <PATH_TO_tsserver.js> |
| 130 | +\`\`\` |
| 131 | +
|
| 132 | +</details> |
| 133 | +
|
| 134 | +</details> |
| 135 | +", |
| 136 | + { |
| 137 | + "encoding": "utf-8", |
| 138 | + }, |
| 139 | + ], |
| 140 | + [ |
| 141 | + "<BASE_PATH>/RepoResults123/metadata.json", |
| 142 | + "{"newTsResolvedVersion":"1.1.1","oldTsResolvedVersion":"0.0.0","statusCounts":{"Detected interesting changes":1}}", |
| 143 | + { |
| 144 | + "encoding": "utf-8", |
| 145 | + }, |
| 146 | + ], |
| 147 | + ], |
| 148 | + "results": [ |
| 149 | + { |
| 150 | + "type": "return", |
| 151 | + "value": undefined, |
| 152 | + }, |
| 153 | + { |
| 154 | + "type": "return", |
| 155 | + "value": undefined, |
| 156 | + }, |
| 157 | + { |
| 158 | + "type": "return", |
| 159 | + "value": undefined, |
| 160 | + }, |
| 161 | + { |
| 162 | + "type": "return", |
| 163 | + "value": undefined, |
| 164 | + }, |
| 165 | + { |
| 166 | + "type": "return", |
| 167 | + "value": undefined, |
| 168 | + }, |
| 169 | + ], |
| 170 | +} |
| 171 | +`; |
| 172 | +
|
3 | 173 | exports[`main outputs server errors 1`] = `
|
4 | 174 | [MockFunction] {
|
5 | 175 | "calls": [
|
|
0 commit comments