1234567891011121314151617(* XXX: Flèche LSP backend already handles the conversion at the protocol
level *)leturi_of_string_exnuri=Lang.LUri.of_stringuri|>Lang.LUri.File.of_uri|>Result.get_okletset_roots~token~debug~roots=matchrootswith|[]->()|[root]|root::_->(letroot=uri_of_string_exnrootinmatchPetanque.Agent.init~token~debug~rootwith|Okenv->(* hack until we fix the stuff *)let_:Yojson.Safe.t=JAgent.Env.to_yojsonenvin()|Errorerr->Format.eprintf"Error: %s@\n%!"(Petanque.Agent.Error.to_stringerr))