For a more reproducible test:
> sourcekitten complete --text "import Foundation; let x = UR" --offset 29
<unknown>:0: error: compiler is in code completion mode (benign diagnostic)
[]
as opposed to:
> sourcekitten complete --text "import Foundation; let x = URL" --offset 30 | grep "name"
<unknown>:0: error: compiler is in code completion mode (benign diagnostic)
"name" : "(dataRepresentation:relativeTo:)",
"name" : "(dataRepresentation:relativeTo:isAbsolute:)",
"name" : "(fileReferenceLiteralResourceName:)",
"name" : "(fileURLWithFileSystemRepresentation:isDirectory:relativeTo:)",
"name" : "(fileURLWithPath:)",
"name" : "(fileURLWithPath:isDirectory:)",
"name" : "(fileURLWithPath:isDirectory:relativeTo:)",
"name" : "(fileURLWithPath:relativeTo:)",
"name" : "(from:)",
"name" : "(string:)",
"name" : "(string:relativeTo:)",
"name" : "_bridgeToAnyObject()",
"name" : "_bridgeToObjectiveC()",
"name" : "_conditionallyBridgeFromObjectiveC(:result:)",
"name" : "_forceBridgeFromObjectiveC(:result:)",
"name" : "_ObjectType",
"name" : "_unconditionallyBridgeFromObjectiveC(:)",
"name" : "appendingPathComponent()",
"name" : "appendingPathComponent()",
"name" : "appendingPathExtension()",
"name" : "appendPathComponent()",
"name" : "appendPathComponent()",
"name" : "appendPathExtension()",
"name" : "checkResourceIsReachable()",
"name" : "deleteLastPathComponent()",
"name" : "deletePathExtension()",
"name" : "deletingLastPathComponent()",
"name" : "deletingPathExtension()",
"name" : "encode()",
"name" : "hash()",
"name" : "ReferenceType",
"name" : "removeAllCachedResourceValues()",
"name" : "removeCachedResourceValue()",
"name" : "resolveSymlinksInPath()",
"name" : "resolvingSymlinksInPath()",
"name" : "resourceValues()",
"name" : "setResourceValues()",
"name" : "setTemporaryResourceValue()",
"name" : "standardize()",
"name" : "withUnsafeFileSystemRepresentation()",