raycast / extensions

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

[Text Replacements]... #12326

Closed vcbrewers closed 2 months ago

vcbrewers commented 4 months ago

Extension

https://raycast.com/raycast/text-replacements

Description

Error:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at j9 (/Users/home/.config/raycast/extensions/5ca69272-fa01-43f2-912e-f6902c8b498b/import-text-replacements-to-snippets.js:32:4208)
    at async Object.U0 (/Users/home/.config/raycast/extensions/5ca69272-fa01-43f2-912e-f6902c8b498b/import-text-replacements-to-snippets.js:32:4322)

Steps To Reproduce

  1. Installed Extension from Raycast Store
  2. Hit Enter to import macOS's text replacement
  3. Received error notification w/in Raycast

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 4 months ago

Thank you for opening this issue!

🔔 @thomaslombart you might want to have a look.

💡 Author and Contributors commands The author and contributors of `raycast/text-replacements` 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` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue.
thomaslombart commented 4 months ago

This error is likely coming from this line. Are there any special characters used in your text replacements?

It would be super useful if you could fork the extension, add a console.log just before the JSON.parse line and paste the result over here.

raycastbot commented 2 months 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 2 months 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.