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

Fix need to save twice to trigger watch on OSX using Neovim #300

Commits on Jan 29, 2023

  1. Fix need to save twice to trigger watch

    On OSX (12.6.2) using Neovim (NVIM v0.8.2) the triggering event varies
    between `fsnotify.Rename` and `Create`.
    This fix adds `fsnotify.Rename` to the events triggering a new test run.
    
    *Before*
    ```
    handling event "cors_middleware.go": RENAME
    handling event "cors_middleware.go": CREATE
    
    Running tests in ./.
    exec: [go test -json ./.]
    go test pid: 96495
    ✓  . (cached)
    
    DONE 71 tests in 0.237s
    ```
    
    *After*
    ```
    handling event "cors_middleware.go": RENAME
    
    Running tests in ./.
    exec: [go test -json ./.]
    go test pid: 95707
    ✓  . (cached)
    
    DONE 71 tests in 0.245s
    ```
    andersjanmyr committed Jan 29, 2023
    Configuration menu
    Copy the full SHA
    f5beb55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50971a6 View commit details
    Browse the repository at this point in the history