extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Google Chrome] Search history breaks when user has one than one chome profile

Open karolre opened this issue 1 year ago • 6 comments

Extension

https://www.raycast.com/Codely/google-chrome

Raycast Version

1.103.2

macOS Version

26.0.1

Description

Error:

TypeError: getDefaultProfileID is not a function

Object.<anonymous>:constants.ts:5:41

---
2: 
3: export const defaultChromeProfilePath = ["Application Support", "Google", "Chrome"];
4: export const defaultChromeStatePath = ["Application Support", "Google", "Chrome", "Local State"];
5: export const DEFAULT_CHROME_PROFILE_ID = getDefaultProfileID();
6: export const CHROME_PROFILE_KEY = "CHROME_PROFILE_KEY";
7: export const CHROME_PROFILES_KEY = "CHROME_PROFILES_KEY";
8: 
---

Module._compile:loader:1554:14
Object..js:loader:1706:10
Module.load:loader:1289:32

Steps To Reproduce

  1. Set up a chrome with more then one profile.
  2. Execute Search history feature.
  3. The result is: Image

Before this PR the feature worked and profile selection dropdown was present to select the profile:

Image

Current Behaviour

No response

Expected Behaviour

No response

karolre avatar Oct 02 '25 15:10 karolre

Thank you for opening this issue!

🔔 @rgomezcasas @bromanko @crisboarna @andreaselia @rtyke @Aiee @nagauta @a-laughlin @tleo19 @Tarocch1 @rsperezn @drewbabel @haydencbarnes @pernielsentikaer you might want to have a look.

💡 Author and Contributors commands

The author and contributors of Codely/google-chrome 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.

raycastbot avatar Oct 02 '25 15:10 raycastbot

I've been having the same issue #21907, although weirdly in that case even without adding the secondary profile, after the prompt to create it this issue happens to me too and breaks not only the search history command, but every command of the extension unfortunately...

liraz747 avatar Oct 04 '25 13:10 liraz747

@karolre I hope to have tackled this issue in the latest PR. Can you update the extension and check if your issue still persists?

j3lte avatar Oct 14 '25 07:10 j3lte

@karolre I hope to have tackled this issue in the latest PR. Can you update the extension and check if your issue still persists?

Hey, I'm not the person you were tagging but it's working perfectly for me now with multiple profiles, after it was crashing with every command previously Thank you! :)

liraz747 avatar Oct 14 '25 13:10 liraz747

@liraz747 thanks for checking! Given we have multiple issues that are all basically saying the same thing, I am considering this issue solved :)

@raycastbot close this issue

j3lte avatar Oct 14 '25 14:10 j3lte

https://github.com/raycast/extensions/pull/22074 fixed the issue.

karolre avatar Oct 14 '25 18:10 karolre