wait for finishing external gocode cmd