Bug 571264 - Blank tree items in Project Explorer
Summary: Blank tree items in Project Explorer
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.19   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-17 13:32 EST by Martin Coufal CLA
Modified: 2021-02-17 13:33 EST (History)
0 users

See Also:


Attachments
Setup script (destructive, run with caution!) (578 bytes, application/x-shellscript)
2021-02-17 13:32 EST, Martin Coufal CLA
no flags Details
workspace log (696 bytes, text/plain)
2021-02-17 13:33 EST, Martin Coufal CLA
no flags Details
screencast (1.23 MB, video/webm)
2021-02-17 13:33 EST, Martin Coufal CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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