Bug 231905 - Synchronize view shows labels like 'Error: no label provider' for change sets
Summary: Synchronize view shows labels like 'Error: no label provider' for change sets
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted, investigate
Depends on: 295817
Blocks:
  Show dependency tree
 
Reported: 2008-05-13 14:55 EDT by Benno Baumgartner CLA
Modified: 2020-03-15 13:26 EDT (History)
6 users (show)

See Also:


Attachments
screen shot (47.38 KB, image/png)
2008-05-13 14:55 EDT, Benno Baumgartner CLA
no flags Details
screen shot 2 (13.61 KB, image/png)
2008-05-14 10:25 EDT, Benno Baumgartner CLA
no flags Details
screenshot gtk (146.54 KB, image/jpeg)
2008-05-20 17:59 EDT, Benjamin Muskalla CLA
no flags Details
no label provider in egit (61.60 KB, image/jpeg)
2011-07-17 17:40 EDT, Dariusz Luksza CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benno Baumgartner CLA 2008-05-13 14:55:07 EDT
Created attachment 100011 [details]
screen shot

I20080510-2000

1. Show synchronize view
2. Incoming mode
3. Show change sets
4. Synchronize workspace
5. Wait
Is:
 After a while you get a couple of "change sets" called something like 'Error: no label provider blablabla'. See screen shot. 
Should:
 I don't know, certainly not that.
Comment 1 Tomasz Zarna CLA 2008-05-14 09:43:30 EDT
Wow, I've never seen anything like that before. Is it reproducible? Does the error log say anything interesting? Do the change sets stay like that?
Comment 2 Benno Baumgartner CLA 2008-05-14 10:25:57 EDT
Created attachment 100182 [details]
screen shot 2

(In reply to comment #1)
> Wow, I've never seen anything like that before. Is it reproducible? 
See my steps, but I can not reproduce it easily. The screen shot shows how it looks today. I guess the bug is that some incoming changes are not added to a change set by the view.

> Does the error log say anything interesting? 
No

> Do the change sets stay like that?
To make them go away switch to outgoing mode and back.
Comment 3 Benjamin Muskalla CLA 2008-05-20 17:56:01 EDT
Just came across this too. The funny this is that it does not seem to be an changeset. Invoking Plugin Spy shows that my regular changesets are instances of ContextChangeSet while these "no label provider" items are instances of "JavaProject" (at least that's what Plugin Spy says). Nothing in the logs for me too. Steps, see #0.
The only little difference here is that the items are really big and contain besides the "no label provider.." many more lines with all java packages of these projects. Maybe it only looks like this for me as I'm on GTK while Benno is on Windows and for him the Item only shows the first line of text.
Comment 4 Benjamin Muskalla CLA 2008-05-20 17:59:17 EDT
Created attachment 101157 [details]
screenshot gtk

here is a screenshot on gtk
Comment 5 Benno Baumgartner CLA 2008-05-21 03:27:06 EDT
(In reply to comment #3)
> Just came across this too. The funny this is that it does not seem to be an
> changeset. Invoking Plugin Spy shows that my regular changesets are instances
> of ContextChangeSet while these "no label provider" items are instances of
> "JavaProject" (at least that's what Plugin Spy says).

Which proves my assumption from comment #2

> The only little difference here is that the items are really big and contain
> besides the "no label provider.." many more lines with all java packages of
> these projects. Maybe it only looks like this for me as I'm on GTK while Benno
> is on Windows and for him the Item only shows the first line of text.

In windows, at least in my case, it was not possible to expand the items with the error label. 

Comment 6 Tomasz Zarna CLA 2008-05-27 07:29:48 EDT
Thanks for your feedback guys, but I'm afraid this issue is caused to multi-threading involved in managing the Sync view and Change Sets in particular. Which makes it harder for me to solve since I'm working on a single core machine. I will try to switch to our dual core desktop as often as possible, and I will for any signs of the issue you reported. Until then, what I can suggest is to use workaround from Benno's comment 2. Marking as Assigned, even though I haven't reproduce it, I'm sure none of the provided screen shots is a fake ;)
Comment 7 utilisateur_768 CLA 2008-08-22 03:21:44 EDT
Hi, i'm using eclipse I20080617-2000, and i got the same error today (with a non dual core machine).

The steps are:
* having 2 "named" CS = change sets in synchronize view
* doing some java editing on other files
* doing a synchronize from java perspective adds the <Unassigned> CS with 1 sub node saying Error: no label provider for MYJavaProject

Don't know if it's important but i was in "Incoming/Outgoing mode".
Comment 8 Steffen Pingel CLA 2010-07-15 12:26:13 EDT
I used to get this problem every once in a while but don't remember seeing it with Eclipse 3.5 or 3.6.
Comment 9 Dariusz Luksza CLA 2011-07-17 17:40:51 EDT
Created attachment 199799 [details]
no label provider in egit

This seams to be a navigator core bug, because it recently appears in EGit UI test cases. I can always reproduce it bu running all tests in SynchronizeViewGitChangeSetModelTest class. When I've run this test case in debug mode this bug doesn't occur, it seams to be a very strange race-condition.
Comment 10 Matthias Sohn CLA 2011-08-03 18:47:44 EDT
(In reply to comment #8)
> I used to get this problem every once in a while but don't remember seeing it
> with Eclipse 3.5 or 3.6.

currently the egit hudson job runs the ui tests on Eclipse 3.6
Comment 11 Tomasz Zarna CLA 2011-09-23 10:55:47 EDT
(In reply to comment #9)
> I can always reproduce it bu running all tests in
> SynchronizeViewGitChangeSetModelTest class. 

Is there a wiki page describing what do I need and how to run these tests?
Comment 12 Tomasz Zarna CLA 2011-09-23 11:53:18 EDT
(In reply to comment #11)
> (In reply to comment #9)
> > I can always reproduce it bu running all tests in
> > SynchronizeViewGitChangeSetModelTest class.

Darek are you still seeing this? I've just run the test and haven't spotted the fishy label.

> Is there a wiki page describing what do I need and how to run these tests?

Found: http://wiki.eclipse.org/EGit/Contributor_Guide#EGit_UI_Tests
Comment 13 Szymon Ptaszkiewicz CLA 2012-06-20 07:57:46 EDT
I can see the same problem on my machine. In my case, the "Error: no label provider..." element of the tree is also a JavaProject but not the one from JDT but from JSDT. JSDT uses this name for JavaScript project and that can be verified in the valid interfaces section of Plug-in Spy where it says it is an IJavaScriptProject.

Comment 6 and comment 9 confirm what I saw while debugging this problem - it looks like a race condition while managing events used to populate data in the Sync view.

It's very hard to find out what's causing this error label so marking as dependent on the bug that is about improving the error reporting in such cases.
Comment 14 Eclipse Genie CLA 2020-03-15 13:26:32 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.