apache / apache/grails-core

Native OSX File Event Watcher does not load on Apple Silicon (Grails 6.1.2)

Open
#13,469 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Expected Behavior

Native File Event Watcher loads with start of application OOTB on Apple Silicion

### Actual Behaviour

org.grails.io.watch.DirectoryWatcher : Error Initializing Native OS X File Event Watcher. Add JNA to classpath for Faster File Watching performance.

### Steps To Reproduce

Create a Grails 6.1.2 application on Forge and start on Apple Silicon. Error occurs.

Workaround:

`providedRuntime 'io.methvin:directory-watcher:0.18.0'`

### Environment Information

macOS Sonoma 14.4.1, Java 17, Intellij IDEA 2024.1

### Example Application

_No response_

### Version

6.1.2

Contributor guide

Open the contributing guide

Research direction

Start by reproducing application startup for a Grails 6.1.2 application on Apple Silicon using the reported macOS, Java 17, and directory-watcher workaround. Trace the org.grails.io.watch.DirectoryWatcher initialization and compare behavior with and without the providedRuntime dependency. Done means the native OS X File Event Watcher loads during startup without the reported JNA warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java, macos
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.