Bug 568762 - Deleting a project after renaming it leads to error
Summary: Deleting a project after renaming it leads to error
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-11-12 09:50 EST by Stoyan Tanchev CLA
Modified: 2020-11-16 06:23 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stoyan Tanchev CLA 2020-11-12 09:50:38 EST
Steps for reproduction:

1) Create a new project named "test"
2) Rename it to "test2"
3) Delete it shortly afterwards, tick the checkbox "Delete project contents on disk"
4) Open the workspace logs under {workspace}/.metadata/.log
5) See there is an error message "Problems occurred refreshing resources"
6) Now create a new project named "test"
7) In the System Explorer, create a file in the project directory
8) The content in the Project Navigator in Eclipse is not updated

Looks like after this bug occurs once during attempted refresh, the workspace native hook does not function for any project with the same name until the next restart.

The error message is logged from class org.eclipse.core.internal.resources.refresh.win32.Win32Monitor
Comment 1 Andrey Loskutov CLA 2020-11-12 10:52:03 EST
(In reply to Stoyan Tanchev from comment #0)
> The error message is logged from class
> org.eclipse.core.internal.resources.refresh.win32.Win32Monitor

Please specify what kind of project is created - Java / C++ / whatever.
Please attach full error log.
Please check if 4.17 works for you.
Please confirm, that Preferences -> General -> Workspace -> "Refresh using native hooks or polling" is enabled.
Comment 2 Stoyan Tanchev CLA 2020-11-16 06:23:03 EST
Please find below the relevant log entry, this is the full information getting logged:

!ENTRY org.eclipse.core.resources 4 1 2020-11-16 12:09:50.539
!MESSAGE Problems occurred refreshing resources
!SUBENTRY 1 org.eclipse.core.resources 4 1 2020-11-16 12:09:50.539
!MESSAGE Problem finding next change, code: 5
ERROR 2020-11-16 12:09:50.542 [Worker-26: Win32 refresh daemon] org.eclipse.equinox.logger - Problems occurred refreshing resources

I created a new general project - File -> New -> Project -> General, seemingly it does not matter what project is created though

Version 4.17 does not work for me, neither does 4.18 M1

I do confirm that Preferences -> General -> Workspace -> "Refresh using native hooks or polling" is enabled