Bug 571264

Summary: Blank tree items in Project Explorer
Product: [Eclipse Project] Platform Reporter: Martin Coufal <mcoufal>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.19   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Setup script (destructive, run with caution!)
none
workspace log
none
screencast none

Description Martin Coufal CLA 2021-02-17 13:32:50 EST
Created attachment 285581 [details]
Setup script (destructive, run with caution!)

From time to time when creating new files, an empty/blank tree items are displayed in Project Explorer view. I've been seeing this for a quite some time now, It's been happening for different file types, though I only have steps to reproduce this using Java project:

How to reproduce:
1. run clean Eclipse (no .eclipse/ workspace/)
2. close Welcome screen
3. click on 'Create a project...' in Project Explorer view
4. select 'Java' > 'Java Project' and hit 'Next >'
5. fill in project name, hit 'Finish'
6. 'Don't Create' module-info.java
7. say 'No' to perspective switch
8. expand project tree item in Project Explorer view
9. expand 'src' tree item in Project Explorer view
10. right click 'src' tree item and select: 'New' > 'Class'
11. fill in the name and hit 'Finish'

An empty tree item appears in Project Explorer view. It appears that specific steps are needed to reproduce this, so I created a screencast as well (see attachments).

I couldn't reproduce this while using Install New Software wizard to install JDT, so I'm also attaching a set-up script to install JDT.


My configuration:
Eclipse Platform 4.19 (I20210214-1800)
org.eclipse.jdt.feature.group 3.18.700.v20210214-1800

Quick workaround:
  * collapse and expand 'src' node
Comment 1 Martin Coufal CLA 2021-02-17 13:33:14 EST
Created attachment 285582 [details]
workspace log
Comment 2 Martin Coufal CLA 2021-02-17 13:33:45 EST
Created attachment 285583 [details]
screencast