-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] console error indicator for status bar #6874
Comments
Comment by redmunds
Of course, you're welcome to keep it as it is and release it as an extension, but this would be great to have in core Brackets. At one time, Brackets had an option to "open dev tools on exception". It would be nice to have something like that again. This would also need to have toggle switch. If you want to try to get this working, be sure to test case when dev tools window is already open, the existing window should be re-used (and optimally brought to front) instead of opening new window (which was a problem with original feature). |
Comment by zaggino
|
Comment by redmunds
Seems like it should get inserted at left end (of the status bar indicators on the right side) so all other indicators are not shifted when it's toggled on/off. Not sure if you have access to a Windows system, but hit the Insert key and watch how the INS/OVR indicator does a single pulse when it changes. That might help you notice when error number is incremented (but it might have to be debounced in case where several errors come in very quickly). I like how clicking on the status bar indicator opens Dev Tools. The mouse pointer should change to a hand in the hover state. It might be nice to have a way to clear the count. I could see wanting to do that if you've looked at the console log and understand all the errors, then you could clear the count so it's easier to tell when new errors happen. |
Comment by MarcelGerber You could also event |
Comment by larz0
From the screenshot you provided looks like we could use a space after ":". |
Comment by MarcelGerber
|
Comment by larz0
|
Comment by redmunds
I wrote a simple extension that adds a "Randy Test" item to Debug menu and causes an exception every time you click it:
|
Comment by zaggino
Btw is it a good thing that status bar dissapears when viewing images or no file is open? |
Comment by redmunds
|
Comment by larz0
|
Comment by zaggino comments implemented, you can clear now with |
Comment by redmunds
|
Comment by larz0
|
Comment by zaggino It won't navigate you exactly to the errors so just "Show Developer Tools" would probably be more accurate description of the click action? |
Comment by larz0
|
Comment by zaggino |
Comment by larz0
|
Comment by njx This is really cool. I had a UI idea: what if instead of blinking the number, we did a background fade like the INS/OVR status bar field does? i.e., set the background to red and fade it out. I could imagine doing the same thing for the JSLint icon too - when the panel is closed I often don't notice when the icon turns yellow.
|
Comment by njx Also |
Comment by larz0
|
Comment by zaggino fade in/out done,
It won't catch errors that happen before the debug extension is loaded, for that to happen we'd need to put the code to a different place, ideally before anything from brackets gets loaded. |
Comment by larz0
|
Comment by zaggino That's weird, I've tested it again and it works for me :-/ |
Comment by redmunds
|
Comment by larz0
|
Comment by redmunds This looks good. Just a couple last comments. |
Comment by zaggino Fixed |
Comment by redmunds Thanks! Merging. |
Comment by sixertoy I'm looking for Menus.getMenu https://github.com/malas34/brackets-console-plus not yet in brackets repo |
Issue by zaggino
Friday Apr 25, 2014 at 04:11 GMT
Originally opened as adobe/brackets#7639
Old Subject: error icon for main-toolbar
This is something I've made out of need when working with Brackets especially on non-brackets projects (when I don't have my Brackets developer console open) to see if something wrong happened inside Brackets immediately.
From my experience many users don't use console to look for errors before reporting an issue so having a red icon appearing on the main toolbar might help also to non-developers.
Leaving to your consideration if this's a good idea for a default extension, or if I should move it to the extension registry. I'm fine with both.
Looks like this:
zaggino included the following code: https://github.com/adobe/brackets/pull/7639/commits
The text was updated successfully, but these errors were encountered: