-
Notifications
You must be signed in to change notification settings - Fork 68
Description
I am having difficulty executing reminders-cli commands through the integrated terminal in Visual Studio Code (VS Code) on my macOS system. While the commands work perfectly in my system's terminal (zsh), I encounter an issue when running the same commands in the VS Code terminal. The error message states "You need to grant reminders access".
I have checked the PATH in both terminals and they are identical. I have also ensured that the default shell for VS Code is set to zsh. However, the problem persists.
When I attempt to run my Python script which uses subprocess to call reminders-cli, I get the following error message:
Exception has occurred: CalledProcessError
Command '['reminders', 'show-lists']' returned non-zero exit status 1.
File "/Users/myusername/workspace/reminders/myscript.py", line 6, in myfunction
lists_output = subprocess.check_output(['reminders', 'show-lists'], text=True)
File "/Users/myusername/workspace/reminders/myscript.py", line 34, in <module>
myfunction()
subprocess.CalledProcessError: Command '['reminders', 'show-lists']' returned non-zero exit status 1.I understand from the error message that I need to grant access to reminders, which I did through the "Security & Privacy" settings in macOS for my terminal. However, VS Code does not appear on the list of apps that can be granted access to reminders, and no prompt appears when I run reminders-cli commands in the VS Code terminal to allow access.
Any guidance on how to resolve this issue would be greatly appreciated. Thank you in advance for your time and assistance.