raycast / extensions

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

[Sesh] Not Loading #14249

Open albertilagan opened 1 month ago

albertilagan commented 1 month 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 1 month 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 1 month 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 1 month ago

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

joshmedeski commented 4 weeks ago

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