notify icon indicating copy to clipboard operation
notify copied to clipboard

Rename event notification RenameMode error

Open Skyxim opened this issue 3 years ago • 6 comments

System details

  • OS/Platform name and version: macOS Monterey 12.2
  • Rust version (if building from source): rustc --version: rustc 1.58.1 (db9d1b20b 2022-01-20)
  • Notify version (or commit hash if building from git): 5.0.0-pre.13
  • If you're coming from a project that makes use of Notify, what it is, and a link to the downstream issue if there is one:
  • Filesystem type and options:
  • On Linux: Kernel version:
  • On Windows: version and if you're running under Windows, Cygwin (unsupported), Linux Subsystem:
  • If you're running as a privileged user (root, System):
  • If you're running in a container, details on the runtime and overlay:
  • If you're running in a VM, details on the hypervisor:

What you did (as detailed as you can)

When I run the example, when the folder or file name is modified, I receive two notifications normally, but the RenameMode of both notifications is Form.

What you expected

second notify should be To

What happened

image

Skyxim avatar Feb 05 '22 11:02 Skyxim

Hello, do you have any plan to fix this issue? I've also encountered this problem recently. :) @0xpr03

lulujun2233 avatar May 11 '22 09:05 lulujun2233

I can't debug this as I don't own any mac systems. If someone wants to take this issue I could help guiding through the code.

0xpr03 avatar May 11 '22 18:05 0xpr03

@0xpr03 is this issue still open, I can help for testing that, just tell me what to do.

dhiemaz avatar May 13 '22 17:05 dhiemaz

@dhiemaz first of all reproducing the mentioned bug would be nice, then you could try to figure out if we've got an logic error inside fsevent by tracing through the code there when reproducing the error

Note that the report is for pre.13, an older version, so you could also test is if that's still true on pre.15 (very likely). Also we've changed a lot regarding the cross BSD-macos backend (kqueue), so maybe with the feature flag macos_kqueue source that's different.

0xpr03 avatar May 13 '22 18:05 0xpr03

@Skyxim did you use the default features or did you specify another backend ? (see above)

0xpr03 avatar May 13 '22 19:05 0xpr03

o

default feature, this is a demo

Skyxim avatar May 14 '22 01:05 Skyxim