PreviousNextTracker indexSee it online !

(148/211) 3857 - Duplicate buffer created after click on hypersearch result (symlinks)

Version : 5.1.0 (this issue has been there in most previous versions)
Platform : Linux
Java version : jdk1.7.0_25-32 (this issue has been there in most previous versions)
Issue: jEdit opens the currently editing file in a new buffer.

How to reproduce:
Open a link (symbolic link) to a text file. It looks fine. Update something once.
Now remove the link, and recreate the link (with the same name) to a different text file.
Try updating and then find something in the open buffer. jEdit opens a duplicate buffer !

Submitted jjwardan - 2014-04-21 20:28:12.349000 Assigned
Priority 5 Labels Symbolic Links Linux Search and Replace
Status open Group severe bug
Resolution None

Comments

2014-04-22 06:28:57.200000
ezust

What does "update something" mean? Make a change to something in the buffer?
If so, then I am unable to reproduce.

And do you save the buffer to disk after making a change, or leave it dirty?

After changing the symlink, I go back into jEdit and it either reloads the file automatically or warns me depending on what my general options are for "if open files are changed on disk:". And if it's dirty, then it says "file dirty - not reloaded".

I am unable to see a duplicate buffer.


Your version of JDK is kinda old. You might want to update to a later one.
I am testing with 1.7.0_51.





2014-04-22 07:46:37.881000
jjwardan

Hi,
First time save is not required. You can even revert all changes.
Duplicate buffer appears after doing all the steps you mentioned. Try
searching.

On the options for reloading - I've tried all the options. This problem is
reproducible in all cases.

Thanks & regards,
J. Jayawardan
On Apr 21, 2014 11:28 PM, "Alan Ezust" <ezust@users.sf.net> wrote:

> What does "update something" mean? Make a change to something in the
> buffer?
> If so, then I am unable to reproduce.
>
> And do you save the buffer to disk after making a change, or leave it
> dirty?
>
> After changing the symlink, I go back into jEdit and it either reloads the
> file automatically or warns me depending on what my general options are for
> "if open files are changed on disk:". And if it's dirty, then it says "file
> dirty - not reloaded".
>
> I am unable to see a duplicate buffer.
>
> Your version of JDK is kinda old. You might want to update to a later one.
> I am testing with 1.7.0_51.
> ------------------------------
>
> * [bugs:#3857] <http://sourceforge.net/p/jedit/bugs/3857/> Duplicate
> buffer*
>
> *Status:* open
> *Group:* severe bug
> *Created:* Mon Apr 21, 2014 08:28 PM UTC by Jayawardan
> *Last Updated:* Mon Apr 21, 2014 08:28 PM UTC
> *Owner:* nobody
>
> Version : 5.1.0 (this issue has been there in most previous versions)
> Platform : Linux
> Java version : jdk1.7.0_25-32 (this issue has been there in most previous
> versions)
> Issue: jEdit opens the currently editing file in a new buffer.
>
> How to reproduce:
> Open a link (symbolic link) to a text file. It looks fine. Update
> something once.
> Now remove the link, and recreate the link (with the same name) to a
> different text file.
> Try updating and then find something in the open buffer. jEdit opens a
> duplicate buffer !
> ------------------------------
>
> Sent from sourceforge.net because you indicated interest in
> https://sourceforge.net/p/jedit/bugs/3857/
>
> To unsubscribe from further messages, please visit
> https://sourceforge.net/auth/subscriptions/
>

alternate (2.6Kio)

2014-04-22 16:52:08.434000
ezust

- **labels**: --> Hypersearch, Symbolic Links, Linux
- **summary**: Duplicate buffer --> Hypersearch pane: Duplicate buffer created after click on search result (symlinks)
- **status**: pending-works-for-me --> open

2014-04-22 16:55:31.504000
jjwardan

Well almost correct. File status does detect the changed status and also
updates the contents of the buffer.
Till now it's good. You can even start editing -it's still good.
Only when you start searching, it creates a duplicate buffer. Yes with the
same path. Well same contents, until you start editing one of them, then
the other buffer is outdated.
I'll try if I can reproduce it with -noplugins.

Thank you so much for looking into this, i've had this issue for a long
time till I figured this bug tracker link.

Regards.
On Apr 22, 2014 9:47 AM, "Alan Ezust" <ezust@users.sf.net> wrote:

> So if I understand you correctly, you are saying that
> The file status check fails to detect changes if the
> buffer is dirty while you are removing the symlink and then linking it to
> someplace else?
> And after saving that dirty buffer, a duplicate buffer is created?
> And both buffers have the same absolute path?
> Can you reproduce this when running jedit -noplugins ?
> ------------------------------
>
> * [bugs:#3857] <http://sourceforge.net/p/jedit/bugs/3857/> Duplicate
> buffer*
>
> *Status:* pending-works-for-me
> *Group:* severe bug
> *Created:* Mon Apr 21, 2014 08:28 PM UTC by Jayawardan
> *Last Updated:* Tue Apr 22, 2014 06:29 AM UTC
> *Owner:* nobody
>
> Version : 5.1.0 (this issue has been there in most previous versions)
> Platform : Linux
> Java version : jdk1.7.0_25-32 (this issue has been there in most previous
> versions)
> Issue: jEdit opens the currently editing file in a new buffer.
>
> How to reproduce:
> Open a link (symbolic link) to a text file. It looks fine. Update
> something once.
> Now remove the link, and recreate the link (with the same name) to a
> different text file.
> Try updating and then find something in the open buffer. jEdit opens a
> duplicate buffer !
> ------------------------------
>
> Sent from sourceforge.net because you indicated interest in
> https://sourceforge.net/p/jedit/bugs/3857/
>
> To unsubscribe from further messages, please visit
> https://sourceforge.net/auth/subscriptions/
>

alternate (2.6Kio)

2014-04-22 16:58:54.255000
ezust

Aha, I reproduced it.
You must do a hypersearch on the file after this,
and I see the duplicate buffer created when I click on something in the hypersearch results pane.

2014-04-22 17:08:17.242000
jjwardan

Well I had not used hyper search. I had used the incremental search line.
But as long as you are able to reproduce it, great : )
On Apr 22, 2014 9:58 AM, "Alan Ezust" <ezust@users.sf.net> wrote:

> Aha, I reproduced it.
> You must do a hypersearch on the file after this,
> and I see the duplicate buffer created when I click on something in the
> hypersearch results pane.
> ------------------------------
>
> * [bugs:#3857] <http://sourceforge.net/p/jedit/bugs/3857/> Hypersearch
> pane: Duplicate buffer created after click on search result (symlinks)*
>
> *Status:* open
> *Group:* severe bug
> *Labels:* Hypersearch Symbolic Links Linux
> *Created:* Mon Apr 21, 2014 08:28 PM UTC by Jayawardan
> *Last Updated:* Tue Apr 22, 2014 04:52 PM UTC
> *Owner:* nobody
>
> Version : 5.1.0 (this issue has been there in most previous versions)
> Platform : Linux
> Java version : jdk1.7.0_25-32 (this issue has been there in most previous
> versions)
> Issue: jEdit opens the currently editing file in a new buffer.
>
> How to reproduce:
> Open a link (symbolic link) to a text file. It looks fine. Update
> something once.
> Now remove the link, and recreate the link (with the same name) to a
> different text file.
> Try updating and then find something in the open buffer. jEdit opens a
> duplicate buffer !
> ------------------------------
>
> Sent from sourceforge.net because you indicated interest in
> https://sourceforge.net/p/jedit/bugs/3857/
>
> To unsubscribe from further messages, please visit
> https://sourceforge.net/auth/subscriptions/
>

alternate (2.1Kio)

2014-04-22 17:10:54.988000
ezust

- **labels**: Hypersearch, Symbolic Links, Linux --> Symbolic Links, Linux, Search and Replace
- **summary**: Hypersearch pane: Duplicate buffer created after click on search result (symlinks) --> Duplicate buffer created after click on hypersearch result (symlinks)