Open Will-So opened 2 months ago
Hi @Will-So , thanks for the great writeup here!
cc @sestinj - curious if you've come across other issues of executables in JetBrains not being found.
Open from the terminal that has a PATH set that can execute it and open PyCharm via open -a "PyCharm". This time it should succeed if your AWS credentials are good.
@Will-So Seems like a potential PATH issue, does using the absolute path in your AWS config file work?
[default]
region=us-west-2
output=json
credential_process = /usr/local/bin/cust_process get 555555555 Admin --json
Yea that works. Should have thought of that! It's better workaround than opening PyCharm from the terminal so this solves my problem.
I suspect this is still worthwhile fixing though as other plugins I am using have access to my PATH and i imagine it will be the cause of other unexpected behavior.
Before submitting your bug report
Relevant environment info
Description
Big fan of the project! Looks just like what I've been looking for.
When accessing a model via Bedrock using a credential process:
Results in the following error:
[2024-09-05T04:46:13] CredentialsProviderError: Command failed: cust_process get 555555555 Admin --json /bin/sh: cust_process: command not found
when
cust_process
is in /usr/local/bin.If I open PyCharm via the CLI
open -a "PyCharm"
everything works without problem. Also, thecust_process
command works in terminal and various AWS plugins (Q Developer, AWS Toolkit). I tried to do some research how to source Intellij's terminal environment from plugins but didn't have success.To reproduce
Create a simple script (e.g., dummy_credential_process.sh) that will act as the external process to provide AWS credentials. This script should output JSON in the format expected by AWS CLI. Make the following in
/usr/local/bin/dummy_credential_process.sh
Ensure the script is executable:
chmod +x dummy_credential_process.sh
.continue/config.json
open -a "PyCharm"
. This time it should succeed if your AWS credentials are good.Log output