Skip to content
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

wxEVT_FILE_MODIFIED_EXTERNALLY Not Firing When Expected #3596

Open
Havoc7891 opened this issue Mar 3, 2025 · 0 comments
Open

wxEVT_FILE_MODIFIED_EXTERNALLY Not Firing When Expected #3596

Havoc7891 opened this issue Mar 3, 2025 · 0 comments

Comments

@Havoc7891
Copy link

Description

I'm developing a CodeLite plugin called havGSD. This plugin provides a built-in task list directly within CodeLite, making it easier to track TODOs and other notes in C++ projects. While CodeLite allows searching for keywords in code comments via the Find in Files dialog, I wanted a more integrated solution that doesn't rely on search.

One feature I still want to add is reloading the task list when a file is modified externally (e.g. edited in another text editor outside CodeLite). I expected to use wxEVT_FILE_MODIFIED_EXTERNALLY for this purpose, but the event doesn't fire when I click the "Reload" button in the prompt to reload the file.

Expected Behavior

The wxEVT_FILE_MODIFIED_EXTERNALLY event should trigger when a file is modified externally, allowing my plugin to update accordingly.

Observed Behavior

The event doesn't appear to fire when I confirm that I want to reload the file in CodeLite after an external modification.

Steps to Reproduce

I'm not certain under what exact conditions wxEVT_FILE_MODIFIED_EXTERNALLY is supposed to fire, but here's what I have tried:

  1. Opened a file in CodeLite.
  2. Modified the same file using an external text editor.
  3. Switched back to CodeLite, which prompts to reload the file.
  4. Clicked "Reload" in the prompt.
  5. The wxEVT_FILE_MODIFIED_EXTERNALLY event didn't fire (or at least didn't trigger my handler).

Questions

  • Am I using the correct event for detecting external file modifications?
  • Under what conditions is wxEVT_FILE_MODIFIED_EXTERNALLY expected to fire?
  • Could this be a bug, or is there another recommended approach?

Any insights or guidance would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant