How to know if a terminal had completed a command?

So far I have been running commands in the terminal using the sendText() method. However, for some long running commands, I have been using a timeout function (estimated running time) to wait for execution to finish before issuing the next command (in the same terminal widget).

I am wondering if there is a more elegant solution in this case ?

[original thread by Zhang Bosen]

[JCzz]

How do you get to root in the terminal in Theiaide, I need to install new version of golang?

[JCzz]

Ahh sorry, I am new here and wanted to add a new post

@duemaster i am not aware of such feature, could you open a feature request please?

(reading between the lines here) Are you perhaps referring to the theia-go docker image, and wondering how to update the included golang version? If so the way to go is to do this in the corresponding Dockerfile. We have a PR under review to update to go 1.11: https://github.com/theia-ide/theia-apps/pull/117

[JCzz]

Yes, thanks :slight_smile: I also just saw that issue. Do you know go, and if so - do you know if it is possible to use. debugger like delve for golang?

[JCzz]

Yes, thanks :slight_smile: I also just saw that issue. Do you know go, and if so - do you know if it is possible to use. debugger like delve for golang?

I do not know much about go :frowning: It may already be possible to debug, or it may soon be, through the re-use of a vscode extension. Others here may know more.

Not sure whether that’s about IDE support for debugging. But if so: The Theia-Go-Extension wraps the Theia VSCode extension in a language server. At the time of writing, there was no debug support in Theia, so the extension doesn’t wire the debug features. We hope to be able to use the VSCode extension directly soon. That should include debugin then.

[JCzz]

Sounds great, thanks

Fwiw: anatolii is working on getting the goland vscode extension working on theia.

[JCzz]

That is really great, thanks for info.

[JCzz]

Do tou know, how can I follow the progress and possible do some testing on the golang part?

@jczz you can follow https://github.com/theia-ide/theia/wiki/Testing-VS-Code-extensions to test VS Code extensions with latest Theia

@tsmaeder would it be possible to have an issue for golang vscode extension?

[JCzz]

Thanks Anton - this is cloud native hot stuff :slight_smile:

https://github.com/theia-ide/theia/pull/4070 found a PR for golang