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

  1. Try to use “Search Tabs” command of Arc Extension.
  2. 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)

Most upvoted comments

@thomaslombart Just submitted #10756 with the fix.

How do I know if I received this fix/latest version? Is there a way to see a version number in Raycast?

It’s now merged 🙂

You can run the command Check For Extension Updates. Raycast also checks every fourth hour for new updates

Alright, 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.

Just deleted that huge space, and confirmed it was! Works super snappy now! 🥳

AppleScript will always struggle to process large databases. Your issue could probably be solved by using runAppleScript from @raycast/utils instead of the run-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.

xI do have a bunch of bookmarks I’ve imported from my previous browser, so I don’t lose those. But those are all “closed” and in folders.

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.

It’s now merged 🙂

You can run the command Check For Extension Updates. Raycast also checks every fourth hour for new updates

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.

How do I know if I received this fix/latest version? Is there a way to see a version number in Raycast?

You can subscribe to notifications for #10756. The fix will be available once the PR is merged.

Been difficult to use this feature usually. Sometimes it works, usually it doesn’t. Following and thanks!

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