-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications on Tasks started/ended are missing context #13394
Comments
Thanks @vzhukovskii :
Also, you command is "shell: long running test task" but displayed "Task long running test task", why "shell" disappeared? Exit code yes - but what is the meaning? where can I find a description about it? Should it not be information that is secondary that a user could find somewhere else? |
shell in terms of task configuration as I see means, that this is particular type of command, that executes as bash command.
it depends on the shell command, some command can return 0 as successful execution, 1 or above if there is some error during execution, exit codes user can see in man pages for the particular command, for example: curl exit codes1 Details0 1 one or more warning errors were encountered, but processing completed successfully anyway. This includes zipfiles where one or more files was skipped due to unsupported compression method or encryption with an unknown password. 2 a generic error in the zipfile format was detected. Processing may have completed successfully anyway; some broken zipfiles created by other archivers have simple work-arounds. 3 a severe error in the zipfile format was detected. Processing probably failed immediately. 4 unzip was unable to allocate memory for one or more buffers during program initialization. 5 unzip was unable to allocate memory or unable to obtain a tty to read the decryption password(s). 6 unzip was unable to allocate memory during decompression to disk. 7 unzip was unable to allocate memory during in-memory decompression. 8 [currently not used] 9 the specified zipfiles were not found. 10 invalid options were specified on the command line. 11 no matching files were found. 50 the disk is (or was) full during extraction. 51 the end of the ZIP archive was encountered prematurely. 80 the user aborted unzip prematurely with control-C (or similar) 81 testing or extraction of one or more files failed due to unsupported compression methods or unsupported decryption. 82 no files were found due to bad decryption password(s). (If even one file is successfully processed, however, the exit status is 1.) and so on. Matching it (exit code) to the human readable message sometimes can be impossible, because there has to be a mechanism to identify the last one from the man page or from the command output (but otherwise, the command output can be suppressed).
I wanted to discuss this functionality, because as I remember, the command output that has been executed and finished in che context, can be retrieved from the server side, but I'm not sure that this is possible in theia (because these changes has to be made in theia upstream). As I know, in theia it is possible to retrieve command output while they're executing, but I'm not sure, that we can retrieve output, when task has been finished. Looking for that at this moment. Meantime, I think it would be better to quote the task name, because name can be long and quoted name is easy to read than non quoted. And, should we include shell type in command name in message popup? Wdyt? |
My point is that why it is displayed in one case and not displayed in the other case. That is not consistent.
|
ok, so you think it's better to keep it. That's fine, we can gather other
feedbacks on this and revise later.
Thanks Vlad
…On Tue, May 28, 2019 at 4:13 PM Vladyslav Zhukovskyi < ***@***.***> wrote:
My point is that why it is displayed in one case and not displayed in the
other case. That is not consistent.
I've updated formatting the message:
[image: Снимок экрана 2019-05-28 в 17 01 58]
<https://user-images.githubusercontent.com/1968177/58484412-aec25a80-816a-11e9-8fb5-b011e34f82e1.png>
My question is more, what is the value of displaying the exit code? Don't
you need to get into the output anyway if you want to interpret it?
Sometimes output might be suppressed and there is no any log to determine
what exactly exception has been occurred. And by particular exit code
developer can find what exactly happened.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13394>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMPTIP7PISLDBDMRRFVEZ3PXU4WDANCNFSM4HOTALWA>
.
--
Stévan LeMeur // Product Manager // Developer Tools // +336-87-11-27-55
|
@slemeur |
I like too this idea. And yes, for us it's a harder to reuse this functionality even if theia guys will apply it to the task extension. Because for tasks we don't use extension any more, we use our own task theia plugin. And it's not a secret that theia plugin don't have full access to the extension api, we have limited access with help theia plugin api. Our task plugin use terminal theia plugin api. If this api doesn't provide reuse functionality it's hard for us to get this feature. It's possible but not such easy like with extensions. Also it's depends on how theia guys will implement reuse feature. |
Can't we contribute and push that functionality as part of the the terminal theia plugin api? |
Description
When starting a task we are displaying some notification in the IDE. Those notifications are missing context so that the user can know what tasks have been started or stopped.
Start Notification
Ended Notification
The text was updated successfully, but these errors were encountered: