raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.42k stars 3.12k forks source link

[Espanso] Espanso Command Not Found #13398

Open acicovic opened 4 months ago

acicovic commented 4 months ago

Extension

https://www.raycast.com/kud/espanso

Raycast Version

1.78.1

macOS Version

14.5

Description

I've been using Espanso and today I installed the extension. My installation has been done using brew, and typing espanso in the command line works, expansions work, and everything else works.

However, when I try to search matches using the extension, I'm getting a "Espanso Command Not Found" error, with instructions on how to install Espanso.

Maybe some missing permission?

Steps To Reproduce

  1. Invoke Raycast
  2. Select "Search Matches" command.

Current Behaviour

Displays the aforementioned error.

Expected Behaviour

List the available matches.

raycastbot commented 4 months ago

Thank you for opening this issue!

🔔 @kud @nbbaier you might want to have a look.

💡 Author and Contributors commands The author and contributors of `kud/espanso` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
kud commented 4 months ago

@acicovic Thank you for your feedback! Could you please run the following commands and share the output with us? This will help us diagnose the issue more effectively.

  1. Check the version of Node.js:

    node --version
  2. Check the version of Espanso:

    espanso --version
  3. Display the Espanso configuration path:

    espanso path config
  4. Display the directory structure of the Espanso configuration path up to 10 levels deep:

    tree -L 10 "$(espanso path config)"

Thank you for your cooperation!

acicovic commented 4 months ago

Hi! Here you are:

❯ node --version
v20.11.0
❯ espanso --version
espanso 2.2.1
❯ espanso path config
/Users/redacted/Library/Application Support/espanso
❯ tree -L 10 "$(espanso path config)"
/Users/redacted/Library/Application Support/espanso
├── config
│   └── default.yml
└── match
    ├── base.yml
    └── packages

4 directories, 2 files

I've also tried after a reboot just in case, but getting the same behavior.

kud commented 4 months ago

If there is no sensitive data, would you mind uploading your config? I'm also in the Raycast community on Slack if needed.

kud commented 4 months ago

@raycastbot assign me

acicovic commented 4 months ago

Sorry for the delay, I had no time to get back to this so far. It's on my todo list though.

kud commented 4 months ago

@acicovic Sure thing. 😌

acicovic commented 4 months ago

Hello!

I tried to export only the basic settings, and this results in a humongous file that won't be easy to be audited for sensitive data. Including the additional settings will probably complicate things even more.

However, since I'm able to extract the config to JSON files and open them, maybe you're after specific settings that I can share with you? Or if you're after a specific file that's smaller, maybe I can do something about it.

I understand the easiest path for you would be to import the whole thing and test, but it seems difficult to me to share the whole config as things stand.

Thank you!

erics118 commented 3 months ago

What's the output of espanso path?

acicovic commented 3 months ago
Config: /Users/redacted/Library/Application Support/espanso
Packages: /Users/redacted/Library/Application Support/espanso/match/packages
Runtime: /Users/redacted/Library/Caches/espanso
erics118 commented 3 months ago

What about which espanso? How was espanso installed? Was it via brew or a different method?

acicovic commented 3 months ago

Espanso was installed via brew.

❯ which espanso
/opt/homebrew/bin/espanso
kud commented 3 months ago

@acicovic Could you try moving the package folder somewhere else and try again?

acicovic commented 3 months ago

@kud, thanks for your suggestion.

Unfortunately I don't feel confident to experiment with that. As I'm using the Espanso Search bar now, my need isn't so great either (though I'd love to use this through Raycast). It's obvious that what happens to me is an edge case. As it stands, I don't think it's worth investing much of your time in this.

Feel free to close this issue or keep it open in case someone who stumbles upon this can be of more help than I have.

kud commented 3 months ago

Sadly I think I won't be able to do that much with no more information. :/

acicovic commented 3 months ago

I know. It's not your fault.

erics118 commented 3 months ago

I've created a PR which might be able to fix your issue. See #13977. Could you test it out and see it works?

acicovic commented 3 months ago

Hey @erics118, thank you for your time and effort!

I'll definitely give this a try when it gets merged.

Thank you!

raycastbot commented 1 month ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

kud commented 1 month ago

@acicovic Do you still have the issue?

acicovic commented 1 month ago

Hey, I'll get back to this ASAP, probably tomorrow.

acicovic commented 1 month ago

Yes, issue is still here.

raycastbot commented 2 days ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

kud commented 1 day ago

Okay let me check the PR then where you will be able to provide the right path of the cli.