You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@code-asher we already stream build logs from terarform to VSCode. I wonder how the Commit quota information is being displayed. Do we need changes in coder/coder to support this?
We recently made a change to use the cli to start the workspace and display the stderr if it fails, so it is possible this will actually show up in the error now.
I think it could also make sense to have the ability to review the build log on error. Right now we immediately close it on error so it is not possible to review it to see what might have gone wrong.
Part of me prefers the way it is now, because the action it tried to do was open the workspace, and the message then describes why that action failed.
But, if we feel this is obscuring the error and moving the stderr above is better, then that seems reasonable enough to me. Do note though that stderr could be anything though, it could be about quotas or anything else, and a dynamic title also feels a little weird to me.
It also seems unfortunate that we display the "run coder start --help" part when the user has no way to actually do that. I wonder if the cli needs a kind of "plugin" mode that displays different error messages when running as part of a plugin (and maybe it would output in json instead as well, so we could parse and use the errors however we want, instead of dealing with arbitrary text, maybe the flag could be --json).
Yeah. IMO we should only show coder<subcommand> --help if the command or argument is not valid and otherwise just print the error message.
We can move the discussion to coder/coder.
Also we can close this issue as resolved because we do show the error message now.
Activity
matifali commentedon Dec 16, 2024
@code-asher we already stream build logs from terarform to VSCode. I wonder how the Commit quota information is being displayed. Do we need changes in coder/coder to support this?
code-asher commentedon Dec 17, 2024
We recently made a change to use the cli to start the workspace and display the stderr if it fails, so it is possible this will actually show up in the error now.
I think it could also make sense to have the ability to review the build log on error. Right now we immediately close it on error so it is not possible to review it to see what might have gone wrong.
matifali commentedon Dec 18, 2024
So we can instead parse the error log for any errors and show them via extension. We can do it along with coder/coder#15447
code-asher commentedon Dec 18, 2024
Here is what it looks like now:
matifali commentedon Dec 19, 2024
This is nice that we have it already. Can we make this error more notable by highlighting the Quota issue instead of "Failed to Open Workspace"?
code-asher commentedon Dec 20, 2024
Part of me prefers the way it is now, because the action it tried to do was open the workspace, and the message then describes why that action failed.
But, if we feel this is obscuring the error and moving the stderr above is better, then that seems reasonable enough to me. Do note though that stderr could be anything though, it could be about quotas or anything else, and a dynamic title also feels a little weird to me.
code-asher commentedon Dec 20, 2024
It also seems unfortunate that we display the "run coder start --help" part when the user has no way to actually do that. I wonder if the cli needs a kind of "plugin" mode that displays different error messages when running as part of a plugin (and maybe it would output in json instead as well, so we could parse and use the errors however we want, instead of dealing with arbitrary text, maybe the flag could be
--json).matifali commentedon Dec 21, 2024
Yeah. IMO we should only show
coder<subcommand> --helpif the command or argument is not valid and otherwise just print the error message.We can move the discussion to
coder/coder.Also we can close this issue as resolved because we do show the error message now.