Git Product home page Git Product logo

Comments (15)

JasonBoy avatar JasonBoy commented on June 2, 2024 1

@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 😄

from script-commands.

dehesa avatar dehesa commented on June 2, 2024

Hi @JasonBoy, thank you for the report. This is interesting and probably @nhojb would like to know more about it.

Just to be thorough, you do have the Pro subscription and Cloud Sync enabled, right?

from script-commands.

JasonBoy avatar JasonBoy commented on June 2, 2024

@dehesa Yes, I have the Pro subscription and Cloud Sync enabled

from script-commands.

dehesa avatar dehesa commented on June 2, 2024

Ok, we will look into it, but it might take a while to report back (half of the team is on holidays).

from script-commands.

dehesa avatar dehesa commented on June 2, 2024

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.

from script-commands.

JasonBoy avatar JasonBoy commented on June 2, 2024

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)

from script-commands.

nhojb avatar nhojb commented on June 2, 2024

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.

from script-commands.

nhojb avatar nhojb commented on June 2, 2024

@JasonBoy the only way I've managed to reproduce this is as follows:

  1. Mac A: Adds a Script Commands directory which does not exist on Mac B
  2. 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.
  3. 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.
  4. 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.

Screenshot 2023-08-03 at 10 47 44

from script-commands.

nhojb avatar nhojb commented on June 2, 2024

If the issue does occur again then could you grab some logs.

  1. 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
  2. Run the Reload Script Directories command
  3. Send the log to john at raycast.com

from script-commands.

dehesa avatar dehesa commented on June 2, 2024

I will be closing this for now, but please feel free to open it if there are new information.

from script-commands.

simonkotwicz avatar simonkotwicz commented on June 2, 2024

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.

from script-commands.

nhojb avatar nhojb commented on June 2, 2024

@simonkotwicz what is the path to the directory you are using for script commands? Is it a cloud storage location (iCloud Drive, Dropbox etc)?

from script-commands.

simonkotwicz avatar simonkotwicz commented on June 2, 2024

@nhojb yes it is, I meant to mention that. Is there already an issue open for this somewhere?

from script-commands.

nhojb avatar nhojb commented on June 2, 2024

Which service are you using? I'm guessing the path is either ~/Documents/... (for iCloud Drive) or ~/Library/CloudStorage/... for Dropbox, OneDrive etc?

from script-commands.

simonkotwicz avatar simonkotwicz commented on June 2, 2024

@nhojb yes ~/Library/CloudStorage/... for Dropbox

from script-commands.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.