Closed orzFly closed 1 year ago
You mean we should expose the friend failed info to users? For example, I'm now executing fy hello
to do some translations. But for some reason, the fy
execution was failed. And we catched this error. Now, we should return a wrapped Result Item that indicates query failed, press xxx to requery., instead of returning the empty result list. If I'm right, it's a good idea. And if you have interests, you can pull me requests about this idea or I can add you to Collaborators so that you can commit directly if you would like to attend this project. I will be glad if you do so.
About command history, I thought about it. You can see in CMD Commit, I have completed a simple command history function for it. I think if we will provide a common commands history funciton for every workflows. At least, there should be a switch for workflows to turn it off or not. For some plugins, they may don't need command history.
In fact the error, can be divided into two kinds.
On Mon, Jan 27, 2014 at 7:09 PM, qianlifeng notifications@github.comwrote:
You mean we should expose the friend failed info to users? For example, I'm now executing fy hello to do some translations. But for some reason, the fy execution was failed. And we catched this error. Now, we should return a wrapped Result Item that indicates query failed, press xxx to requery., instead of returning the empty result list. If I'm right, it's a good idea. And if you have interests, you can pull me requests about this idea or I can add you to Collaborators so that you can commit directly if you would like to attend this project. I will be glad if you do so.
About command history, I thought about it. You can see in CMD Commithttps://github.com/qianlifeng/WinAlfred/blob/master/WinAlfred.Plugin.System/CMD.cs, I have completed a simple command history function for it. I think if we will provide a common commands history funciton for every workflows. At least, there should be a switch for workflows to turn it off or not. For some plugins, they may don't need command history.
— Reply to this email directly or view it on GitHubhttps://github.com/qianlifeng/WinAlfred/issues/18#issuecomment-33358751 .
Regarding what @orzFly said:
I think if a command fails, that specific plugin should handle the error and push the corresponding Result
to Wox, because each plugin has a very specific functionality and it is not possible to make Wox handle everything. Maybe it is a command that should not be repeated or a different command should be invoked or whatever. The variety of needed actions for each specific case can be endless.
In other words, the plugins should handle the internal plugin errors during execution, not Wox. (unless it's an uncatched exception).
Correct me if i'm understanding something wrong.
@lances101 I agree with you.
However this issue I posted years ago in fact pointed to reporting the failure to Wox so the next time when user opens Wox the input box will be filled with last command. For example:
Some commands may be failed to execute, such as typos. I think we should allow user to re-run their last command if there was an error before.
BTW, command history is important, I think.