Description
Description
I am trying to cache the response from the send_request
function of the sourcekitd framework. This function returns a sourcekitd_response_t
, and then I get a sourcekitd_variant_t
from it using response_get_value(sourcekitd_response_t)
.
In my case, I try to cache the data (uint64_t data[3]
) of sourcekitd_variant_t
and use it later without making another send_request
call. However, it gives me a "Segmentation fault: 11" error when I use variant_dictionary_get_int64(sourcekitd_variant_t, key)
.
Can someone tell me what's going on, and if possible, is there a way to cache values or optimize when using sourcekitd?
Reproduction
Expected behavior
caching implement
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
No response