Bug 291286 - [navigation] Go To Last Edit Position tries to open non-existing resource
Summary: [navigation] Go To Last Edit Position tries to open non-existing resource
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday, helpwanted, investigate
Depends on:
Blocks:
 
Reported: 2009-10-04 01:47 EDT by Elias Volanakis CLA
Modified: 2020-07-20 19:59 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Volanakis CLA 2009-10-04 01:47:30 EDT
The command 'org.eclipse.ui.edit.text.gotoLastEditPosition' will try to open a non-existing resource in some circumastances.

To reproduce:

1. Open Foo.java
2. Edit, Save, Close
3. Rename Foo.java to Bar.java
4. Hit: Go to last edit location in the toolbar

Actual: a 'placebo' editor opens with the message: Resource '/.../Foo.java' does not exist.
Expected: Go to last edit location is disabled
Comment 1 Paul Webster CLA 2009-10-05 07:53:52 EDT
Dani, is this something where the platform should contribute a participant to the move refactoring and update our history?

PW
Comment 2 Dani Megert CLA 2009-10-05 08:03:13 EDT
I guess a simple resource listener would also do the trick.
Comment 3 Elias Volanakis CLA 2009-10-05 17:24:09 EDT
FWIW: rename is not the only way to cause this. It can also be reproduced by closing the project which contains the file and then hitting Go to last edit.
Comment 4 Karl Trygve Kalleberg CLA 2012-12-19 06:24:57 EST
Any progress on this? It seems to affect 4.2 as well.
Comment 5 Dani Megert CLA 2012-12-19 06:31:18 EST
(In reply to comment #4)
> Any progress on this? It seems to affect 4.2 as well.

Yes, the bug is not fixed and therefore appears in 4.2. There are no resources to work on this, but help is welcome.
Comment 6 Eclipse Genie CLA 2015-04-18 22:03:08 EDT
New Gerrit change created: https://git.eclipse.org/r/46024
Comment 7 Vikas Chandra CLA 2017-06-16 06:14:47 EDT
Apart from the dependency issue, with the gerrit patch 46024 "Go To Last Edit Position" is disabled but "Back to file name" is still enabled and it opens a placebo editor ( with message that the file doesn't exist).
Comment 8 Eclipse Genie CLA 2020-07-20 19:59:59 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.