Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Link Text editor and Project Explorer doesn't work in some cases(Link Text editor and Project Explorer doesn't work in some cases - when open from Search result view)
Link Text editor and Project Explorer doesn't work in some cases [message #1852910] Fri, 10 June 2022 12:20 Go to next message
Pavol Sestak is currently offline Pavol SestakFriend
Messages: 5
Registered: September 2013
Junior Member
Here is simple scenario how to reproduce it:
Let's have some java project and in it somewhere in directories have some jasper template file (*.jrxml). When invoke search: menu Search->File...
put on File Search tab some text to search that I know is definitely in some jrxml files in my project and file name pattern set to *.jrxml.
Then in search result in Search view on right click in context menu choose "Open with -> Text editor" , not system editor - just simple text editor in Eclipse.
And that's it - link between text editor and Project Explorer view doesn't work.
Of course toggle button "Link with Editor" is on.
BUT! when the very same file is open through right click on context menu in Project Explorer view then the Editor<->Project Explorer link works.
The point is opening the file from the results in Search view. Then the link Editor<->Project Explorer doesn't work.

The same problem discovered when opening file via dialog Open Resource:
Ctrl-Shift-R, then type the resource name we are looking for, e.g. *.jrxml.
Then in this Open Resource dialog clicked on bottom button
Open With -> Text Editor.
File is open in text editor, but the link Editor<->Project Explorer doesn't work.
Seems line the link works only when the originator of open file command is
Project Explorer or Package Explorer. When the originator is Search view or Open Resource dialog, link doesn't work.

Tested on
Version: 2021-12 (4.22.0)
Build id: 20211202-1639.

[Updated on: Fri, 10 June 2022 12:33]

Report message to a moderator

Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862836 is a reply to message #1852910] Sun, 31 December 2023 17:34 Go to previous messageGo to next message
ecdragon Mising name is currently offline ecdragon Mising nameFriend
Messages: 5
Registered: July 2010
Junior Member
I am seeing this issue as well! With versions 2023-09 and 2023-12 at least.
Seems that whenever I do a "refresh" on a project in Project Explorer, it loses all links to open editors. Same with the "Collapse All" button in Project Explorer.
A link from PE to the open file in editor can be re-established by just finding the file in PE and double-clicking it, even if it's open already and in focus. You can then navigate around and it'll keep focus on it when going back to that file in the editor.
Once the link between open file editor and that file in PE is broken, there's no way to get it back except as above (find file in PE and open from there again). I tried toggling the "Link with Editor" button, and using the "Show in -> Project Explorer", which can be found in the menu and in breadcrumbs menu...
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862839 is a reply to message #1862836] Mon, 01 January 2024 10:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33224
Registered: July 2009
Senior Member
I can't reproduce such a problem. I suggest opening an issue with the exact steps needed to reproduce the problem:

https://github.com/eclipse-platform/eclipse.platform.ui/issues


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862843 is a reply to message #1862839] Mon, 01 January 2024 17:55 Go to previous messageGo to next message
ecdragon Mising name is currently offline ecdragon Mising nameFriend
Messages: 5
Registered: July 2010
Junior Member
Thanks for the quick response Ed!

I'm pretty sure I figured it out... it's the PyDev plugin that's interfering!

I'm starting with JEE base... then I do a bunch of customizations, checking after each one... and right after I added PyDev just now, it triggered it.

I'm going to do another fresh copy of JEE and just add PyDev and see if it triggers it.

Cheers!
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862844 is a reply to message #1862843] Mon, 01 January 2024 18:27 Go to previous messageGo to next message
ecdragon Mising name is currently offline ecdragon Mising nameFriend
Messages: 5
Registered: July 2010
Junior Member
Also it's worth noting I'm on an M1 Mac.

...just did another test. Fresh JEE, installed ONLY PyDev, restarted.

Created DynamicWebProject.
Created some folders at top-level of project.
Created text files in those folders.

At this point, linking still works fine for those text files!

Created a Java package
Created a Java class in that package.

Now, linking is broken with Java class files.
But linking is still working with text files!

[Updated on: Mon, 01 January 2024 18:48]

Report message to a moderator

Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862845 is a reply to message #1862844] Mon, 01 January 2024 18:49 Go to previous messageGo to next message
ecdragon Mising name is currently offline ecdragon Mising nameFriend
Messages: 5
Registered: July 2010
Junior Member
Now I'm wondering it uninstalling PyDev from an Eclipse installation will re-enable Java class file linking.

Glorious!! Yes uninstalling PyDev fixes linking of Java files. Glad I figured it out.

Looks like Fabian is the lead for that plugin... What's the best way to let him / them know?

[Updated on: Mon, 01 January 2024 20:52]

Report message to a moderator

Re: Link Text editor and Project Explorer doesn't work in some cases [message #1862848 is a reply to message #1862845] Tue, 02 January 2024 09:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33224
Registered: July 2009
Senior Member
I can only point you at. I know each time I tried to find a support link there is takes me a long time to find it again...

https://www.pydev.org/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1866393 is a reply to message #1862848] Tue, 28 May 2024 18:44 Go to previous messageGo to next message
Philip Hachey is currently offline Philip HacheyFriend
Messages: 2
Registered: July 2019
Junior Member
I ran into this problem using Eclipse 2024-03 and PyDev for Eclipse 12.1.0.
I can confirm that removing PyDev for Eclipse fixes it and "link with editor" is working again.
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1866399 is a reply to message #1866393] Tue, 28 May 2024 19:49 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4493
Registered: July 2009
Senior Member

Philip Hachey wrote on Tue, 28 May 2024 14:44
I ran into this problem using Eclipse 2024-03 and PyDev for Eclipse 12.1.0.
I can confirm that removing PyDev for Eclipse fixes it and "link with editor" is working again.

Sounds like a bug to report to PyDev. It affected more than just their python editor?


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1868058 is a reply to message #1852910] Tue, 09 July 2024 19:59 Go to previous messageGo to next message
Jim Blye is currently offline Jim BlyeFriend
Messages: 1
Registered: July 2024
Junior Member
I don't have pydev, and the linking is not working for me in 2024-03. Well, it seems to link, but it doesn't automatically scroll so that I can see the selected file in Project Explorer. So I have to manually scroll to the selected file.
Re: Link Text editor and Project Explorer doesn't work in some cases [message #1868067 is a reply to message #1868058] Wed, 10 July 2024 08:48 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33224
Registered: July 2009
Senior Member
It works for me on the 2024-06 release on Windows.

If you can reproduce the problem on a basic 4.32 or 4.33 IDE:

https://download.eclipse.org/eclipse/downloads/

you can report the problem here:

https://download.eclipse.org/eclipse/downloads/

https://github.com/eclipse-platform/eclipse.platform.ui/issues

Keep in mind my comment that it's working for me, so the details of how to reproduce the problem are probably significant.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:SSH ONLY Remote System Connection Fails
Next Topic:Where's the marketplace?
Goto Forum:
  


Current Time: Sat Oct 12 15:20:52 GMT 2024

Powered by FUDForum. Page generated in 0.09225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top