bchatard / alfred-jetbrains

Alfred5 workflow to easily open your projects with your favorite JetBrains product.
MIT License
618 stars 49 forks source link

Unable to save data for workflow #334

Closed ShubhamJ010 closed 9 months ago

ShubhamJ010 commented 9 months ago

FAQ

Describe the bug

Whenever trying to change the idea community to ultimate and hit the save button this following error showsup and the setting is not changed to Ultimate Unable to save data for workflow 'JetBrains - Open Project' (/us/local/lib/node_modules/@bchatard/alfred-jetbrains/info.plist)

image

To Reproduce

  1. Go to configure workflow
    image
  2. Change the community to Ultimate
    image
  3. Hit Save
    image

Expected behavior

No response

Alfred Version

5.1.2

Workflow Version

2.0.8

Node Version

v18.12.1

NPM Version

9.8.1

Jetbrains Product & Version

IntelliJ IDEA 2023.2.1, build IU-232.9559.62.

Installation type

Homebrew

OS

macOS 13.3

bchatard commented 9 months ago

never get this error

did you install it as root? Can you check the permission on files in /us/local/lib/node_modules/@bchatard/alfred-jetbrains/?

did you try to remove the worklfow and reinstall again?

ShubhamJ010 commented 9 months ago

Here are the answers please help

How i installed it

I did sudo npm install -g @bchatard/alfred-jetbrains

and i need to use sudo cause it was showing it lacked perm Note : Node in My mac is installed using brew as well alfred-jetbrains where node /usr/local/bin/node /opt/homebrew/bin/node /usr/local/bin/node /usr/local/bin/node /usr/local/bin/node /opt/homebrew/bin/node /usr/local/bin/node /usr/local/bin/node

Here are the permission on the file in /us/local/lib/node_modules/@bchatard/alfred-jetbrains/

image

did you try to remove the worklfow and reinstall again?

Yes i did multiple times

ShubhamJ010 commented 9 months ago

Ran this command and it worked sudo chmod -R 777 /usr/local/lib/node_modules/@bchatard/alfred-jetbrains/

bchatard commented 9 months ago

The workflow should not be installed as root

you should not trust my code :D