-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add evaluation status bar item #480
Add evaluation status bar item #480
Conversation
chan.appendLine("No results from file evaluation."); | ||
} | ||
}).catch((e) => { | ||
chan.appendLine(`Evaluation of file ${fileName} failed: ${e}`); | ||
setEvalStatus(EvaluationStatus.error); | ||
}); | ||
} | ||
if (callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was recently added, I'm not familiar with the purpose. Would it make sense for this to also be represented in the status bar indicator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might be from @cfehse 's fix for the load file callback. And yes, would probably be material for a status indicator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose was solely to show that an error occurred instead of ignoring the error condition completely.
I think this PR addresses a big and important issue with Calva. We should really do this. However, I don't think adding more status bar items is the way to do it. How about we instead:
This indicator sometimes is a button already. For toggling |
@PEZ fair enough about the status bar items, there are enough of them already. I like the plan of using the The status bar doesn't seem to support rapid updates, the most you can get is ~200ms updates, so no ability to really 'pulse`, I'll test some options out.
I think what would make sense here is to implement this as a separate PR after #471 is finished, which implements some changes to outputting messages and stacktrace to the REPL window, which should make this very straightforward to implement. |
Makes sense. It was that PR that got me to think about it. Let's just have the error message in the tooltip then for now? |
I'm closing this PR since it is stale, will re-open a new one when I have made more progress. |
What has Changed?
I've been bitten more than a few times because I missed the fact that I encountered an evaluation error, either because the bottom of my output channel was not visible or the output panel was collapsed. This adds a simple status indicator to make it idiot-proof.
No evaluation
Evaluating (animated)
Success
Error
Action
Clicking the icon will open the output panel. I couldn't get it to do more than this, I didn't put too much effort into it, it would be nice to make it toggle and ensure that the Calva Says output is shown.
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)master
. (Sorry for the nagging.)ci/circleci: build
test. (For now you'll need to opt in to the CircleCI New Experience UI to see the Artifacts tab, because bug.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.The Calva Team PR Checklist:
Before merging we (at least one of us) have:
dev
branch (unless reasons).Ping @PEZ, @kstehn, @cfehse