Skip to content

PDE erroneously detects changes in non-sketch files #2759

Closed

Description

@kazimuth

When exporting a sketch, new folders are created, but existing files aren't altered. The PDE pops up the "A file has been modified externally" message anyway.

This is also a problem in python mode, which compiles .py files into .class files in the sketch directory.

Activity

  1. benfry commented on Aug 7, 2014

    @benfry
    Contributor

    @pvrs12 thoughts here?

  2. pvrs12 commented on Aug 8, 2014

    @pvrs12
    Contributor

    I don't have the code in front of me, but for exporting I suspect that the files are created then written to in 2 steps. Code could be added to ignore changes when exporting. For the python compilation I can tell it to ignore .pyc to prevent the popup on python compilation. I can look at it on next Monday

  3. pvrs12 commented on Aug 11, 2014

    @pvrs12
    Contributor

    @kazimuth what OS are you on? Windows?

  4. aengelke commented on Aug 11, 2014

    @aengelke
    Contributor

    @pvrs12 This actually happens on windows for me. Probably only PDE files in the sketch folder should be watched? (I noticed that saving images triggered this, too.)

  5. GKFX commented on Aug 12, 2014

    @GKFX
    Contributor

    @aengelke And .java?

  6. GKFX commented on Aug 12, 2014

    @GKFX
    Contributor

    Also, the message should be change to indicate that less is being watched. "Your code has been ...".

  7. aengelke commented on Aug 12, 2014

    @aengelke
    Contributor

    @GKFX actually, all files that the current mode can open.

  8. GKFX commented on Aug 12, 2014

    @GKFX
    Contributor

    Oh, of course. (I tend to stick to Java Mode myself.)

  9. pvrs12 commented on Aug 13, 2014

    @pvrs12
    Contributor

    I came up with a possible fix for this. It now attempts to detect if the change was in the sketch or not before displaying any dialog. If it was in the sketch then it prompts for a reload. The other case in which it will prompt for a reload (which could cause false positives) is if the file was edited with gedit under linux (this is because of how gedit writes to the files and how the file detection is written in java)

  10. benfry commented on Aug 14, 2015

    @benfry
    Contributor

    The base issue here has been fixed. Anyone having problems with this, please file a new issue with details of what's going on.

  11. github-actions commented on Jun 16, 2021

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  12. locked as resolved and limited conversation to collaborators on Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions