extensions: [Arc] Search Tabs fails with JSON parsing issue
Extension
https://raycast.com/the-browser-company/arc
Description
Error:
SyntaxError: Expected ',' or '}' after property value in JSON at position 8729
at JSON.parse (<anonymous>)
at Object.E5 [as current] (/Users/thepmini/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:87:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Steps To Reproduce
- Try to use “Search Tabs” command of Arc Extension.
- Error message displayed.
Current Behaviour
No response
Expected Behaviour
No response
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 30 (12 by maintainers)
@thomaslombart Just submitted #10756 with the fix.
It’s now merged 🙂
You can run the command
Check For Extension Updates
. Raycast also checks every fourth hour for new updatesAlright, then I’ll mark the issue as solved since @megaroeny doesn’t face it anymore, and the backslash issue has been fixed. Let’s see if this pops up again.
AppleScript will always struggle to process large databases. Your issue could probably be solved by using
runAppleScript
from@raycast/utils
instead of therun-applescript
package and increasing the timeout. However, I’m not sure if we should address this kind of issue for an unreasonable amount of items, as it would also result in a slow UX that may not be well understood by the user.Actually, It doesn’t make any difference if they are closed or not, the extension will parse them anyway. However, It would only be relevant if it is a huge number.
Seems to work! Tried a few favorites across multiple Spaces, and it (eventually) goes to that tab! I’m sure the performance aspect is challenging, depending on how many tabs/favs/etc folks have. But it works! 👏
Tip: I had to give it a bit of time to reindex the tabs, search, etc.
You can subscribe to notifications for #10756. The fix will be available once the PR is merged.
@megaroeny My PR fixes the issue related to the use of
\
in tab titles. If you encounter the issue with tabs that don’t contain a backslash, please let me know.Thank you for opening this issue!
🔔 @thomaspaulmann @pomdtr @zach-fuller @ankitchouhan1020 @pernielsentikaer @danpalmer @danulqua @rgrunberg @tleo19 @loris @bdsqqq you might want to have a look.
💡 Author and Contributors commands
The author and contributors of
the-browser-company/arc
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
Reopen the issue.