I am trying to create a new function. After selecting create from template and giving a function name, its not giving the option to select repository.
Its throwing this error
Extension Oracle.faas has provided an invalid tree item.
I already have the OCI CLI installed on my workstation via pip.
After I installed VS Code toolkit, I keeps asking me if I want to install the OCI CLI as part of the toolkit
Is there a way to disable this and still have the CLI integration functioning within VS Code?
The installation was done in the default directories and are the same as the integration has as default.
So would actually expect the integration to notice that these are already installed
Created an app successfully.
then tried to configure by clicking on the "config" icon
got error message "command 'faas.ociConfigurationApplicationRootNode' not foun"
I had ~/.oci/config that looked like this that caused the error
[mytenancy]user=ocid1.user.oc1..abcdefghijklmnop
fingerprint=00:DE:AD:BE:EF:00
tenancy=ocid1.tenancy.oc1..abcdefghijklmnop
region=us-ashburn-1
key_file=~/.oci/mykey.pem
[mytenancy-user2]#same as mytenancy but user2 OCIDuser=ocid1.user.oc1..zyxwvutsrqponmlk
fingerprint=00:DE:AD:BE:EF:00
tenancy=ocid1.tenancy.oc1..abcdefghijklmnop
region=us-ashburn-1
key_file=~/.oci/mykey.pem
When I changed above inline comment to this all was well:
[mytenancy]user=ocid1.user.oc1..abcdefghijklmnop
fingerprint=00:DE:AD:BE:EF:00
tenancy=ocid1.tenancy.oc1..abcdefghijklmnop
region=us-ashburn-1
key_file=~/.oci/mykey.pem
#same as mytenancy but user2 OCID[mytenancy-user2]user=ocid1.user.oc1..zyxwvutsrqponmlk
fingerprint=00:DE:AD:BE:EF:00
tenancy=ocid1.tenancy.oc1..abcdefghijklmnop
region=us-ashburn-1
key_file=~/.oci/mykey.pem
Here is the error. I could not find the means to get any sort of output for debugging. Glad to know if there is a way (for future reference). As I say, once I moved the comment line above to its own line instead of inline with the profile name it worked.
If ~/.oci/config has multiple profiles, the extension doesn't seem to allow switching unless going into the settings and changing the "default profile name" to what is needed. Changing either the region or profile from VS Code and refreshing the Resource Manager tree seems to load only the stacks from the default profile that was in the extension config.