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

Environment variables in snippetfile string broken #339

Open
RamiAwar opened this issue Jan 16, 2025 · 0 comments
Open

Environment variables in snippetfile string broken #339

RamiAwar opened this issue Jan 16, 2025 · 0 comments
Labels
investigation Potential bug, needs investigation

Comments

@RamiAwar
Copy link
Collaborator

I can't say for sure, but I think relative path in snippetfile broke the ability to pass env vars into the snippetfile variable

My config is: snippetfile = "$XDG_CONFIG_HOME/pet/snippet.toml"

$XDG_CONFIG_HOME this points to an absolute directory.

This worked in the past. I haven't updated in a while, but just recently did and noticed I'm getting this error:

load snippet failed: snippet file not found. $XDG_CONFIG_HOME/pet/snippet.toml
Please run 'pet configure' and provide a correct file path, or remove this
if you only want to provide snippetdirs instead

Originally posted by @npearson72 in #322 (comment)

@RamiAwar RamiAwar added the investigation Potential bug, needs investigation label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation Potential bug, needs investigation
Projects
None yet
Development

No branches or pull requests

1 participant