

def start(self):
    if AnalysisServer.ping():
        _logger.info('AnalysisServer is already running')
        return
    self.send_get_version()
    sdk = SDK()
    _logger.info('starting AnalysisServer')
    AnalysisServer.server = PipeServer([sdk.path_to_dart, sdk.path_to_analysis_snapshot, '--sdk={0}'.format(self.path), '--file-read-mode normalize-eol-always'])

    def do_start():
        try:
            AnalysisServer.server.start(working_dir=sdk.path)
            self.start_handlers()
            self.start_stdout_watcher()
        except Exception as e:
            _logger.error('could not start server properly')
            _logger.error(e)
            return
    threading.Thread(target=do_start).start()

dataset/ETHPy150Open guillermooo/dart-sublime-bundle/lib/analyzer/analyzer.py AnalysisServer.start/VarMisuse@67/101 `sdk`->`self`