raycast / extensions

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

[Sesh] Not Loading #14249

Closed albertilagan closed 1 week ago

albertilagan commented 2 months ago

Extension

https://www.raycast.com/joshmedeski/sesh

Raycast Version

1.81.2

macOS Version

14.6.1

Description

Unable to load session, I have not tested this on v1 so I'm not sure if this is because i'm on v2 of sesh now.

Screenshot 2024-08-30 at 10 29 30@2x

Error

SyntaxError: Unexpected token 'd', "dotfiles _"... is not valid JSON

    at JSON.parse (<anonymous>)
sesh.ts:19:28

---
16:       if (error || stderr) {
17:         return reject(`Please upgrade to the latest version of the sesh CLI`);
18:       }
19:       const sessions = JSON.parse(stdout);
20:       return resolve(sessions ?? []);
21:     });
22:   });
---

ChildProcess.exithandler:node:child_process:414:7
ChildProcess.emit:node:events:519:28

Steps To Reproduce

  1. Open Raycast
  2. Make sure there's active tmux session
  3. Run Connect to Session

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 2 months ago

Thank you for opening this issue!

🔔 @joshmedeski you might want to have a look.

💡 Author and Contributors commands The author and contributors of `joshmedeski/sesh` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@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.
albertilagan commented 2 months ago

I tried to strip my config to

[[session]]
name = "dotfiles 🏡"
path = "~/.dotfiles"

and here's the new error

Error:

SyntaxError: Unexpected token 's', "sesh confi"... is not valid JSON

    at JSON.parse (<anonymous>)
sesh.ts:19:28

---
16:       if (error || stderr) {
17:         return reject(`Please upgrade to the latest version of the sesh CLI`)
joshmedeski commented 2 months ago

JSON is currently broken in sesh v2, I will get it working in the next few days!

joshmedeski commented 2 months ago

Fixed with https://github.com/joshmedeski/sesh/pull/158

raycastbot commented 2 weeks 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 😊

raycastbot commented 1 week ago

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.