Build Information
Failed to build DiscordKit, reference main (2da56f
), with Swift 6.2 (beta) for Linux on 20 Jun 2025 04:43:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
[64/667] Compiling OpenCombine _Introspection.swift
[65/667] Compiling OpenCombine AnyCancellable.swift
[66/667] Compiling OpenCombine AnyPublisher.swift
[67/667] Compiling OpenCombine AnySubscriber.swift
[68/667] Compiling OpenCombine Cancellable.swift
[69/667] Compiling OpenCombine Codable.swift
[70/667] Compiling OpenCombine CombineIdentifier.swift
[71/667] Compiling OpenCombine ConcurrencyHelpers.swift
[72/667] Compiling OpenCombine Future+Concurrency.swift
[73/667] Compiling OpenCombine GENERATED-Publisher+Concurrency.swift
[74/667] Compiling OpenCombine CurrentValueSubject.swift
[75/667] Compiling OpenCombine CustomCombineIdentifierConvertible.swift
[76/667] Compiling OpenCombine Future.swift
[77/667] Compiling OpenCombine GENERATED-RootProtocols.swift
[77/667] Compiling ssl_file.cc
[78/667] Compiling ssl_lib.cc
[80/667] Compiling OpenCombine ConduitBase.swift
[81/667] Compiling OpenCombine ConduitList.swift
[82/667] Compiling OpenCombine DebugHook.swift
[83/667] Compiling OpenCombine FilterProducer.swift
[84/667] Compiling OpenCombine Locking.swift
[85/667] Compiling OpenCombine PartialCompletion.swift
[86/667] Compiling OpenCombine PublishedSubject.swift
[87/667] Compiling OpenCombine PublishedSubscriber.swift
[88/667] Compiling OpenCombine ReduceProducer.swift
[89/667] Compiling OpenCombine SubjectSubscriber.swift
[90/667] Compiling OpenCombine SubscriberTap.swift
[91/667] Compiling OpenCombine SubscriptionStatus.swift
[92/667] Compiling OpenCombine SubscriptionTap.swift
[93/667] Compiling OpenCombine Utils.swift
[94/667] Compiling OpenCombine Violations.swift
[95/667] Compiling OpenCombine ImmediateScheduler.swift
[96/667] Compiling OpenCombine ObservableObject.swift
[97/667] Compiling OpenCombine PassthroughSubject.swift
[98/667] Compiling OpenCombine Published.swift
[99/667] Compiling OpenCombine Publisher+Subscribe.swift
[100/667] Compiling OpenCombine Deferred.swift
[101/667] Compiling OpenCombine Empty.swift
[102/667] Compiling OpenCombine Fail.swift
[103/667] Compiling OpenCombine GENERATED-Publishers.Catch.swift
[104/667] Compiling OpenCombine GENERATED-Publishers.Encode.swift
[105/667] Compiling OpenCombine GENERATED-Publishers.MapKeyPath.swift
[106/667] Compiling OpenCombine Publishers.Count.swift
[107/667] Compiling OpenCombine Publishers.Debounce.swift
[108/667] Compiling OpenCombine Publishers.Delay.swift
[109/667] Compiling OpenCombine Publishers.Drop.swift
[110/667] Compiling OpenCombine Publishers.DropUntilOutput.swift
[111/667] Compiling OpenCombine Publishers.DropWhile.swift
[112/667] Compiling OpenCombine Publishers.Filter.swift
[113/667] Compiling OpenCombine Publishers.First.swift
[114/667] Compiling OpenCombine Publishers.FlatMap.swift
[115/667] Compiling OpenCombine Publishers.HandleEvents.swift
[116/667] Compiling OpenCombine Publishers.IgnoreOutput.swift
[117/667] Compiling OpenCombine Publishers.Last.swift
[118/667] Compiling OpenCombine Publishers.MakeConnectable.swift
[118/667] Compiling ssl_cipher.cc
[119/667] Compiling ssl_key_share.cc
[121/667] Emitting module Logging
[122/667] Compiling Logging Locks.swift
[123/667] Compiling Logging MetadataProvider.swift
[124/667] Compiling OpenCombine Publishers.Map.swift
[125/667] Compiling OpenCombine Publishers.MapError.swift
[126/667] Compiling OpenCombine Publishers.MeasureInterval.swift
[127/667] Compiling OpenCombine Publishers.Multicast.swift
[128/667] Compiling OpenCombine Publishers.Output.swift
[129/667] Compiling OpenCombine Publishers.PrefixUntilOutput.swift
[130/667] Compiling OpenCombine Publishers.PrefixWhile.swift
[131/667] Compiling OpenCombine Publishers.Print.swift
[132/667] Compiling OpenCombine Publishers.ReceiveOn.swift
[133/667] Compiling OpenCombine Publishers.Reduce.swift
[134/667] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[135/667] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[136/667] Compiling OpenCombine Publishers.ReplaceError.swift
[137/667] Compiling OpenCombine Just.swift
[138/667] Compiling OpenCombine Optional.Publisher.swift
[139/667] Compiling OpenCombine Publishers.AllSatisfy.swift
[140/667] Compiling OpenCombine Publishers.AssertNoFailure.swift
[141/667] Compiling OpenCombine Publishers.Autoconnect.swift
[142/667] Compiling OpenCombine Publishers.Breakpoint.swift
[143/667] Compiling OpenCombine Publishers.Buffer.swift
[144/667] Compiling OpenCombine Publishers.Collect.swift
[145/667] Compiling OpenCombine Publishers.CollectByCount.swift
[146/667] Compiling OpenCombine Publishers.CompactMap.swift
[147/667] Compiling OpenCombine Publishers.Comparison.swift
[148/667] Compiling OpenCombine Publishers.Concatenate.swift
[149/667] Compiling OpenCombine Publishers.Contains.swift
[150/667] Compiling OpenCombine Publishers.Retry.swift
[151/667] Compiling OpenCombine Publishers.Scan.swift
[152/667] Compiling OpenCombine Publishers.Sequence.swift
[153/667] Compiling OpenCombine Publishers.SetFailureType.swift
[154/667] Compiling OpenCombine Publishers.Share.swift
[155/667] Compiling OpenCombine Publishers.SubscribeOn.swift
[156/667] Compiling OpenCombine Publishers.SwitchToLatest.swift
[157/667] Compiling OpenCombine Publishers.Throttle.swift
[158/667] Compiling OpenCombine Publishers.Timeout.swift
[159/667] Compiling OpenCombine Publishers.Zip.swift
[160/667] Compiling OpenCombine Publishers.swift
[161/667] Compiling OpenCombine Record.swift
[162/667] Compiling OpenCombine Result.Publisher.swift
[163/668] Compiling _NIODataStructures Heap.swift
[166/669] Compiling Logging Logging.swift
[167/681] Compiling ssl_cert.cc
[191/681] Compiling ssl_buffer.cc
[205/692] Compiling OpenCombineFoundation Locking.swift
[206/692] Compiling OpenCombineFoundation Portability.swift
[207/692] Compiling OpenCombineFoundation Utils.swift
[208/692] Compiling OpenCombineFoundation Violations.swift
[209/692] Compiling OpenCombineFoundation JSONEncoder.swift
[210/692] Compiling OpenCombineFoundation NotificationCenter.swift
[230/693] Compiling ssl_aead_ctx.cc
[231/693] Compiling ssl_asn1.cc
[232/693] Compiling s3_pkt.cc
[234/693] Compiling OpenCombineFoundation Timer+Publisher.swift
[235/693] Emitting module OpenCombineFoundation
[237/693] Compiling s3_lib.cc
[239/693] Compiling OpenCombineFoundation PropertyListEncoder.swift
[240/693] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[243/693] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[244/693] Compiling OpenCombineFoundation URLSession.swift
[245/694] Compiling handoff.cc
[246/694] Compiling s3_both.cc
[247/694] Compiling handshake_server.cc
[248/694] Compiling handshake_client.cc
[249/694] Compiling handshake.cc
[274/694] Emitting module SwiftProtobuf
[274/694] Compiling dtls_record.cc
[275/694] Compiling extensions.cc
[276/694] Compiling dtls_method.cc
[277/694] Compiling encrypted_client_hello.cc
[278/694] Compiling v3_utl.c
[279/694] Compiling v3_skey.c
[280/694] Compiling v3_purp.c
[281/694] Compiling d1_lib.cc
[282/694] Compiling d1_srtp.cc
[283/694] Compiling d1_pkt.cc
[284/694] Compiling v3_pmaps.c
[285/694] Compiling v3_pcons.c
[286/694] Compiling v3_prn.c
[287/694] Compiling v3_pci.c
[288/694] Compiling v3_ncons.c
[289/694] Compiling v3_pcia.c
[290/694] Compiling v3_ocsp.c
[291/694] Compiling bio_ssl.cc
[292/694] Compiling v3_lib.c
[293/694] Compiling v3_genn.c
[294/694] Compiling v3_enum.c
[295/694] Compiling v3_ia5.c
[296/694] Compiling v3_int.c
[297/694] Compiling v3_info.c
[298/694] Compiling v3_extku.c
[299/694] Compiling v3_crld.c
[300/694] Compiling v3_cpols.c
[301/694] Compiling v3_conf.c
[302/694] Compiling v3_akeya.c
[303/694] Compiling v3_akey.c
[304/694] Compiling v3_bitst.c
[305/694] Compiling v3_bcons.c
[306/694] Compiling d1_both.cc
[307/694] Compiling pcy_tree.c
[308/694] Compiling v3_alt.c
[309/694] Compiling pcy_node.c
[310/694] Compiling pcy_map.c
[311/694] Compiling pcy_data.c
[312/694] Compiling x_x509a.c
[313/694] Compiling pcy_cache.c
[314/694] Compiling pcy_lib.c
[315/694] Compiling x_spki.c
[316/694] Compiling x_x509.c
[317/694] Compiling x_val.c
[318/694] Compiling x_sig.c
[319/694] Compiling x_pkey.c
[320/694] Compiling x_req.c
[321/694] Compiling x_attrib.c
[322/694] Compiling x_info.c
[323/694] Compiling x_pubkey.c
[324/694] Compiling x_crl.c
[325/694] Compiling x_exten.c
[326/694] Compiling x_name.c
[327/694] Compiling x_algor.c
[328/694] Compiling x509spki.c
[329/694] Compiling x_all.c
[330/694] Compiling x509rset.c
[331/694] Compiling x509name.c
[332/694] Compiling x509_txt.c
[333/694] Compiling x509cset.c
[334/694] Compiling x509_v3.c
[335/694] Compiling x509_vfy.c
[336/694] Compiling x509_trs.c
[337/694] Compiling x509_set.c
[338/694] Compiling x509_req.c
[339/694] Compiling x509_vpm.c
[340/694] Compiling x509_def.c
[341/694] Compiling x509_obj.c
[342/694] Compiling x509_d2.c
[343/694] Compiling x509_ext.c
[344/694] Compiling x509_att.c
[345/694] Compiling x509_lu.c
[346/694] Compiling x509_cmp.c
[347/694] Compiling t_x509a.c
[348/694] Compiling x509.c
[349/694] Compiling name_print.c
[349/694] Compiling t_crl.c
[351/694] Compiling t_x509.c
[352/694] Compiling i2d_pr.c
[353/694] Compiling t_req.c
[354/694] Compiling rsa_pss.c
[355/694] Compiling by_file.c
[356/694] Compiling by_dir.c
[357/694] Compiling a_verify.c
[358/694] Compiling asn1_gen.c
[359/694] Compiling algorithm.c
[360/694] Compiling a_digest.c
[361/694] Compiling a_sign.c
[362/694] Compiling trust_token.c
[363/694] Compiling thread_pthread.c
[364/694] Compiling thread_win.c
[365/694] Compiling voprf.c
[366/694] Compiling thread.c
[367/694] Compiling thread_none.c
[368/694] Compiling siphash.c
[369/694] Compiling pmbtoken.c
[370/694] Compiling stack.c
[371/694] Compiling refcount_c11.c
[372/694] Compiling rsa_asn1.c
[373/694] Compiling rsa_print.c
[374/694] Compiling refcount_lock.c
[375/694] Compiling rc4.c
[376/694] Compiling windows.c
[377/694] Compiling fuchsia.c
[378/694] Compiling rand_extra.c
[379/694] Compiling passive.c
[380/694] Compiling deterministic.c
[381/694] Compiling forkunsafe.c
[382/694] Compiling poly1305_arm_asm.S
[383/694] Compiling pool.c
[384/694] Compiling poly1305.c
[385/694] Compiling poly1305_arm.c
[386/694] Compiling pkcs7.c
[387/694] Compiling poly1305_vec.c
[388/694] Compiling pem_xaux.c
[389/694] Compiling pkcs8_x509.c
[390/694] Compiling p5_pbev2.c
[391/694] Compiling pkcs8.c
[392/694] Compiling pem_x509.c
[393/694] Compiling pem_pkey.c
[394/694] Compiling pkcs7_x509.c
[395/694] Compiling pem_pk8.c
[396/694] Compiling pem_oth.c
[397/694] Compiling obj_xref.c
[398/694] Compiling lhash.c
[399/694] Compiling mem.c
[400/694] Compiling pem_info.c
[401/694] Compiling pem_all.c
[402/694] Compiling pem_lib.c
[403/694] Compiling obj.c
[404/694] Compiling hkdf.c
[405/694] Compiling hpke.c
[406/694] Compiling poly_rq_mul.S
[406/694] Compiling hrss.c
[408/694] Compiling x86_64-mont5.mac.x86_64.S
[409/694] Compiling x86_64-mont.mac.x86_64.S
[410/694] Compiling x86_64-mont5.linux.x86_64.S
[411/694] Compiling x86_64-mont.linux.x86_64.S
[412/694] Compiling x86-mont.linux.x86.S
[413/694] Compiling vpaes-x86_64.mac.x86_64.S
[414/694] Compiling vpaes-x86_64.linux.x86_64.S
[415/694] Compiling vpaes-armv8.linux.aarch64.S
[416/694] Compiling vpaes-x86.linux.x86.S
[417/694] Compiling vpaes-armv8.ios.aarch64.S
[418/694] Compiling vpaes-armv7.linux.arm.S
[419/694] Compiling vpaes-armv7.ios.arm.S
[420/694] Compiling sha512-armv8.linux.aarch64.S
[421/694] Compiling kdf.c
[422/694] Compiling sha512-x86_64.linux.x86_64.S
[423/694] Compiling sha512-x86_64.mac.x86_64.S
[424/694] Compiling sha512-armv4.ios.arm.S
[425/694] Compiling sha512-armv4.linux.arm.S
[426/694] Compiling sha512-armv8.ios.aarch64.S
[427/694] Compiling sha256-x86_64.mac.x86_64.S
[428/694] Compiling sha512-586.linux.x86.S
[429/694] Compiling sha256-x86_64.linux.x86_64.S
[430/694] Compiling sha256-armv8.linux.aarch64.S
[431/694] Compiling sha256-armv8.ios.aarch64.S
[431/694] Compiling sha256-armv4.ios.arm.S
[433/694] Compiling sha256-armv4.linux.arm.S
[434/694] Compiling sha256-586.linux.x86.S
[435/694] Compiling sha1-x86_64.mac.x86_64.S
[436/694] Compiling sha1-armv8.ios.aarch64.S
[437/694] Compiling sha1-armv4-large.ios.arm.S
[438/694] Compiling sha1-armv4-large.linux.arm.S
[438/694] Compiling sha1-586.linux.x86.S
[440/694] Compiling sha1-armv8.linux.aarch64.S
[441/694] Compiling sha1-x86_64.linux.x86_64.S
[442/694] Compiling sha512.c
[443/694] Compiling sha1-altivec.c
[444/694] Compiling rsaz-avx2.mac.x86_64.S
[445/694] Compiling fips.c
[446/694] Compiling rsaz-avx2.linux.x86_64.S
[447/694] Compiling sha1.c
[448/694] Compiling sha256.c
[449/694] Compiling rdrand-x86_64.mac.x86_64.S
[450/694] Compiling rsa.c
[451/694] Compiling self_check.c
[452/694] Compiling blinding.c
[453/694] Compiling rsa_impl.c
[454/694] Compiling rdrand-x86_64.linux.x86_64.S
[455/694] Compiling padding.c
[456/694] Compiling ctrdrbg.c
[457/694] Compiling p256_beeu-x86_64-asm.linux.x86_64.S
[458/694] Compiling p256_beeu-x86_64-asm.mac.x86_64.S
[459/694] Compiling rand.c
[460/694] Compiling p256_beeu-armv8-asm.linux.aarch64.S
[461/694] Compiling fork_detect.c
[462/694] Compiling p256-x86_64-asm.mac.x86_64.S
[463/694] Compiling p256_beeu-armv8-asm.ios.aarch64.S
[464/694] Compiling p256-armv8-asm.linux.aarch64.S
[465/694] Compiling p256-armv8-asm.ios.aarch64.S
[466/694] Compiling urandom.c
[467/694] Compiling ofb.c
[468/694] Compiling p256-x86_64-asm.linux.x86_64.S
[469/694] Compiling polyval.c
[470/694] Compiling ctr.c
[471/694] Compiling gcm_nohw.c
[472/694] Compiling md5-x86_64.mac.x86_64.S
[473/694] Compiling gcm.c
[474/694] Compiling cbc.c
[475/694] Compiling cfb.c
[476/694] Compiling hmac.c
[477/694] Compiling md5-x86_64.linux.x86_64.S
[478/694] Compiling md5-586.linux.x86.S
[479/694] Compiling ghashv8-armx64.ios.aarch64.S
[480/694] Compiling md4.c
[481/694] Compiling ghashv8-armx64.linux.aarch64.S
[482/694] Compiling md5.c
[483/694] Compiling ghashv8-armx32.ios.arm.S
[484/694] Compiling ghash-x86_64.mac.x86_64.S
[485/694] Compiling ghashv8-armx32.linux.arm.S
[486/694] Compiling ghash-ssse3-x86.linux.x86.S
[487/694] Compiling ghash-ssse3-x86_64.mac.x86_64.S
[487/694] Compiling ghash-x86_64.linux.x86_64.S
[489/694] Compiling ghash-x86.linux.x86.S
[490/694] Compiling ghash-neon-armv8.ios.aarch64.S
[491/694] Compiling ghash-neon-armv8.linux.aarch64.S
[492/694] Compiling ghash-ssse3-x86_64.linux.x86_64.S
[493/694] Compiling fips_shared_support.c
[494/694] Compiling ghash-armv4.linux.arm.S
[495/694] Compiling ghash-armv4.ios.arm.S
[496/694] Compiling ecdh.c
[497/694] Compiling scalar.c
[498/694] Compiling wnaf.c
[499/694] Compiling ecdsa.c
[500/694] Compiling util.c
[501/694] Compiling simple.c
[502/694] Compiling simple_mul.c
[503/694] Compiling p256.c
[504/694] Compiling ec_key.c
[505/694] Compiling oct.c
[506/694] Compiling felem.c
[507/694] Compiling p224-64.c
[508/694] Compiling digests.c
[509/694] Compiling ec.c
[510/694] Compiling ec_montgomery.c
[511/694] Compiling check.c
[512/694] Compiling co-586.linux.x86.S
[513/694] Compiling digest.c
[514/694] Compiling bsaes-armv7.linux.arm.S
[515/694] Compiling dh.c
[516/694] Compiling bsaes-armv7.ios.arm.S
[517/694] Compiling aead.c
[518/694] Compiling cipher.c
[519/694] Compiling rsaz_exp.c
[520/694] Compiling e_aes.c
[521/694] Compiling sqrt.c
[522/694] Compiling shift.c
[523/694] Compiling p256-nistz.c
[524/694] Compiling random.c
[525/694] Compiling jacobi.c
[526/694] Compiling prime.c
[527/694] Compiling montgomery_inv.c
[528/694] Compiling generic.c
[529/694] Compiling montgomery.c
[530/694] Compiling mul.c
[531/694] Compiling gcd_extra.c
[532/694] Compiling gcd.c
[533/694] Compiling div_extra.c
[534/694] Compiling ctx.c
[535/694] Compiling exponentiation.c
[536/694] Compiling cmp.c
[537/694] Compiling div.c
[538/694] Compiling bn-586.linux.x86.S
[539/694] Compiling bytes.c
[540/694] Compiling armv8-mont.ios.aarch64.S
[541/694] Compiling bn.c
[542/694] Compiling armv8-mont.linux.aarch64.S
[543/694] Compiling add.c
[544/694] Compiling armv4-mont.linux.arm.S
[545/694] Compiling armv4-mont.ios.arm.S
[545/694] Compiling aesv8-armx64.ios.aarch64.S
[547/694] Compiling aesv8-armx32.linux.arm.S
[548/694] Compiling aesv8-armx64.linux.aarch64.S
[549/694] Compiling x86_64-gcc.c
[550/694] Compiling aesv8-armx32.ios.arm.S
[551/694] Compiling mode_wrappers.c
[552/694] Compiling key_wrap.c
[553/694] Compiling aes_nohw.c
[554/694] Compiling aes.c
[555/694] Compiling aesni-x86_64.mac.x86_64.S
[556/694] Compiling ex_data.c
[557/694] Compiling sign.c
[558/694] Compiling aesni-x86.linux.x86.S
[559/694] Compiling aesni-gcm-x86_64.mac.x86_64.S
[560/694] Compiling aesni-gcm-x86_64.linux.x86_64.S
[561/694] Compiling aesni-x86_64.linux.x86_64.S
[562/694] Compiling pbkdf.c
[563/694] Compiling scrypt.c
[564/694] Compiling p_x25519.c
[565/694] Compiling print.c
[566/694] Compiling p_rsa_asn1.c
[567/694] Compiling p_ed25519.c
[568/694] Compiling p_x25519_asn1.c
[569/694] Compiling p_ed25519_asn1.c
[570/694] Compiling p_rsa.c
[571/694] Compiling p_ec_asn1.c
[572/694] Compiling p_dsa_asn1.c
[573/694] Compiling digestsign.c
[574/694] Compiling p_ec.c
[575/694] Compiling evp.c
[576/694] Compiling err_data.c
[577/694] Compiling evp_ctx.c
[578/694] Compiling evp_asn1.c
[579/694] Compiling err.c
[580/694] Compiling engine.c
[581/694] Compiling ecdsa_asn1.c
[582/694] Compiling ecdh_extra.c
[583/694] Compiling ec_derive.c
[584/694] Compiling hash_to_curve.c
[585/694] Compiling dsa_asn1.c
[586/694] Compiling ec_asn1.c
[587/694] Compiling dh_asn1.c
[588/694] Compiling params.c
[589/694] Compiling digest_extra.c
[590/694] Compiling dsa.c
[591/694] Compiling cpu_ppc64le.c
[592/694] Compiling x25519-asm-arm.S
[593/694] Compiling spake25519.c
[594/694] Compiling crypto.c
[595/694] Compiling cpu_intel.c
[596/694] Compiling cpu_arm.c
[597/694] Compiling cpu_arm_linux.c
[598/694] Compiling cpu_aarch64_linux.c
[598/694] Compiling cpu_aarch64_win.c
[599/694] Compiling des.c
[601/694] Compiling cpu_aarch64_fuchsia.c
[602/694] Compiling e_rc4.c
[603/694] Compiling cpu_aarch64_apple.c
[604/694] Compiling curve25519.c
[605/694] Compiling cmac.c
[606/694] Compiling tls_cbc.c
[607/694] Compiling conf.c
[608/694] Compiling e_tls.c
[609/694] Compiling e_null.c
[610/694] Compiling e_rc2.c
[611/694] Compiling e_chacha20poly1305.c
[612/694] Compiling e_des.c
[613/694] Compiling derive_key.c
[614/694] Compiling e_aesccm.c
[615/694] Compiling e_aesctrhmac.c
[616/694] Compiling e_aesgcmsiv.c
[617/694] Compiling chacha20_poly1305_x86_64.mac.x86_64.S
[618/694] Compiling aes128gcmsiv-x86_64.mac.x86_64.S
[619/694] Compiling cipher_extra.c
[620/694] Compiling aes128gcmsiv-x86_64.linux.x86_64.S
[621/694] Compiling chacha20_poly1305_x86_64.linux.x86_64.S
[622/694] Compiling chacha-x86_64.mac.x86_64.S
[623/694] Compiling chacha.c
[624/694] Compiling chacha-x86.linux.x86.S
[625/694] Compiling chacha-x86_64.linux.x86_64.S
[626/694] Compiling chacha-armv8.linux.aarch64.S
[627/694] Compiling chacha-armv8.ios.aarch64.S
[628/694] Compiling chacha-armv4.linux.arm.S
[629/694] Compiling unicode.c
[630/694] Compiling chacha-armv4.ios.arm.S
[631/694] Compiling ber.c
[632/694] Compiling asn1_compat.c
[633/694] Compiling cbs.c
[634/694] Compiling bn_asn1.c
[635/694] Compiling cbb.c
[636/694] Compiling buf.c
[637/694] Compiling convert.c
[638/694] Compiling blake2.c
[639/694] Compiling printf.c
[640/694] Compiling socket.c
[641/694] Compiling hexdump.c
[642/694] Compiling pair.c
[643/694] Compiling fd.c
[644/694] Compiling socket_helper.c
[645/694] Compiling connect.c
[645/694] Compiling file.c
[647/694] Compiling bio_mem.c
[648/694] Compiling time_support.c
[648/694] Compiling base64.c
[650/694] Compiling tasn_fre.c
[651/694] Compiling tasn_typ.c
[652/694] Compiling tasn_new.c
[653/694] Compiling bio.c
[653/694] Compiling tasn_utl.c
[654/694] Compiling tasn_enc.c
[656/694] Compiling tasn_dec.c
[657/694] Compiling f_string.c
[658/694] Compiling f_int.c
[659/694] Compiling asn_pack.c
[659/694] Compiling asn1_par.c
[661/694] Compiling a_utctm.c
[662/694] Compiling a_utf8.c
[663/694] Compiling asn1_lib.c
[664/694] Compiling a_type.c
[665/694] Compiling a_time.c
[666/694] Compiling a_print.c
[667/694] Compiling a_octet.c
[668/694] Compiling a_strnid.c
[669/694] Compiling a_strex.c
[670/694] Compiling a_object.c
[671/694] Compiling a_mbstr.c
[672/694] Compiling a_i2d_fp.c
[673/694] Compiling a_dup.c
[674/694] Compiling a_d2i_fp.c
[674/694] Copying PrivacyInfo.xcprivacy
[674/694] Write sources
[677/694] Compiling a_gentm.c
[678/694] Compiling a_bool.c
[678/694] Compiling a_int.c
[680/706] Compiling a_bitstr.c
[682/706] Compiling BitByteData SignedNumberRepresentation.swift
[683/707] Compiling BitByteData MsbBitWriter.swift
[684/707] Compiling BitByteData resource_bundle_accessor.swift
[685/707] Compiling BitByteData BigEndianByteReader.swift
[686/707] Compiling BitByteData BitReader.swift
[687/707] Compiling BitByteData BitWriter.swift
[688/707] Compiling BitByteData ByteReader.swift
[689/707] Compiling BitByteData Extensions.swift
[690/707] Compiling BitByteData LittleEndianByteReader.swift
[691/707] Emitting module BitByteData
[692/707] Compiling BitByteData MsbBitReader.swift
[693/707] Compiling SwiftProtobuf api.pb.swift
[694/707] Compiling SwiftProtobuf descriptor.pb.swift
[695/707] Compiling SwiftProtobuf duration.pb.swift
[696/707] Compiling SwiftProtobuf empty.pb.swift
[697/707] Compiling SwiftProtobuf field_mask.pb.swift
[698/707] Compiling SwiftProtobuf source_context.pb.swift
[699/707] Compiling SwiftProtobuf struct.pb.swift
[700/707] Compiling SwiftProtobuf timestamp.pb.swift
[701/707] Compiling SwiftProtobuf type.pb.swift
[702/707] Compiling SwiftProtobuf wrappers.pb.swift
[703/707] Compiling SwiftProtobuf resource_bundle_accessor.swift
[705/708] Compiling BitByteData LsbBitReader.swift
[706/708] Compiling BitByteData LsbBitWriter.swift
[708/800] Compiling SWCompression CodeLength.swift
[709/800] Compiling SWCompression DecodingTree.swift
[710/800] Compiling SWCompression EncodingTree.swift
[711/800] Compiling SWCompression CompressionAlgorithm.swift
[712/800] Compiling SWCompression CompressionMethod.swift
[713/800] Compiling SWCompression Container.swift
[714/800] Compiling SWCompression ContainerEntry.swift
[715/800] Compiling SWCompression ContainerEntryInfo.swift
[716/800] Compiling SWCompression ContainerEntryType.swift
[717/800] Compiling SWCompression DosAttributes.swift
[718/800] Compiling SWCompression Permissions.swift
[719/800] Compiling SWCompression DataError.swift
[720/800] Compiling SWCompression DecompressionAlgorithm.swift
[720/812] Compiling c-nioatomics.c
[721/812] Compiling c-atomics.c
[723/816] Compiling NIOConcurrencyHelpers lock.swift
[724/816] Compiling NIOConcurrencyHelpers atomics.swift
[725/816] Emitting module NIOConcurrencyHelpers
[726/816] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[728/861] Compiling SWCompression ZipContainer.swift
[729/861] Compiling SWCompression ZipEndOfCentralDirectory.swift
[730/861] Compiling SWCompression ZipEntry.swift
[731/861] Compiling SWCompression ZipEntryInfo.swift
[732/861] Compiling SWCompression ZipEntryInfoHelper.swift
[733/861] Compiling SWCompression ZipError.swift
[734/861] Compiling SWCompression ZipExtraField.swift
[735/861] Compiling SWCompression ZipLocalHeader.swift
[736/861] Compiling SWCompression ZlibArchive.swift
[737/861] Compiling SWCompression ZlibError.swift
[738/861] Compiling SWCompression ZlibHeader.swift
[739/861] Compiling SWCompression resource_bundle_accessor.swift
[740/861] Compiling SWCompression DeltaFilter.swift
[741/861] Compiling SWCompression Extensions.swift
[742/861] Compiling SWCompression FileSystemType.swift
[743/861] Compiling SWCompression Deflate+Compress.swift
[744/861] Compiling SWCompression Deflate+Constants.swift
[745/861] Compiling SWCompression Deflate+Lengths.swift
[746/861] Compiling SWCompression Deflate.swift
[747/861] Compiling SWCompression DeflateError.swift
[748/861] Compiling SWCompression FileSystemType+Gzip.swift
[749/861] Compiling SWCompression GzipArchive.swift
[750/861] Compiling SWCompression GzipError.swift
[751/861] Compiling SWCompression GzipHeader+ExtraField.swift
[752/861] Compiling SWCompression GzipHeader.swift
[753/861] Compiling SWCompression TarWriter.swift
[754/861] Compiling SWCompression ByteReader+XZ.swift
[755/861] Compiling SWCompression Sha256.swift
[756/861] Compiling SWCompression XZArchive.swift
[757/861] Compiling SWCompression XZBlock.swift
[758/861] Compiling SWCompression XZError.swift
[759/861] Compiling SWCompression XZStreamHeader.swift
[760/861] Compiling SWCompression BuiltinExtraFields.swift
[761/861] Compiling SWCompression CompressionMethod+Zip.swift
[762/861] Compiling SWCompression FileSystemType+Zip.swift
[763/861] Compiling SWCompression LittleEndianByteReader+Zip.swift
[764/861] Compiling SWCompression ZipCentralDirectoryEntry.swift
[765/861] Emitting module SWCompression
[766/861] Compiling SWCompression LZMA2Error.swift
[767/861] Compiling SWCompression ContainerEntryType+Tar.swift
[768/861] Compiling SWCompression Data+Tar.swift
[769/861] Compiling SWCompression LittleEndianByteReader+Tar.swift
[770/861] Compiling SWCompression TarContainer.swift
[771/861] Compiling SWCompression TarCreateError.swift
[772/861] Compiling SWCompression TarEntry.swift
[773/861] Compiling SWCompression TarEntryInfo.swift
[774/861] Compiling SWCompression TarError.swift
[775/861] Compiling SWCompression TarExtendedHeader.swift
[776/861] Compiling SWCompression TarHeader.swift
[777/861] Compiling SWCompression TarParser.swift
[778/861] Compiling SWCompression TarReader.swift
[779/861] Compiling NIOCore NIOCloseOnErrorHandler.swift
[780/861] Compiling NIOCore PointerHelpers.swift
[781/861] Compiling NIOCore RecvByteBufferAllocator.swift
[782/861] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[783/861] Compiling SWCompression BZip2+Compress.swift
[784/861] Compiling SWCompression BZip2+Lengths.swift
[785/861] Compiling SWCompression BZip2.swift
[786/861] Compiling SWCompression BZip2Error.swift
[787/861] Compiling SWCompression BurrowsWheeler.swift
[788/861] Compiling SWCompression SuffixArray.swift
[789/861] Compiling SWCompression Archive.swift
[790/861] Compiling SWCompression CheckSums.swift
[791/861] Compiling SWCompression Code.swift
[792/861] Compiling NIOCore MulticastChannel.swift
[793/861] Compiling NIOCore NIOAny.swift
[798/867] Compiling NIOCore IOData.swift
[799/867] Compiling NIOCore IntegerBitPacking.swift
[800/867] Compiling NIOCore IntegerTypes.swift
[801/867] Compiling NIOCore Interfaces.swift
[802/867] Compiling NIOCore Linux.swift
[803/867] Compiling NIOCore MarkedCircularBuffer.swift
[804/867] Compiling NIOCore ConvenienceOptionSupport.swift
[805/867] Compiling NIOCore DeadChannel.swift
[806/867] Compiling NIOCore DispatchQueue+WithFuture.swift
[807/867] Compiling NIOCore EventLoop+Deprecated.swift
[808/867] Compiling NIOCore EventLoop.swift
[809/867] Compiling NIOCore EventLoopFuture+Deprecated.swift
[810/867] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[811/867] Compiling NIOCore EventLoopFuture.swift
[812/867] Compiling NIOCore FileDescriptor.swift
[813/867] Compiling NIOCore FileHandle.swift
[814/867] Compiling NIOCore FileRegion.swift
[815/867] Compiling NIOCore IO.swift
[816/867] Compiling NIOCore SocketAddresses.swift
[817/867] Compiling NIOCore SocketOptionProvider.swift
[818/867] Compiling NIOCore SystemCallHelpers.swift
[819/867] Compiling NIOCore TypeAssistedChannelHandler.swift
[820/867] Compiling NIOCore UniversalBootstrapSupport.swift
[821/867] Compiling NIOCore Utilities.swift
[835/867] Compiling NIOCore ChannelHandlers.swift
[836/867] Compiling NIOCore ChannelInvoker.swift
[837/867] Compiling NIOCore ChannelOption.swift
[838/867] Compiling NIOCore ChannelPipeline.swift
[839/867] Compiling NIOCore CircularBuffer.swift
[840/867] Compiling NIOCore Codec.swift
[855/868] Compiling NIOCore AddressedEnvelope.swift
[856/868] Compiling NIOCore AsyncAwaitSupport+OldXcodes.swift
[857/868] Compiling NIOCore AsyncAwaitSupport.swift
[858/868] Compiling NIOCore BSDSocketAPI.swift
[859/868] Compiling NIOCore ByteBuffer-aux.swift
[860/868] Compiling NIOCore ByteBuffer-conversions.swift
[861/868] Compiling NIOCore ByteBuffer-core.swift
[862/868] Compiling NIOCore ByteBuffer-int.swift
[863/868] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[864/868] Compiling NIOCore ByteBuffer-multi-int.swift
[865/868] Compiling NIOCore ByteBuffer-views.swift
[866/868] Compiling NIOCore Channel.swift
[867/868] Compiling NIOCore ChannelHandler.swift
[868/868] Emitting module NIOCore
[870/911] Emitting module NIOEmbedded
[871/911] Compiling NIOEmbedded Embedded.swift
[873/912] Emitting module NIOPosix
[874/917] Compiling NIOPosix SelectorUring.swift
[875/917] Compiling NIOPosix ServerSocket.swift
[876/917] Compiling NIOPosix Socket.swift
[877/917] Compiling NIOPosix SocketChannel.swift
[878/917] Compiling NIOPosix SocketProtocols.swift
[879/917] Compiling NIOPosix BaseStreamSocketChannel.swift
[880/917] Compiling NIOPosix Bootstrap.swift
[881/917] Compiling NIOPosix ControlMessage.swift
[882/917] Compiling NIOPosix DatagramVectorReadManager.swift
[883/917] Compiling NIOPosix FileDescriptor.swift
[884/917] Compiling NIOPosix GetaddrinfoResolver.swift
[885/917] Compiling NIOPosix SelectableChannel.swift
[886/917] Compiling NIOPosix SelectableEventLoop.swift
[887/917] Compiling NIOPosix SelectorEpoll.swift
[888/917] Compiling NIOPosix SelectorGeneric.swift
[889/917] Compiling NIOPosix SelectorKqueue.swift
[890/917] Compiling NIOPosix PipeChannel.swift
[891/917] Compiling NIOPosix PipePair.swift
[892/917] Compiling NIOPosix PointerHelpers.swift
[893/917] Compiling NIOPosix Resolver.swift
[894/917] Compiling NIOPosix Selectable.swift
[895/917] Compiling NIOPosix LinuxUring.swift
[896/917] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[897/917] Compiling NIOPosix NIOThreadPool.swift
[898/917] Compiling NIOPosix NonBlockingFileIO.swift
[899/917] Compiling NIOPosix PendingDatagramWritesManager.swift
[900/917] Compiling NIOPosix PendingWritesManager.swift
[901/917] Compiling NIOPosix HappyEyeballs.swift
[902/917] Compiling NIOPosix IO.swift
[903/917] Compiling NIOPosix IntegerBitPacking.swift
[904/917] Compiling NIOPosix IntegerTypes.swift
[905/917] Compiling NIOPosix Linux.swift
[906/917] Compiling NIOPosix LinuxCPUSet.swift
[907/917] Compiling NIOPosix BSDSocketAPICommon.swift
[908/917] Compiling NIOPosix BSDSocketAPIPosix.swift
[909/917] Compiling NIOPosix BSDSocketAPIWindows.swift
[910/917] Compiling NIOPosix BaseSocket.swift
[911/917] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[912/917] Compiling NIOPosix BaseSocketChannel.swift
[913/917] Compiling NIOPosix System.swift
[914/917] Compiling NIOPosix Thread.swift
[915/917] Compiling NIOPosix ThreadPosix.swift
[916/917] Compiling NIOPosix ThreadWindows.swift
[917/917] Compiling NIOPosix Utilities.swift
[919/920] Emitting module NIO
[920/920] Compiling NIO Exports.swift
[922/939] Compiling NIOTLS TLSEvents.swift
[923/939] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[924/939] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[925/939] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[926/939] Emitting module NIOFoundationCompat
[927/939] Emitting module NIOTLS
[928/939] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[929/939] Compiling NIOTLS SNIHandler.swift
[932/963] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[933/964] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[934/964] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[935/964] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[936/964] Compiling NIOHTTP1 HTTPTypes.swift
[937/964] Compiling NIOSSL IdentityVerification.swift
[938/964] Compiling NIOSSL LinuxCABundle.swift
[939/964] Emitting module NIOHTTP1
[940/964] Compiling NIOSSL ByteBufferBIO.swift
[941/964] Compiling NIOSSL CustomPrivateKey.swift
[942/964] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[944/970] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[945/970] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[946/970] Compiling NIOSSL SubjectAlternativeName.swift
[947/973] Compiling NIOSSL SSLPKCS12Bundle.swift
[948/973] Compiling NIOSSL SSLPrivateKey.swift
[949/973] Compiling NIOSSL SSLPublicKey.swift
[950/978] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[951/978] Compiling NIOWebSocket SHA1.swift
[952/978] Compiling NIOWebSocket WebSocketErrorCodes.swift
[953/978] Emitting module NIOSSL
[954/978] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[955/978] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[956/978] Compiling NIOWebSocket Base64.swift
[957/978] Compiling NIOSSL NIOSSLServerHandler.swift
[958/978] Compiling NIOSSL ObjectIdentifier.swift
[959/978] Compiling NIOSSL PosixPort.swift
[960/978] Compiling NIOSSL SSLCallbacks.swift
[961/978] Compiling NIOSSL SSLCertificate.swift
[962/978] Compiling NIOSSL SSLConnection.swift
[963/978] Compiling NIOSSL SSLContext.swift
[964/978] Compiling NIOSSL SSLErrors.swift
[965/978] Compiling NIOSSL SSLInit.swift
[966/978] Compiling NIOWebSocket WebSocketOpcode.swift
[967/979] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[968/979] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[969/979] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[970/979] Emitting module NIOWebSocket
[973/979] Compiling NIOWebSocket WebSocketFrame.swift
[979/980] Compiling NIOSSL TLSConfiguration.swift
[980/980] Compiling NIOSSL UniversalBootstrapSupport.swift
[982/990] Compiling WebSocket ReExport.swift
[983/991] Compiling WebSocket State.swift
[984/991] Compiling WebSocket EventLoopGroup.swift
[985/991] Compiling WebSocket FrameBuffer.swift
[986/991] Compiling WebSocket Handler.swift
[987/991] Compiling WebSocket InitialRequestHandler.swift
[988/991] Compiling WebSocket Data.swift
[989/991] Compiling WebSocket Error.swift
[990/991] Emitting module WebSocket
[991/991] Compiling WebSocket WebSocket.swift
[993/1083] Compiling DiscordKitCore APICurrentUser.swift
[994/1083] Compiling DiscordKitCore APIEmoji.swift
[995/1083] Compiling DiscordKitCore APIGateway.swift
[996/1083] Compiling DiscordKitCore APIGuild.swift
[997/1083] Compiling DiscordKitCore APIGuildScheduledEvent.swift
[998/1083] Compiling DiscordKitCore APIGuildTemplate.swift
[999/1083] Compiling DiscordKitCore APIInvite.swift
[1000/1083] Compiling DiscordKitCore APILobbies.swift
[1001/1083] Compiling DiscordKitCore APIMultipartFormBody.swift
[1002/1083] Compiling DiscordKitCore APIOAuth2.swift
[1003/1083] Compiling DiscordKitCore APIReceivingandResponding.swift
[1004/1083] Compiling DiscordKitCore APIRequest.swift
[1005/1083] Compiling DiscordKitCore GuildMembersChunk.swift
[1006/1083] Compiling DiscordKitCore GuildMiscUpdate.swift
[1007/1083] Compiling DiscordKitCore GuildRoleEvt.swift
[1008/1083] Compiling DiscordKitCore GuildSchEvtUserEvt.swift
[1009/1083] Compiling DiscordKitCore MessageACKEvt.swift
[1010/1083] Compiling DiscordKitCore MessageDelete.swift
[1011/1083] Compiling DiscordKitCore ReadyEvt.swift
[1012/1083] Compiling DiscordKitCore ReadySuppEvt.swift
[1013/1083] Compiling DiscordKitCore ThreadListSync.swift
[1014/1083] Compiling DiscordKitCore ThreadMembersUpdate.swift
[1015/1083] Compiling DiscordKitCore TypingStart.swift
[1016/1083] Compiling DiscordKitCore TypingStartEvt.swift
[1017/1083] Compiling DiscordKitCore Gateway.swift
[1018/1095] Emitting module DiscordKitCore
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
[1019/1095] Compiling DiscordKitCore APIStageInstance.swift
[1020/1095] Compiling DiscordKitCore APISticker.swift
[1021/1095] Compiling DiscordKitCore APIStore.swift
[1022/1095] Compiling DiscordKitCore APIUser.swift
[1023/1095] Compiling DiscordKitCore APIVoice.swift
[1024/1095] Compiling DiscordKitCore APIWebhook.swift
[1025/1095] Compiling DiscordKitCore DecodeThrowable.swift
[1026/1095] Compiling DiscordKitCore DiscordRange.swift
[1027/1095] Compiling DiscordKitCore EventDispatch.swift
[1028/1095] Compiling DiscordKitCore HashedAsset.swift
[1029/1095] Compiling DiscordKitCore HybridSnowflake.swift
[1030/1095] Compiling DiscordKitCore NullEncodable.swift
[1031/1095] Compiling DiscordKitCore Team.swift
[1032/1095] Compiling DiscordKitCore User+Flags.swift
[1033/1095] Compiling DiscordKitCore User+PremiumType.swift
[1034/1095] Compiling DiscordKitCore User.swift
[1035/1095] Compiling DiscordKitCore Voice.swift
[1036/1095] Compiling DiscordKitCore ApplicationObj.swift
[1037/1095] Compiling DiscordKitCore DataStructs.swift
[1038/1095] Compiling DiscordKitCore ChUnreadUpdate.swift
[1039/1095] Compiling DiscordKitCore ChannelPinsUpdate.swift
[1040/1095] Compiling DiscordKitCore GatewayEvent.swift
[1041/1095] Compiling DiscordKitCore GatewaySettingsProtoUpdate.swift
[1042/1095] Compiling DiscordKitCore GuildBan.swift
[1043/1095] Compiling DiscordKitCore GuildMemberEvt.swift
[1044/1095] Compiling DiscordKitCore GatewayIO.swift
[1045/1095] Compiling DiscordKitCore ReadState.swift
[1046/1095] Compiling DiscordKitCore UserSettings.swift
[1047/1095] Compiling DiscordKitCore LogOut.swift
[1048/1095] Compiling DiscordKitCore MessageReadAck.swift
[1049/1095] Compiling DiscordKitCore NewMessage.swift
[1050/1095] Compiling DiscordKitCore ResolvedInvite.swift
[1051/1095] Compiling DiscordKitCore APIAchievements.swift
[1052/1095] Compiling DiscordKitCore APIApplicationCommands.swift
[1053/1095] Compiling DiscordKitCore APIApplicationRoleConnectionMetadata.swift
[1054/1095] Compiling DiscordKitCore APIAuditLog.swift
[1055/1095] Compiling DiscordKitCore APIAutoModeration.swift
[1056/1095] Compiling DiscordKitCore APIChannel.swift
[1057/1095] Compiling DiscordKitCore Interaction.swift
[1058/1095] Compiling DiscordKitCore Levels.swift
[1059/1095] Compiling DiscordKitCore Locale.swift
[1060/1095] Compiling DiscordKitCore Member.swift
[1061/1095] Compiling DiscordKitCore Mention.swift
[1062/1095] Compiling DiscordKitCore Message.swift
[1063/1095] Compiling DiscordKitCore Nonce.swift
[1064/1095] Compiling DiscordKitCore Permission.swift
[1065/1095] Compiling DiscordKitCore Presence.swift
[1066/1095] Compiling DiscordKitCore Reaction.swift
[1067/1095] Compiling DiscordKitCore Snowflake.swift
[1068/1095] Compiling DiscordKitCore Stage.swift
[1069/1095] Compiling DiscordKitCore Sticker.swift
[1070/1095] Compiling DiscordKitCore APIUtils.swift
[1071/1095] Compiling DiscordKitCore DiscordKitConfig.swift
[1072/1095] Compiling DiscordKitCore DiscordREST.swift
[1073/1095] Compiling DiscordKitCore Collection+Identifiable.swift
[1074/1095] Compiling DiscordKitCore Int+decodeFlags.swift
[1075/1095] Compiling DiscordKitCore Logger+.swift
[1076/1095] Compiling DiscordKitCore Message+.swift
[1077/1095] Compiling DiscordKitCore User+.swift
[1078/1095] Compiling DiscordKitCore Snowflake+decode.swift
[1079/1095] Compiling DiscordKitCore String+random.swift
[1080/1095] Compiling DiscordKitCore URL+.swift
[1081/1095] Compiling DiscordKitCore URLSession+.swift
[1082/1095] Compiling DiscordKitCore DecompressionEngine.swift
[1083/1095] Compiling DiscordKitCore GatewayIdentify.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1084/1095] Compiling DiscordKitCore Intents.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1085/1095] Compiling DiscordKitCore RobustWebSocket.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1086/1095] Compiling DiscordKitCore Activity.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1087/1095] Compiling DiscordKitCore AppCommand.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1088/1095] Compiling DiscordKitCore Application.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1089/1095] Compiling DiscordKitCore Attachment.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1090/1095] Compiling DiscordKitCore Channel.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1091/1095] Compiling DiscordKitCore Connection.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1092/1095] Compiling DiscordKitCore Embed.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1093/1095] Compiling DiscordKitCore Emoji.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1094/1095] Compiling DiscordKitCore Guild.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1095/1095] Compiling DiscordKitCore Integration.swift
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:44:14: warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | /// > Use ``DiscordGateway`` instead of this class - it uses ``RobustWebSocket``
43 | /// > underlyingly and is higher-level for more ease of use.
44 | public class RobustWebSocket: NSObject {
| `- warning: non-final class 'RobustWebSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
45 | // swiftlint:disable:previous type_body_length
46 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:49:16: warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
47 | /// An ``EventDispatch`` that is notified when an event dispatch
48 | /// is received from the Gateway
49 | public let onEvent = EventDispatch<GatewayIncoming.Data>()
| `- warning: stored property 'onEvent' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<GatewayIncoming.Data>'; this is an error in the Swift 6 language mode
50 |
51 | /// An ``EventDispatch`` that is notified when the gateway closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:54:16: warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
52 | /// with an auth failure, or when the token is not present
53 | /// in the keychain
54 | public let onAuthFailure = EventDispatch<Void>()
| `- warning: stored property 'onAuthFailure' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
55 |
56 | /// An ``EventDispatch`` that is notified when the session opens/closes
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:59:16: warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
57 | /// or reachability status changes. Event is notified with
58 | /// a (sessionOpen: Bool, reachable: Bool) tuple.
59 | public let onConnStateChange = EventDispatch<(Bool, Bool)>()
| `- warning: stored property 'onConnStateChange' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<(Bool, Bool)>'; this is an error in the Swift 6 language mode
60 |
61 | /// An ``EventDispatch`` that is notified when the session cannot be
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:65:16: warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
63 | /// long and the session is invalidated. A fresh reconnection will
64 | /// be attempted if/when this happens.
65 | public let onSessionInvalid = EventDispatch<Void>()
| `- warning: stored property 'onSessionInvalid' of 'Sendable'-conforming class 'RobustWebSocket' has non-Sendable type 'EventDispatch<Void>'; this is an error in the Swift 6 language mode
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
/host/spi-builder-workspace/Sources/DiscordKitCore/Utils/EventDispatch.swift:15:14: note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
13 | /// as well as optimise some portions. Adapted from:
14 | /// [swift-event-dispatch](https://github.com/gongzhang/)
15 | public class EventDispatch<Event>: EventDispatchProtocol {
| `- note: generic class 'EventDispatch' does not conform to the 'Sendable' protocol
16 | public typealias HandlerIdentifier = Int
17 |
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:67:17: warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
65 | public let onSessionInvalid = EventDispatch<Void>()
66 |
67 | private var session: URLSession!, decompressor: DecompressionEngine!
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RobustWebSocket' is mutable; this is an error in the Swift 6 language mode
68 |
69 | #if canImport(WebSocket)
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:274:13: warning: no calls to throwing functions occur within 'try' expression
272 | socket = WebSocket()
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
| `- warning: no calls to throwing functions occur within 'try' expression
275 | } catch {
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:275:11: warning: 'catch' block is unreachable because no errors are thrown in 'do' block
273 | do {
274 | try socket.connect(url: connectionURL, headers: HTTPHeaders(dictionaryLiteral: ("User-Agent", DiscordKitConfig.default.userAgent)))
275 | } catch {
| `- warning: 'catch' block is unreachable because no errors are thrown in 'do' block
276 | Self.log.critical("Failed to connect to Gateway", metadata: ["Reason": "\(error.localizedDescription)"])
277 | }
/host/spi-builder-workspace/Sources/DiscordKitCore/Gateway/RobustWebSocket.swift:643:24: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
641 | Self.log.trace("Outgoing Payload", metadata: [
642 | "opcode": "\(opcode)",
643 | "data": "\((T.self == GatewayIdentify.self ? nil : data))", // Don't log tokens.
| | |- note: use a default value parameter to avoid this warning
| | |- note: provide a default value to avoid this warning
| | `- note: use 'String(describing:)' to silence this warning
| `- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
644 | "seq": "\(seq ?? -1)"
645 | ])
[1097/1139] Compiling DiscordKit Notification.pb.swift
[1098/1139] Compiling DiscordKit Privacy.pb.swift
[1099/1139] Compiling DiscordKitBot InteractionResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1100/1141] Emitting module DiscordKit
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
[1101/1143] Compiling DiscordKit Presence+.swift
[1102/1143] Compiling DiscordKit DiscordGateway.swift
[1103/1143] Compiling DiscordKit GatewayCachedState.swift
[1104/1143] Compiling DiscordKit Debug.pb.swift
[1105/1143] Compiling DiscordKit GameLibrary.pb.swift
[1106/1143] Compiling DiscordKit Inbox.pb.swift
[1107/1143] Compiling DiscordKit TextAndImages.pb.swift
[1108/1143] Compiling DiscordKit UserContent.pb.swift
[1109/1143] Compiling DiscordKit Localization.pb.swift
[1110/1143] Compiling DiscordKit AllGuildSettings.pb.swift
[1111/1143] Compiling DiscordKit Appearance.pb.swift
[1112/1143] Compiling DiscordKit Audio.pb.swift
[1113/1143] Compiling DiscordKit Status.pb.swift
[1114/1143] Compiling DiscordKitBot APICommand.swift
[1115/1143] Compiling DiscordKit FavoriteChannel.pb.swift
[1116/1143] Compiling DiscordKit FavoriteGIFs.pb.swift
[1117/1143] Compiling DiscordKit GuildFolders.pb.swift
[1118/1143] Emitting module DiscordKitBot
[1119/1143] Compiling DiscordKit UserSettingsProtoUpdate.swift
[1120/1143] Compiling DiscordKit APIUser+.swift
[1121/1143] Compiling DiscordKit DiscordProtos.pb.swift
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
75 | return
76 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
75 | return
76 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:44:6: error: unknown attribute 'Published'
42 | /// > since it doesn't seem to play well with SwiftUI, causing all sorts of
43 | /// > stale UI issues (i.e. stale UI)
44 | @Published public var cache: CachedState = CachedState()
| `- error: unknown attribute 'Published'
45 |
46 | /// An array of presences, kept updated as long as the Gateway connection is active
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:49:6: error: unknown attribute 'Published'
47 | ///
48 | /// Contains a dict of user presences, keyed by their respective user IDs
49 | @Published public var presences: [Snowflake: Presence] = [:]
| `- error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:52:6: error: unknown attribute 'Published'
50 |
51 | /// An array of guild folders
52 | @Published public var guildFolders: [GuildFolderItem] = []
| `- error: unknown attribute 'Published'
53 |
54 | /// An array of the current user's DMs
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:57:6: error: unknown attribute 'Published'
55 | ///
56 | /// Includes both single DMs and group DMs
57 | @Published public var privateChannels: [Channel] = []
| `- error: unknown attribute 'Published'
58 |
59 | /// Read state
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:60:6: error: unknown attribute 'Published'
58 |
59 | /// Read state
60 | @Published public var readState: [Snowflake: ReadState.Entry] = [:]
| `- error: unknown attribute 'Published'
61 |
62 | private var evtListenerID: EventDispatch.HandlerIdentifier?,
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:69:6: error: unknown attribute 'Published'
67 | ///
68 | /// `@Published` proxy of ``RobustWebSocket/sessionOpen``
69 | @Published public var connected = false
| `- error: unknown attribute 'Published'
70 | /// If the network is reachable (has network connectivity)
71 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:73:6: error: unknown attribute 'Published'
71 | ///
72 | /// `@Published` proxy of ``RobustWebSocket/reachable``
73 | @Published public var reachable = false
| `- error: unknown attribute 'Published'
74 |
75 | // Logger
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:20:30: error: cannot find type 'ObservableObject' in scope
18 | ///
19 | /// Conforms to `ObservableObject` for use in SwiftUI projects.
20 | public class DiscordGateway: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
21 | // Events
22 | /// An ``EventDispatch`` that is notified when an event is dispatched
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:112:15: error: value of type 'CachedState' has no member 'objectWillChange'
110 | // Clear cache
111 | cache = CachedState()
112 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
113 | socket?.close(code: .normalClosure)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:196:19: warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
194 |
195 | private func handleGuildUpdate(_ updatedGuild: Guild) {
196 | guard let existingGuild = cache.guilds[updatedGuild.id] else {
| `- warning: value 'existingGuild' was defined but never used; consider replacing with boolean test [#no-usage]
197 | return
198 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:200:13: warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
198 | }
199 |
200 | var modifiedGuild = updatedGuild
| `- warning: initialization of variable 'modifiedGuild' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
201 |
202 | // ``GatewayEvent.guildUpdate`` events are missing data that is only present in the initial ``GatewayEvent.ready`` event, so we need to copy those properties over manually.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:221:28: warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
219 | let settings: Discord_UserSettings
220 | do {
221 | settings = try Discord_UserSettings(serializedData: Data(base64Encoded: proto)!)
| |- warning: 'init(serializedData:extensions:partial:options:)' is deprecated: replaced by 'init(serializedBytes:extensions:partial:options:)' [#DeprecatedDeclaration]
| `- note: use 'init(serializedBytes:extensions:partial:options:)' instead
222 | } catch {
223 | log.error("Proto decode error! \(String(describing: error))")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/DiscordGateway.swift:303:15: error: value of type 'CachedState' has no member 'objectWillChange'
301 | }
302 |
303 | cache.objectWillChange.send()
| `- error: value of type 'CachedState' has no member 'objectWillChange'
304 | onEvent.notify(event: data)
305 | log.trace("[EVENT] Dispatched event")
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:18:6: error: unknown attribute 'Published'
16 | ///
17 | /// > The guild's ID is its key
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
| `- error: unknown attribute 'Published'
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:20:6: error: unknown attribute 'Published'
18 | @Published public private(set) var guilds: [Snowflake: PreloadedGuild] = [:]
19 |
20 | @Published public private(set) var members: [Snowflake: Member] = [:]
| `- error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:23:6: error: unknown attribute 'Published'
21 |
22 | /// DM channels the user is in
23 | @Published public private(set) var dms: [Channel] = []
| `- error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:26:6: error: unknown attribute 'Published'
24 |
25 | /// Cached object of current user
26 | @Published public private(set) var user: CurrentUser?
| `- error: unknown attribute 'Published'
27 |
28 | /// Cached users, initially populated from `READY` event and might
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:30:6: error: unknown attribute 'Published'
28 | /// Cached users, initially populated from `READY` event and might
29 | /// grow over time
30 | @Published public private(set) var users: [Snowflake: User] = [:]
| `- error: unknown attribute 'Published'
31 |
32 | /// Populates the cache using the provided event.
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:14:27: error: cannot find type 'ObservableObject' in scope
12 | ///
13 | /// Used in ``DiscordGateway/cache``.
14 | public class CachedState: ObservableObject {
| `- error: cannot find type 'ObservableObject' in scope
15 | /// Dictionary of guilds the user is in
16 | ///
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:35:22: error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
33 | /// - Parameter event: An incoming Gateway "ready" event.
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
| `- error: no 'appendOrReplace' candidates produce the expected type '(DecodeThrowable<PreloadedGuild>) throws -> Void' for parameter #0
36 | dms = event.private_channels
37 | user = event.user
:
47 | /// Updates or appends the provided guild.
48 | /// - Parameter guild: The guild you want to update or append to the cache.
49 | func appendOrReplace(_ guild: PreloadedGuild) {
| `- note: found candidate with type '(PreloadedGuild) -> ()'
50 | guilds.updateValue(guild, forKey: guild.id)
51 | }
:
100 | /// Appends or replaces the given message within the appropriate channel.
101 | /// - Parameter message: The message to append.
102 | func appendOrReplace(_ message: Message) {
| `- note: found candidate with type '(Message) -> ()'
103 | if let idx = dms.firstIndex(where: { $0.id == message.channel_id }) {
104 | dms[idx].last_message_id = message.id
:
110 | /// Appends or replaces the provided user in the cache.
111 | /// - Parameter user: The user to cache.
112 | func appendOrReplace(_ user: User) {
| `- note: found candidate with type '(User) -> ()'
113 | users.updateValue(user, forKey: user.id)
114 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:36:13: error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
34 | func configure(using event: ReadyEvt) {
35 | event.guilds.forEach(appendOrReplace(_:))
36 | dms = event.private_channels
| |- error: cannot assign value of type '[DecodeThrowable<Channel>]' to type '[Channel]'
| `- note: arguments to generic parameter 'Element' ('DecodeThrowable<Channel>' and 'Channel') are expected to be equal
37 | user = event.user
38 | event.users.forEach(appendOrReplace(_:))
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:40:39: error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
38 | event.users.forEach(appendOrReplace(_:))
39 | event.merged_members.enumerated().forEach { (idx, guildMembers) in
40 | members[event.guilds[idx].id] = guildMembers.first(where: { $0.user_id == event.user.id })
| `- error: value of type 'DecodeThrowable<PreloadedGuild>' has no member 'id'
41 | }
42 | print(members)
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:64:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
62 | /// - Parameter channel: The channel to append.
63 | func append(_ channel: Channel) {
64 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
65 | return
66 | }
/host/spi-builder-workspace/Sources/DiscordKit/Gateway/GatewayCachedState.swift:74:19: warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
72 | /// - Parameter channel: The channel to remove.
73 | func remove(_ channel: Channel) {
74 | guard let identifier = channel.guild_id else {
| `- warning: value 'identifier' was defined but never used; consider replacing with boolean test [#no-usage]
75 | return
76 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[1138/1144] Compiling DiscordKit VoiceAndVideo.pb.swift
BUILD FAILURE 6.2 linux