#3857 Duplicate buffer created after click on hypersearch result (symlinks)

severe bug
open
nobody
5
2014-04-22
2014-04-21
Jayawardan
No

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 !

Related

Bugs: #3857

Discussion

  • Alan Ezust
    Alan Ezust
    2014-04-22

    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.

     
    • Jayawardan
      Jayawardan
      2014-04-22

      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.


      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/

       

      Related

      Bugs: #3857

      Attachments
  • Jayawardan
    Jayawardan
    2014-04-22

    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 ?


    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/

     

    Related

    Bugs: #3857

    Attachments
  • Alan Ezust
    Alan Ezust
    2014-04-22

    • 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
     
  • Alan Ezust
    Alan Ezust
    2014-04-22

    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.

     
    • Jayawardan
      Jayawardan
      2014-04-22

      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.


      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/

       

      Related

      Bugs: #3857

      Attachments
  • Alan Ezust
    Alan Ezust
    2014-04-22

    • 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)