-
Notifications
You must be signed in to change notification settings - Fork 226
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
[bug] Strange output (input, cable and output on separate "lines") #258
Comments
That is quite weird! I've never seen something like this myself. Could you please post
You can also paste the |
Thank you for the reply. WireViz version 0.3.1 (Installed using pip3 today, running on Python 3.10 installed from Windows 10 store). .gv file (renamed to .txt to allow it to be uploaded): I am, as you see above, running this on Windows, and I installed today, so I am not surprised if that has something to do with it. Also, Windows store installs python into a somewhat odd location I think, but it doesn't give any errors when running it, so I don't really know. |
It looks like a Windows vs. Unix newline issue. Look at the first two/four lines of the
There is a missing newline between the end of the GithUb link, and the The code should show:
and editing that line in edotor.net fixes the issue. |
I generally develop and use WireViz on macOS, but I have successfully been using a custom branch, very similar to v0.3 on Windows 10 using Python 3.8.10 and GraphViz 2.38.0, with no issues. Please have a look at
What happens when you add |
Thanks, that fixes it. |
Looks like my last comment beat yours by two seconds, so I'm writing again in case you missed it. |
Both \n and \r\n gives good results with the same output to png, the only difference I spot is an extra line in the gv file. |
No problem.
My bet is on the last one. * 0.18.2 is the current version on PyPI so I assume this is what you have installed. |
Correct, 0.18.2 |
Had similar issue running in WSL wireviz: 0.3.1 If it can be any help |
The two header comments were missing an endline. Closes wireviz#258
I encountered the same issue, solved it in the PR linked above. |
I can confirm that this behavior is introduced by v0.18 of the I considered filing a bug report, but the current documentation seems to indicate that the final newline is intended to be included in the string:
Thanks @jlecoeur for the corresponging PR. |
The two header comments were missing an endline. Closes #258
I know this issue was fixed in the |
I cherry-picked the fix for this issue into |
I am a very new user, but trying to run tutorial examples (and example yml-files), all end up the same, with the input X1, wire W1 and output X2 on separate lines, making them very strange and hard to read compared to the nice versions on Github tutorial.
This happens on all yml-files I have tried, also the last one, but it seems that it consistently places the input on the first row, the wire on second and output on third even when there are several inputs, wires and outputs like it is in the final tutorial example.
The text was updated successfully, but these errors were encountered: