Hammerspoon / Hammerspoon/Spoons

EmmyLua: many reloads when FileWatcher is defined before

Open
#276 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
567
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### What i see

when EmmyLua is defined after a FileWatcher is defined then writing files while creating the annotations trigger a reload.

### What i expect

no multiple reloads

### Possible solutions

short term easy solution:
- add info in description that the EmmyLua should created before any FileWatcher checking it lua files are changed or created

long term:
- look for active FileWatcher and disable them - but this can have sideeffects
- change the init to a start and add a parameter for filewatchers to disable

but i would stick to the easy solution now.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.