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

Typo in application key #5

Open
matiaslb opened this issue Feb 21, 2020 · 0 comments
Open

Typo in application key #5

matiaslb opened this issue Feb 21, 2020 · 0 comments

Comments

@matiaslb
Copy link

I believe the referenced line in this issue has a typo in it and should read :tidy_ex instead of :tidyt_ex (notice the extra t). This causes a warning to be thrown when attempting to configure options using Mix.Config, such as:

in config.exs

config :tidyt_ex,
  options: [
    {"TidyBodyOnly", "no"},
    {"TidyIndentContent", "true"}
  ]

Raises the following warning when evaluating the configs:

You have configured application :tidyt_ex in your configuration file,
but the application is not available.

This usually means one of:

  1. You have not added the application as a dependency in a mix.exs file.

  2. You are configuring an application that does not really exist.

Please ensure :tidyt_ex exists or remove the configuration.

Application.get_env(:tidyt_ex, :options, [{"TidyShowWarnings", "no"}, {"TidyBodyOnly", "yes"}, {"TidyQuiet", "yes"}, {"TidyVertSpace", "auto"}, {"TidyIndentSpaces", "0"}])

matiaslb added a commit to matiaslb/tidy_ex that referenced this issue Feb 27, 2020
This makes the application key used to query `Application.get_env/3` consistent with the application key defined in the MixProject module (https://github.com/f34nk/tidy_ex/blob/master/mix.exs#L6) 

Related to: f34nk#5
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