How do I release the lock for script files to reload them? #1228
Unanswered
timlindnet
asked this question in
Q&A
Replies: 1 comment 5 replies
-
@timlindnet Are you on mac/windows/linux? I don't think Kit would be locking them for any reason. Kit uses "chokidar" to watch the scripts directory, but that's all. Any chance they're open in an editor that might be locking them? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am syncing scripts from a remote server, all working fine to replace the local ones, but after it I get:
EBUSY: resource busy or locked, open
First I clean the scripts folder, then I pull the new files, one await exec() for each
It works, but I find it that it would be better to have a way to cleanly tell kit to unload a set of kenv-scripts on the run before the sync and then load them after. Any idea for this?
I've tried the hide-examples version (altering KIT_EXCLUDE_KENVS w. writeFile run, main..) with no luck.
Beta Was this translation helpful? Give feedback.
All reactions