native-platform icon indicating copy to clipboard operation
native-platform copied to clipboard

Java bindings for various native APIs

Results 46 native-platform issues
Sort by recently updated
recently updated
newest added

When running the `test` task on `master` (ca15a6581ba2e91ef72510032604a653c783c2f6), the following output occurs: ``` 2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 52 (/private/var/folders/y8/lns4s7jn3jldwky0nm3dmx9m0000gn/T; Bad file...

Linux has `strerror()`, Windows has `FormatMessage` (see [here](https://docs.microsoft.com/en-us/windows/win32/debug/retrieving-the-last-error-code?redirectedfrom=MSDN)). We should use these to turn error codes into strings when constructing our exceptions.

We currently only produce a debug variant of the file-watcher native library. Perhaps we'll never use a release version in `gradle/gradle`, but testing the native code without the handholding of...

Linux sends the `0x800` event (`IN_MOVE_SELF`), when renaming a watched directory. Currently, we treat that event as an unknown event. We could handle it as well as `REMOVED`/`CREATED`. See this...

a:performance-issue

The PR https://github.com/gradle/native-platform/pull/37 switched from using `GetFileAttributesExW` to `GetFileInformationByHandle` for symlink support. This seems to be much slower. The same issue seems to have appeared in Visual Studio: https://github.com/Microsoft/msbuild/issues/2052 There,...

a:performance-issue

From `FSEvents.h`: > ```cpp > /* > * Affects the meaning of the latency parameter. If you specify this > * flag and more than latency seconds have elapsed since...

Instead of `FileWatcher.startWatching()` / `stopWatching()` we could also have an API to `updateWatching()` that would simply overwrite the set of watched directories. Say, we are currently watching `["/usr/local", "/usr/bin"]` and...

The native libraries we currently ship for file-events are very large, especially compared to the rest of the code. Some ideas to reduce the size: - remove debug symbols (see...

Follow-up after #188. We should test if things work with WSL2. We need CI infra to be upgraded to Windows 10 / 2004 or later first. https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2 In case we...