-
Notifications
You must be signed in to change notification settings - Fork 518
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
rebar3 tree
formats its output very badly when called together with OTP26
#2834
Comments
This code hasn't changed since 2019, so I would actually imagine it's based on the shell encoding issue that has changed to work with the new OTP mechanisms when the IO ports for OTP-26 got changed: #2794 These values are already encoded as unicode, so that's a bit surprising: rebar3/apps/rebar/src/rebar_prv_deps_tree.erl Lines 64 to 72 in a16f41a
I am currently not able to replicate this but my own terminal is set with Can you confirm what your environment is with regards to locale? We can probably find a way to hit compatibility, but only if we can figure out which variations cause trouble. |
rebar3 tree
formats its outout very badly when called together with OTP26rebar3 tree
formats its output very badly when called together with OTP26
Good catch, Mr. Fred. Indeed, I am using Polish language locales in the operating system. And default ANSI-C encoding as a fallback (
unsettling the LC_ALL environmental variable solves the problem
|
I wonder if there's really a good way to deal with that aside from showing warnings going |
Well, one of the possible solutions could be printing some simplified ASCII leaders in non-UTF-8 environments, next to the warning message. But to be honest I don't think it is a common problem and worth any further investigation or work. In standard configurations, no one else will find this. Please feel free to close this issue as a "won't fix" |
Pre-Check
Environment
rebar3 report
to your message:If you can provide an example code base to reproduce the issue on, we will generally be able to provide more help, and faster.
Current behaviour
Today, when playing with Erlang OTP 26.1.1 and the latest rebar3 (v.3.22.1) I discovered it prints the
tree
command's output in a very ugly way:(I picked up an
ecron
dependency app as a short example)These problems started in
v3.22.0
. In rebar3v3.21.0
, the output fromtree
command looks fine:[piotr@G3-3590:ecron]$ rebar3 --version rebar 3.21.0 on Erlang/OTP 26 Erts 14.1 [piotr@G3-3590:ecron]$ rebar3 tree ===> Verifying dependencies... └─ ecron─0.6.1 (project app) └─ telemetry─1.1.0 (hex package)
Even version 3.22.1 produces a well-formatted ASCI leader on OTP 25.3:
[piotr@G3-3590:ecron]$ rebar3 --version rebar 3.22.1 on Erlang/OTP 25 Erts 13.2 [piotr@G3-3590:ecron]$ rebar3 tree ===> Verifying dependencies... └─ ecron─0.6.1 (project app) └─ telemetry─1.1.0 (hex package)
Just a combination of the newest rebar3 with the newest Erlang OTP is broken.
Expected behaviour
rebar3 tree
should print out a readable dependency leader on the systems with the newest Erlang OTP.The text was updated successfully, but these errors were encountered: