-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc pipeline show with ascii flag is broken on ITerm2 #2420
Comments
Terminal used was The first step would be to reproduce the error: |
And |
I'm not sure if this is something DVC should handle, as it is working in different environments. What do you think @iterative/engineering ? |
My 2 cents - simplify and go with less or something similar. Not sure why should we bring curses, and the whole interface is confusing, not very reliable, etc. The only question - is it possible to do it with |
|
@shcheklein BTW, using |
@shcheklein @drorata I disagree with you, guys. We've been asked numerous times to introduce a UI for showing DAG and the only non-distracting way to do it is to print it or to render it in the terminal. Printing would be broken for terminals that don't support horizontal scrolling(e.g. my default ubuntu terminal). Rendering in curses is only temporarily broken for that specific iterm2 terminal in a recent dvc version, for reasons that we will figure out and fix. Other than that, rendering allows us to present pretty much any DAG size on any terminal. Dot option was introduced very early, but the problem with it is that you need additional actions to render it and then you would only be able to view it in a pop-up GUI window, which is distracting. But even that relies on graphviz, which doesn't have wheels for windows(pygraphviz more precisely), making it a headache to deploy(we are not able to include it as a dependency for windows) and setup. You could use a CLI perl tool for rendering it in the terminal, but that is also not very friendly. If you feel like going with --dot, it is already there and ready to be used 🙂 About the |
@drorata Could you show |
The virtual environment I'm using is based on an If you still think this feedback is worthy and needed, let me know and I will be able to check it later. |
For the record: another user experiencing the same problem https://discordapp.com/channels/485586884165107732/485596304961962003/626104776202911765 |
Agree with previous comments suggesting to remove nice output since it's not universally compatible with all terminals. Users can easily pipe the ascii output to Unless there's a good reason we're not seeing? A true benefit vs |
For the record: less is overflowing lines that are too long to fit into the terminal, which is fine for text and not acceptable for ascii images. Our solution deals with that. |
@efiop the |
@drorata Indeed, didn't know about that one. 🙂 |
@drorata I'm still not able to reproduce. Could you show |
The output of
|
@drorata Btw, since you've experienced that issue with dvc installed from conda, could you please try installing using |
@efiop I'd prefer to skip this test on my work computer --- it could be a little messy in terms of mixing environments, isn't it? |
@drorata True, but you could uninstall it from conda first. Then it shouldn't cause any issues. |
But it means I'd have to install Python using brew, and this can cause conflicts with my conda based environment... 😬 |
@drorata when you |
@drorata though I am finding some mentions of brew and conda colliding, so looks like I'm wrong. |
Alright, I've tried with multiple versions of conda, as well us regular python (since the other user was experiencing that without conda) and I'm not able to reproduce. Double checked changed in our reqs, but can't put my finger on anything. Tried with multiple versions of asciimatics too. Since there are plenty of workarounds, I'm postponing this until there is more info. It would be great if anyone who is able to reproduce could do some research,. |
I guess something changed somewhere --- now either with |
@drorata Interesting. Well, something is definitely going on with the ncurses. Maybe you've indirectly updated it since or something and that resolved it. Let's close this issue for now, please feel free to reopen if you run into this issue again. Thanks for the feedback! 🙂 |
@drorata 0.75.0 is now using pager instead of our own solution. Please feel free to try it out 🙂 |
Executing
dvc pipeline show --ascii <your-dvc-file.dvc>
yields an error (which can be found here). Afterward, the terminal is broken and all outputs are TABed in a wired way; the terminal has to be killed.Replacing
--ascii
with--dot
solves the problem. Otherwise, as per @MrOutis suggestion:is a workaround.
The text was updated successfully, but these errors were encountered: