onflow / flowkit

Apache License 2.0
6 stars 10 forks source link

[BUG] Environment variables are validated when loading configuration #50

Open jribbink opened 3 months ago

jribbink commented 3 months ago

Current Behavior

Currently, if an environment variable is not found when loading a flowkit configuration, it will cause the config validation to fail. This is problemmatic behaviour for the Cadence Language Server, because it will not have these environment variables, so loading the config fails and it effectively makes it impossible to use the LS with environment variable keys.

Expected Behavior

Don't validate environment variables, maybe this could happen when the key is actually attempted to be used instead.

Steps To Reproduce

Try to use the Cadence Language Server with env var keys, VSCode will show an error.

Environment

n/a

What are you currently working on that this is blocking?

No response