Skip to content

Suggestion: Automatically show the Problems panel if problems exist (and hide similarly) #10400

Closed as not planned

Description

  • VSCode Version: 1.4.0
  • OS Version: macOS 10.11.6

I often work with the Problems panel open, as listing the problems that way is a very good visual indication of what needs some work. However, when I don't have any current problems, it'd be nice if the Problems panel could automatically hide (giving some more screen real estate). Then, when problems come up, it could automatically show again.

A little bit of auto-sizing based on the current number of problems would also be nice, but is less important, in my opinion.

Activity

  1. stevencl commented on Aug 11, 2016

    @stevencl
    Member

    Thanks for the suggestion.

    We have an indicator in the status bar which lets you know when there are any errors or warnings in your code. Have you found this to be useful?

    I'm reluctant to open the panel automatically when we already have an indicator in the status bar. Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.


    From: Johannes Riekenmailto:[email protected]
    Sent: ‎11/‎08/‎2016 10:14
    To: Microsoft/vscodemailto:[email protected]
    Cc: Steven Clarkemailto:[email protected]; Mentionmailto:[email protected]
    Subject: Re: [Microsoft/vscode] Suggestion: Automatically show the Problems panel if problems exist (and hide similarly) (#10400)

    Assigned #10400 to Steven Clarke (@stevencl).

    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub:
    #10400 (comment)

  2. dahjelle commented on Aug 11, 2016

    @dahjelle
    Author

    I technically know the indicator exists, but I can't say I ever look at it. I must be fairly arrogant: I assume my code is correct until I'm shouted at. :-D I really do prefer a pretty obnoxious warning in this case.

    Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.

    I definitely wouldn't do it as the default behavior! It does seem like it could be a configuration option. Or, alternatively, perhaps it's best as a plugin. I haven't looked—is the API sufficient to enable this kind of behavior?

    For reference, I was previously using Atom and Atom-Linter. You can see how their error pane can (optionally) hide and show itself in their screenshot (down at the bottom of the screen). They are also optionally showing errors inline there, though I always preferred the list at the bottom of the screen:

    Preview

  3. sandy081 commented on Aug 15, 2016

    @sandy081
    Member

    I also do not like the panel showing / hiding automatically when there is an error created / removed while editing. This will be annoying.

    I think currently we create squiggles to inform user that there is an error. You can hover on it to see what error is about. This is something which catches user eyes while editing. Is this not helping?

  4. added
    feature-request
    error-list
    on Aug 22, 2016
  5. dahjelle commented on Aug 24, 2016

    @dahjelle
    Author

    I don't find the red squiggles all that helpful. If I have a lint error, I'd like to know immediately and without further interaction the details of the lint error. This way, I can fix (or ignore) the problem without interruption to my flow.

    While the red squiggles show that a lint error exists, the only way to find out what the error is is to:

    1. Hover over the squiggle with the mouse.
    2. Position the cursor in the proper place and use the "Show Hover" command.
    3. Open the "Problems" pane to see a list of problems and find the current one.
    4. (my current solution) Keep the "Problems" pane open and empty until I have a lint error, so I can immediately see the details of the error when I write it.
    5. others?

    I'm not that unhappy with the current approach in Code, but I really did like the workflow I had in Atom. :-)

    Thanks again for all your work on Code. I've really, really been enjoying using it.

  6. Stanzilla commented on Mar 5, 2017

    @Stanzilla

    Would love to get this, can it be a setting?

  7. pdf commented on May 5, 2017

    @pdf

    Steven Clarke (@stevencl) wrote:

    I'm reluctant to open the panel automatically when we already have an indicator in the status bar. Opening the panel automatically could be quite a disruptive experience and could interrupt the developer's workflow unexpectedly. I'd much rather leave the developer in control of their environment.

    It should definitely live behind a bool, but I think providing the option does exactly what you're proposing - gives the developer control over behaviour. Requiring key-combos or (worse) mouse clicks to repeatedly toggle the panel is cumbersome. Huge bonus points if the auto-toggle sizes the panel to fit the current problem list count, to preserve screen real-estate and maximise information delivery (probably needs a (configurable?) maximum line count to avoid taking over the screen).

    Sandeep Somavarapu (@sandy081) wrote:

    I think currently we create squiggles to inform user that there is an error. You can hover on it to see what error is about. This is something which catches user eyes while editing. Is this not helping?

    I really miss this feature from vim/atom, it's something I wouldn't knock unless you've tried it, though obviously it won't be for everyone. The vscode 'problem squiggles' just don't really convey anything useful without using the mouse, and that's painful (both figuratively and literally for some).

    An additional/alternative change might be to automatically display the inline problem popup when navigating/typing within the buffer using the keyboard. This wouldn't help for cross-file problems though, so if added I think it would need to be in addition to (optionally) popping the problems panel.

  8. Gama11 commented on May 18, 2017

    @Gama11
    Contributor

    I also do not like the panel showing / hiding automatically when there is an error created / removed while editing. This will be annoying.

    I agree - I probably wouldn't want this to happen for errors that are reported by diagnostics / while typing. What I do want it for is errors from compilation (running a task).

  9. ncannasse commented on Jun 23, 2017

    @ncannasse

    This is very important for compiler based languages: once the build task is finished, you should be able to directly get to the Problems panel (like Visual Studio is doing for C/C++ BTW) without having to click or use hotkey.

    Maybe a simple way would be to add a showProblems : true to the task description that would automatically show the problems panel if the tasks has exit with a not 0 error code?

  10. vvs commented on Jul 3, 2017

    @vvs

    For this feature to be truly convenient and useful, some more configuration options are needed. Like, limit the problems view to the current file or even limit the problems view to the current line.

    That way, we could quickly see the fresh problems without being distracted by the problems in other files (and sometimes out of our control or interest at the moment).

    That's what I've been using in Atom, and it worked great there: the status bar shows the errors for the entire project, the panel shows errors only for the current file, and it is automatically shown and hidden when errors appear and are resolved.

    I've opened a separate feature request for the entire overhaul of the problems view here #30038.

  11. jaredh159 commented on Aug 26, 2018

    @jaredh159

    coming from Atom, I found this useful for flow errors, since you can change a type definition in one file and cause multiple flow errors in files not open, so you don't see any squiggly lines. Obviously, it would need to be an opt-in configuration or exposed by an extension, but still really useful for some workflows.

  12. 10 remaining items

  13. berliner commented on Oct 31, 2019

    @berliner

    Jens Fischer (@Gama11) Not sure what it's called exactly, but it sounded about right, see the screenshot

    vscode-10400

  14. Gama11 commented on Oct 31, 2019

    @Gama11
    Contributor

    That's the output panel. Could be some extension (PHP?) opening that, but definitely not related to this issue.

  15. berliner commented on Oct 31, 2019

    @berliner

    Jens Fischer (@Gama11) Ah, ok. I was googling my fingers of to come across an issues that seemed at least related, but ok, I'll continue searching. The output probably comes from intellisense, but I assumed that VSCode probably had a setting somewhere to control the panel as a whole, given that I can close it as a whole too, independently on which tab is currently open in there.

  16. vscodebot commented on Jan 15, 2020

    @vscodebot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  17. stellarpower commented on Sep 5, 2021

    @stellarpower

    The problem I have is that the build output isn't as pretty as the problems pane and most annoyingly I can't link quickly to the location in the file. It's meant I've become sloppy at fixing warnings or had to scroll around a lot. For C++ for example, in previous projects I have had thousands of error messages resulting from one line. Looking at the first error you find I feel is critical to solving the problem quickly. I presume there is a setting for disabling the popping up of the output pane, but will have to google - if it stays where it is when I highlight it, that would probably be sufficient. Another option, more complicated but perhaps neater, might be to include build status along with problems and rename the tab. Can't find a screenshot right now, but Qt Creator always did this rather nicely, with a little loading bar, status, and cancel button, alongside errors as they arose. I could start fixing whilst it was still building.

  18. added
    *out-of-scope
    on Dec 14, 2022
  19. vscodenpa commented on Dec 14, 2022

    @vscodenpa

    We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding, and happy coding!

  20. dotpointer commented on Dec 23, 2022

    @dotpointer

    This is the second time this issue has been closed. It should be fixed and not closed in my opinion.

  21. padcom commented on Jul 5, 2023

    @padcom

    How do I do the automatic showing of problems list? Is this implemented? Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scopeerror-listfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions