Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env var mismatch #6

Open
valeratrades opened this issue Jun 22, 2024 · 0 comments
Open

env var mismatch #6

valeratrades opened this issue Jun 22, 2024 · 0 comments

Comments

@valeratrades
Copy link

valeratrades commented Jun 22, 2024

  1. All std::env::var errors are mapped to OpenAIKeyNotSet Error.
    Consider what happens here (src/cli/init.rs:25), if $ZDOTDIR is not set:
pub async fn init_zsh() -> Res<()> {
    let dir = std::env::var("ZDOTDIR")?;
    //[...]
}

Hint:

$ skar init
2024-06-22T16:24:19.724712400+00:00 ERROR skar - Error: OpenAIKeyNotSet(NotPresent)
  1. README says nothing about ZDOTDIR having to be set, and "OPEN_AI_KEY" mentioned in readme is actually "OPENAI_API_KEY" in the code. Please update readme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant