elixir-formatter is displaying an error on save
@RobStallion đang làm issue này rồi.
Từ ngày 5/12/2018.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
With phoenix version 1.4 came the inclusion of the formatter...

However, this is causing the following error...

This line causing the issue is...
url: [host: Map.fetch!(System.get_env(), "APP_HOST")],
in the config file.
This seems to be happening because the formatter has not got access to env variables that the app would when the application is compiled (assuming you have sourced your .env file of course).
There may be a simple solution to this issue that allows us to both format on save but also keep the safety that the Map.fetch! syntax provides (it does not allow you to run the app if you have not set an env file that is needed in the applicaton (VERY VERY HELPFUL for people like me who forget to source envs far too often).
Haven't looking into solution yet. Just wanted to capture this issue for now.
- Ngôn ngữ chính
- Elixir
- Star
- 33
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dwyl/github-backup
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
dwyl/github-backup#138 ·
-
discuss enhancement priority-2
dwyl/github-backup#136 · 10 bình luận · 1 người được giao ·
-
😕 Đang mởhelp wanted priority-2
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
dwyl/github-backup#135 · 1 bình luận · 3 reaction ·
-
Download all of your GitHub data Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
dwyl/github-backup#133 ·
-
Replace Brunch with webpack Đang mởdiscuss priority-4 technical
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
dwyl/github-backup#132 · 3 bình luận · 1 reaction ·
Tất cả issue của dwyl/github-backup
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
carverauto/serviceradar#4542 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
phoenixframework/phoenix#6847 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
beyond-all-reason/teiserver#1584 ·