Skip to content
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

Errors and Warnings in the status bar show negative count #8058

Closed
sandy081 opened this issue Jun 23, 2016 · 10 comments
Closed

Errors and Warnings in the status bar show negative count #8058

sandy081 opened this issue Jun 23, 2016 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *not-reproducible Issue cannot be reproduced by VS Code Team member as described

Comments

@sandy081
Copy link
Member

  • VSCode Version: Insiders
  • OS Version: OSX

I am not sure how I got into this state, I was checking out to Master branch from my feature branch. After check out I see this weird state in the status bar.

errors and warnings

@dbaeumer dbaeumer self-assigned this Jun 23, 2016
@dbaeumer dbaeumer added the bug Issue identified by VS Code Team member as probable bug label Jun 23, 2016
@dbaeumer
Copy link
Member

Without steps hard to fix. If we remove the workaround code that filters resources this might be gone anyways.

@mihailstefanov
Copy link

I have same from some time, even in latest version 1.3.1, using Typescript

@dbaeumer
Copy link
Member

@mihailstefanov do you have any steps?

@vexxra
Copy link

vexxra commented Aug 4, 2016

Currently facing the same issue. While I can't provide any steps to reproduce it, maybe some things I noticed might help.

  1. The value is not random but a fixed offset. For me it was -15. This means that adding or removing errors to the code updates the value properly. Adding a a a a a a a a to a random line therefore resulted in 0 errors (7 times '; expected', 8 times 'cannot find name 'a''). Funnily enough while messing around I managed to increase this offset to -16, but was unable to change it any further.

  2. I think it started after changing a private member to public while still being referenced in another class. Afterwards the reference in the other class randomly claimed that the member is still private, but fixed itself within seconds. The error sort of "flickered" on and off. Could be a coincidence or a side effect though.

EDIT: Happened again today. This time I completely removed a line that had an error in it. This error randomly popped up back again, even though it was long gone. This was acompanied by a negative error count (-2 when no errors appeared, 3 when the error randomly popped up (he popped up 5 times at once)).

Restarting VSCode fixed everything.

@dbaeumer
Copy link
Member

dbaeumer commented Aug 8, 2016

What kind of error was it [js], [ts], [eslint], ...

@mihailstefanov
Copy link

It is more editor connected.

Regards
Mihail

On Aug 8, 2016, at 1:15 PM, Dirk B?umer <notifications@github.commailto:notifications@github.com> wrote:

What kind of error was it [js], [ts], [eslint], ...

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/8058#issuecomment-238196067, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFD_giRYSC0UbTW0Fr3ss7WSoDeKgAvzks5qdwG5gaJpZM4I83EU.

@vexxra
Copy link

vexxra commented Aug 9, 2016

What kind of error was it [js], [ts], [eslint], ...

Sorry, these were [ts] errors.

@dbaeumer
Copy link
Member

dbaeumer commented Aug 9, 2016

@stephanjust thanks.

@vexxra
Copy link

vexxra commented Aug 9, 2016

@dbaeumer I have to correct myself: these errors have no "type" at all. I actually thought that they were [ts] errors based on the content, but as I have this happen at the moment I can see that this is not the case.

While I still have no repro steps to start the entire issue, once it's running I can control it. These errors go away when switching the tab to the file showing the errors, and if not, definitely when changing the content of the file (adding a whitespace is enough). They come back when recompiling the source. Here are two example screenshots showing the change.

error1
error2

@mjbvz
Copy link
Contributor

mjbvz commented Oct 10, 2019

Closing this as out of date. If you still see this issue, please let us know

@mjbvz mjbvz closed this as completed Oct 10, 2019
@mjbvz mjbvz added the *not-reproducible Issue cannot be reproduced by VS Code Team member as described label Oct 10, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *not-reproducible Issue cannot be reproduced by VS Code Team member as described
Projects
None yet
Development

No branches or pull requests

5 participants