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

Watching file changes with java.nio.file.WatchEvent does not work on recent MacOS versions #533

Open
mkjsix opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels

Comments

@mkjsix
Copy link
Member

mkjsix commented Nov 26, 2024

When using Graalvm RESTHeart allows for hot reloading of Javascript files in the plugins folder. However this works fine with all OS except for MacOS 15 Sequoia. Tested successfully with Linux, Windows 10 and MacOS 12.

To Reproduce

Steps to reproduce the behavior:

  1. build with mvn clean package
  2. copy the examples javascript plugins cp -r examples/js-plugin core/target/plugins
  3. start RESTHeart with Graalvm java -jar core/target/restheart.jar -s
  4. edit one of the javascript files in core/target/plugins/js-plugin
  5. Nothing happens, file is not reloaded

Expected behavior

The javascript plugin should be reloaded and related logs must appear

Additional context

Tested with RESTHeart 8.1.1, 8.1.6 and building from master branch commit 1f46adb42.

The file watching mechanism is implemented in class org.restheart.utils.DirectoryWatcher

@mkjsix mkjsix added the bug label Nov 26, 2024
@mkjsix mkjsix self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant