MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / trigger_parse

Method trigger_parse

server.py:309–325  ·  view source on GitHub ↗
(self, xcpath)

Source from the content-addressed store, hash-verified

307 return xcpath
308
309 def trigger_parse(self, xcpath):
310 # FIXME: ensure index_store_path from buildServer.json consistent with parsed .compile file..
311 import xclog_parser
312
313 xclog_parser.hooks_echo_to_log = True
314
315 from xclog_parser import parse, OutputLockedError
316
317 try:
318 cmd = ["xclog_parser", "-al", xcpath, "-o", self._compile_file]
319 if self.config.skip_validate_bin:
320 cmd.append("--skip-validate-bin")
321 logger.info(f"parse log at {xcpath}")
322 parse(cmd)
323 self.handle_compile_file_change()
324 except OutputLockedError:
325 self.locking_compile_file = True
326
327 def sync_compile_file(self, before=None):
328 """update to newest compile info to main thread

Callers 1

tickMethod · 0.95

Calls 3

parseFunction · 0.90
appendMethod · 0.80

Tested by

no test coverage detected