Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
i-make-robots opened this issue Aug 23, 2019 · 1 comment
Labels
Type: Duplicate Another item already exists for this topic

Comments

@i-make-robots
Copy link

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!

@per1234
Copy link
Collaborator

per1234 commented Aug 23, 2019

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.

@per1234 per1234 closed this as completed Aug 23, 2019
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants