My script commands is occasionally missing
JasonBoy opened this issue · comments
Ok, we will look into it, but it might take a while to report back (half of the team is on holidays).
Hi @JasonBoy,
We have been looking into this issue and we believe we know the problem. We are working on a fix and we will probably release something soon.
Thank you for reporting.
thanks, one more thing I found is that sometime later, the Cloud Sync
is turned off after putting the mac back from sleeping(maybe after a new minor version installation, which is the last time it occurred)
Thanks for the bug report - we've had a few users report the same thing. We're going to release an update today which should improve initialization of Cloud Sync. We've also added additional logging to help diagnose the problem if it occurs again.
Regarding the script commands issue we're still investigating this.
@JasonBoy the only way I've managed to reproduce this is as follows:
- Mac A: Adds a Script Commands directory which does not exist on Mac B
- Mac B: The Script Commands directories setting is synced. But because the directory added in step 1 does not exist Raycast cannot monitor the directory for changes.
- Mac B: The directory is created (either by the user, or synced by the cloud storage service). However the scripts are not detected by Raycast because it is not monitoring the directory from step 2.
- The only way to reload the scripts is to a) restart Raycast or b) remove and re-add the directory on Mac B
Do you think this might explain the missing scripts in your case? We should be able to fix this by monitoring a parent directory at step 2. Currently if a Script Commands directory does not exist it just gets ignored as described.
If instead I add a Script Commands directory which exists on both Macs, then the scripts are always detected as expected. Even if they need to be downloaded from cloud storage.
@nhojb yes thanks, that might explain the case,
regarding the solution in step 4 a), Raycast may already restarted several times because of the updates, in which case the "missing scripts" case still occurs, maybe the latest fix update may solve this, I will update and check if it still occurs 😄
If the issue does occur again then could you grab some logs.
- Run this command in the Terminal:
log stream --predicate "subsystem == 'com.raycast.macos'" --level debug --style compact >> ~/Desktop/ray.$(date +%Y%m%d_%H%M%S).log
- Run the
Reload Script Directories
command - Send the log to john at raycast.com
I will be closing this for now, but please feel free to open it if there are new information.
Whenever I restart my laptop my script commands are also missing. I need to remove the directory and re-add it for the script commands to appear again. I don't have the Pro subscription.
@simonkotwicz what is the path to the directory you are using for script commands? Is it a cloud storage location (iCloud Drive, Dropbox etc)?
@nhojb yes it is, I meant to mention that. Is there already an issue open for this somewhere?
Which service are you using? I'm guessing the path is either ~/Documents/...
(for iCloud Drive) or ~/Library/CloudStorage/...
for Dropbox, OneDrive etc?
@nhojb yes ~/Library/CloudStorage/...
for Dropbox
@nhojb was this never fixed?