Skip to content

Commit 01144bc

Browse files
authored
fix: bad error message for missing components, ts5.5 (#622)
1 parent f3aa895 commit 01144bc

File tree

5 files changed

+31
-97
lines changed

5 files changed

+31
-97
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"editor.tabSize": 2,
1414
"editor.formatOnSave": true,
1515
"rewrap.wrappingColumn": 80,
16-
"cSpell.words": ["repros"]
16+
"cSpell.words": ["repros"],
17+
"typescript.tsdk": "node_modules/typescript/lib"
1718
}

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
},
5151
"dependencies": {
5252
"@oclif/core": "^4.0.6",
53-
"@salesforce/core": "^8.0.5",
53+
"@salesforce/core": "^8.1.0",
5454
"@salesforce/kit": "^3.1.6",
55-
"@salesforce/source-deploy-retrieve": "^12.0.2",
55+
"@salesforce/source-deploy-retrieve": "^12.1.0",
5656
"@salesforce/ts-types": "^2.0.10",
5757
"fast-xml-parser": "^4.4.0",
5858
"graceful-fs": "^4.2.11",
@@ -66,8 +66,8 @@
6666
"@types/graceful-fs": "^4.1.9",
6767
"eslint-plugin-sf-plugin": "^1.18.9",
6868
"ts-node": "^10.9.2",
69-
"ts-patch": "^3.2.0",
70-
"typescript": "^5.4.5"
69+
"ts-patch": "^3.2.1",
70+
"typescript": "^5.5.2"
7171
},
7272
"config": {},
7373
"publishConfig": {

src/shared/populateFilePaths.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const populateFilePaths = ({
5757
// Throw if anything was actually missing
5858
if (missingComponents.length > 0) {
5959
throw new Error(
60-
`unable to generate complete component set for ${elements
60+
`unable to generate complete component set for ${missingComponents
6161
.map((element) => `${element.name} (${element.type})`)
6262
.join(EOL)}`
6363
);
@@ -84,7 +84,7 @@ export const populateFilePaths = ({
8484
.map((matchingComponent) => {
8585
logger.debug(
8686
`${matchingComponent.fullName}|${matchingComponent.type.name} matches ${
87-
matchingComponent.xml
87+
matchingComponent.xml ?? '<no xml>'
8888
} and maybe ${matchingComponent.walkContent().toString()}`
8989
);
9090
// Decode the key since local components can have encoded fullNames, but results from querying

src/shared/remoteSourceTrackingService.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ export class RemoteSourceTrackingService {
160160
this.logger.warn(`found no matching revision for ${metadataKey}`);
161161
} else if (doesNotMatchServer(revision)) {
162162
quietLogger(
163-
`Syncing ${metadataKey} revision from ${revision.lastRetrievedFromServer} to ${revision.serverRevisionCounter}`
163+
`Syncing ${metadataKey} revision from ${revision.lastRetrievedFromServer ?? 'null'} to ${
164+
revision.serverRevisionCounter
165+
}`
164166
);
165167
this.setMemberRevision(metadataKey, { ...revision, lastRetrievedFromServer: revision.serverRevisionCounter });
166168
}

yarn.lock

+20-89
Original file line numberDiff line numberDiff line change
@@ -502,26 +502,6 @@
502502
"@jridgewell/resolve-uri" "3.1.0"
503503
"@jridgewell/sourcemap-codec" "1.4.14"
504504

505-
"@jsforce/jsforce-node@^3.2.0":
506-
version "3.2.0"
507-
resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.2.0.tgz#4b104613fc9bb74e0e38d2c00936ea2b228ba73a"
508-
integrity sha512-3GjWNgWs0HFajVhIhwvBPb0B45o500wTBNEBYxy8XjeeRra+qw8A9xUrfVU7TAGev8kXuKhjJwaTiSzThpEnew==
509-
dependencies:
510-
"@sindresorhus/is" "^4"
511-
"@types/node" "^18.15.3"
512-
abort-controller "^3.0.0"
513-
base64url "^3.0.1"
514-
csv-parse "^5.5.2"
515-
csv-stringify "^6.4.4"
516-
faye "^1.4.0"
517-
form-data "^4.0.0"
518-
fs-extra "^8.1.0"
519-
https-proxy-agent "^5.0.0"
520-
multistream "^3.1.0"
521-
node-fetch "^2.6.1"
522-
strip-ansi "^6.0.0"
523-
xml2js "^0.6.2"
524-
525505
"@jsforce/jsforce-node@^3.2.1":
526506
version "3.2.1"
527507
resolved "https://registry.yarnpkg.com/@jsforce/jsforce-node/-/jsforce-node-3.2.1.tgz#00fab05919e0cbe91ae4d873377e56cfbc087b98"
@@ -607,34 +587,10 @@
607587
strip-ansi "6.0.1"
608588
ts-retry-promise "^0.8.1"
609589

610-
"@salesforce/core@^8.0.1", "@salesforce/core@^8.0.3":
611-
version "8.0.3"
612-
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.0.3.tgz#8b25ce46100baef0a8e731b42d373edf508ab144"
613-
integrity sha512-HirswUFGQIF5Ipaa+5l3kulBOf3L25Z3fzf5QqEI4vOxgBKN2bEdKHCA/PROufi3/ejFstiXcn9/jfgyjDdBqA==
614-
dependencies:
615-
"@jsforce/jsforce-node" "^3.2.0"
616-
"@salesforce/kit" "^3.1.6"
617-
"@salesforce/schemas" "^1.9.0"
618-
"@salesforce/ts-types" "^2.0.10"
619-
ajv "^8.16.0"
620-
change-case "^4.1.2"
621-
fast-levenshtein "^3.0.0"
622-
faye "^1.4.0"
623-
form-data "^4.0.0"
624-
js2xmlparser "^4.0.1"
625-
jsonwebtoken "9.0.2"
626-
jszip "3.10.1"
627-
pino "^9.2.0"
628-
pino-abstract-transport "^1.2.0"
629-
pino-pretty "^11.2.1"
630-
proper-lockfile "^4.1.2"
631-
semver "^7.6.2"
632-
ts-retry-promise "^0.8.1"
633-
634-
"@salesforce/core@^8.0.5":
635-
version "8.0.5"
636-
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.0.5.tgz#f3d4af7052ff39bf06ec89af3734339b3fabe879"
637-
integrity sha512-+p1TYvKhXWlzah7qp+vnv5W63EZm6nn7zLRvivFsL6pza0B4siHWfx11ceJ4p7W8+kh/xeuygtkddwYoLS3KkA==
590+
"@salesforce/core@^8.0.1", "@salesforce/core@^8.0.3", "@salesforce/core@^8.1.0":
591+
version "8.1.0"
592+
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.1.0.tgz#8ee25acdacf9d70a6249907a2fe3503461f18766"
593+
integrity sha512-oItr8cdeMe67glJN3dP1Gh/kasD0DUT6S6RfcLTH32wwuZNQAwMXNgBOCvlskr8nxPZ+YSSw7CVuqYMUmCtUXA==
638594
dependencies:
639595
"@jsforce/jsforce-node" "^3.2.1"
640596
"@salesforce/kit" "^3.1.6"
@@ -709,12 +665,12 @@
709665
resolved "https://registry.yarnpkg.com/@salesforce/schemas/-/schemas-1.9.0.tgz#ba477a112653a20b4edcf989c61c57bdff9aa3ca"
710666
integrity sha512-LiN37zG5ODT6z70sL1fxF7BQwtCX9JOWofSU8iliSNIM+WDEeinnoFtVqPInRSNt8I0RiJxIKCrqstsmQRBNvA==
711667

712-
"@salesforce/source-deploy-retrieve@^12.0.2":
713-
version "12.0.2"
714-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.0.2.tgz#f2eaf487834499be72391d38a2e6168f8bbc27cf"
715-
integrity sha512-3Zq2BdLOBcsAuGHykZBDQbLKvjDfwGr5I9KnQW1EaGhxnwo7uK/RhhaFCpskjvbL0+D3PU7+wOlPLdB16FeIbg==
668+
"@salesforce/source-deploy-retrieve@^12.1.0":
669+
version "12.1.0"
670+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-12.1.0.tgz#4f82d809c40fb6477f86f5d6c545c38f3f34f13f"
671+
integrity sha512-LI6hVzYTC6tl/sFnz1/sJGy1LuH+PfZHqZ7Sl9+kj4M5plgrx5R4urY1k2iuF/n/m1zYmagLmfnzE+DqQ/hbAA==
716672
dependencies:
717-
"@salesforce/core" "^8.0.3"
673+
"@salesforce/core" "^8.1.0"
718674
"@salesforce/kit" "^3.1.6"
719675
"@salesforce/ts-types" "^2.0.10"
720676
fast-levenshtein "^3.0.0"
@@ -5132,16 +5088,7 @@ srcset@^5.0.0:
51325088
resolved "https://registry.yarnpkg.com/srcset/-/srcset-5.0.0.tgz#9df6c3961b5b44a02532ce6ae4544832609e2e3f"
51335089
integrity sha512-SqEZaAEhe0A6ETEa9O1IhSPC7MdvehZtCnTR0AftXk3QhY2UNgb+NApFOUPZILXk/YTDfFxMTNJOBpzrJsEdIA==
51345090

5135-
"string-width-cjs@npm:string-width@^4.2.0":
5136-
version "4.2.3"
5137-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
5138-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
5139-
dependencies:
5140-
emoji-regex "^8.0.0"
5141-
is-fullwidth-code-point "^3.0.0"
5142-
strip-ansi "^6.0.1"
5143-
5144-
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
5091+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
51455092
version "4.2.3"
51465093
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
51475094
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -5200,14 +5147,7 @@ string_decoder@~1.1.1:
52005147
dependencies:
52015148
safe-buffer "~5.1.0"
52025149

5203-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
5204-
version "6.0.1"
5205-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
5206-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
5207-
dependencies:
5208-
ansi-regex "^5.0.1"
5209-
5210-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
5150+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
52115151
version "6.0.1"
52125152
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
52135153
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -5373,10 +5313,10 @@ ts-node@^10.8.1, ts-node@^10.9.2:
53735313
v8-compile-cache-lib "^3.0.1"
53745314
yn "3.1.1"
53755315

5376-
ts-patch@^3.2.0:
5377-
version "3.2.0"
5378-
resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-3.2.0.tgz#537b0e19aa273da4a34e42be68240ef062646dd3"
5379-
integrity sha512-fUGMkjGIlD4BFibDM+6pLYLXRguzCUY6fhP1KQzSnFJfAtTDT7DKyX0yHn3CJqfBv4mia/o3ZRte31UVf9Dl1A==
5316+
ts-patch@^3.2.1:
5317+
version "3.2.1"
5318+
resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-3.2.1.tgz#0c1ecfcb6b6633bf23e533016ffda4d566518628"
5319+
integrity sha512-hlR43v+GUIUy8/ZGFP1DquEqPh7PFKQdDMTAmYt671kCCA6AkDQMoeFaFmZ7ObPLYOmpMgyKUqL1C+coFMf30w==
53805320
dependencies:
53815321
chalk "^4.1.2"
53825322
global-prefix "^3.0.0"
@@ -5510,10 +5450,10 @@ typedoc@^0.25.13:
55105450
minimatch "^9.0.3"
55115451
shiki "^0.14.7"
55125452

5513-
"typescript@^4.6.4 || ^5.0.0", typescript@^5.4.3, typescript@^5.4.5:
5514-
version "5.4.5"
5515-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
5516-
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
5453+
"typescript@^4.6.4 || ^5.0.0", typescript@^5.4.3, typescript@^5.5.2:
5454+
version "5.5.2"
5455+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
5456+
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==
55175457

55185458
unbox-primitive@^1.0.2:
55195459
version "1.0.2"
@@ -5711,7 +5651,7 @@ workerpool@6.2.1:
57115651
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"
57125652
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
57135653

5714-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
5654+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
57155655
version "7.0.0"
57165656
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
57175657
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -5729,15 +5669,6 @@ wrap-ansi@^6.2.0:
57295669
string-width "^4.1.0"
57305670
strip-ansi "^6.0.0"
57315671

5732-
wrap-ansi@^7.0.0:
5733-
version "7.0.0"
5734-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
5735-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
5736-
dependencies:
5737-
ansi-styles "^4.0.0"
5738-
string-width "^4.1.0"
5739-
strip-ansi "^6.0.0"
5740-
57415672
wrap-ansi@^8.1.0:
57425673
version "8.1.0"
57435674
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)