extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Espanso] Espanso Command Not Found

Open acicovic opened this issue 1 year ago • 3 comments

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.

acicovic avatar Jul 09 '24 18:07 acicovic

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.

raycastbot avatar Jul 09 '24 18:07 raycastbot

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

kud avatar Jul 09 '24 19:07 kud

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.

acicovic avatar Jul 10 '24 12:07 acicovic

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

kud avatar Jul 11 '24 11:07 kud

@raycastbot assign me

kud avatar Jul 11 '24 11:07 kud

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

acicovic avatar Jul 19 '24 07:07 acicovic

@acicovic Sure thing. 😌

kud avatar Jul 19 '24 10:07 kud

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!

acicovic avatar Jul 20 '24 08:07 acicovic

What's the output of espanso path?

erics118 avatar Jul 31 '24 13:07 erics118

Config: /Users/redacted/Library/Application Support/espanso
Packages: /Users/redacted/Library/Application Support/espanso/match/packages
Runtime: /Users/redacted/Library/Caches/espanso

acicovic avatar Aug 07 '24 05:08 acicovic

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

erics118 avatar Aug 07 '24 18:08 erics118

Espanso was installed via brew.

❯ which espanso
/opt/homebrew/bin/espanso

acicovic avatar Aug 08 '24 06:08 acicovic

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

kud avatar Aug 08 '24 14:08 kud

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

acicovic avatar Aug 08 '24 18:08 acicovic

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

kud avatar Aug 09 '24 11:08 kud

I know. It's not your fault.

acicovic avatar Aug 09 '24 11:08 acicovic

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

erics118 avatar Aug 12 '24 03:08 erics118

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

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

Thank you!

acicovic avatar Aug 12 '24 17:08 acicovic

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 😊

raycastbot avatar Oct 01 '24 18:10 raycastbot

@acicovic Do you still have the issue?

kud avatar Oct 02 '24 16:10 kud

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

acicovic avatar Oct 04 '24 13:10 acicovic

Yes, issue is still here.

acicovic avatar Oct 05 '24 11:10 acicovic

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 😊

raycastbot avatar Nov 24 '24 16:11 raycastbot

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

kud avatar Nov 25 '24 14:11 kud

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 😊

raycastbot avatar Jan 14 '25 15:01 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

raycastbot avatar Jan 24 '25 15:01 raycastbot