Skip to content

[Feature request] periodically check if open files were touched from outside #9169

Closed
@i-make-robots

Description

@i-make-robots

In Windows 10, most IDEs and text editors will notice that a file was changed by some other application. Arduino is a notable exception.

Test case:

  • use ide to load file from disk
  • touch the file from some other application.

What's expected:

  • "Warning: File has changed on disk. Reload ? [yes]/[no]"
  • if yes, reload file without losing other files (unsaved work in other tabs)

What happens:

  • nothing.

Possible method:

  • repeating 5s timer that watches file last touched time.

Thank you, stay awesome!

Activity

per1234

per1234 commented on Aug 23, 2019

@per1234
Collaborator

I'm going to close this as a duplicate of #4551

Note that there is an existing pull request that will do what you are requesting, except without the prompt:
#6074

Also note that the Arduino IDE does already update according to outside edits if you have File > Preferences > Use External Editor checked. The only limitation is this makes the Arduino IDE's editor window read-only, so you can't edit the sketch using both the external editor and the Arduino IDE.

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

    Type: DuplicateAnother item already exists for this topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [Feature request] periodically check if open files were touched from outside · Issue #9169 · arduino/Arduino