-
Notifications
You must be signed in to change notification settings - Fork 229
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
Simple Harness fails to parse when referencing past Pin 1 #359
Comments
And FWIW, the user name is because it was difficult to find a name GitHub would accept, not a jab at anything/one |
@WillNotAccept - Thank you for reporting this error message, but please always provide all information about your set of versions as described in contributing guidelines and how you installed WireViz and dependencies. Otherwise, it might be hard to help you when nobody knows how to recreate the error you report. However, the error message looks similar to #355, so this might be a duplicate issue. Please try my fix in PR #358 and report the outcome. Update: After testing your YAML input with my PR #358 (see below), I'm convinced this issue is caused by the same bug as #355, and hence is a duplicate issue. |
I'll take a look. I wasn't expecting a programming task to create a wire harness. It took me a while to realize that's what you were suggesting |
@WillNotAccept wrote:
I'm sorry for not explaining what I mean by "try my fix in PR #358". You don't need to program anything. To try the code in a PR, this procedure can be used, except you can skip the 9th command (deleting the downloaded files), and replace the 4th command (git clone) with any of the download variants below to get the correct branch:
|
I just tried processing the YAML input provided above with WireViz from my fix355 branch without errors. As expected, I got the following warning and the diagram output shown below:
connections:
-
- J1: [1-5]
- <--
- [F5., F1., F2., F4., F3.]
- W1: [s, 1-4]
- [F5., F1., F2., F4., F3.]
- -->
- J2: [1-5] Another possible simplification: The connector attribute |
Or simply just replace the change file which is what I did (and would consider programming in the sense that I'm changing the source). That did fix the issue, although not the referencing by pin name which must be something different elsewhere but amounts to syntactic sugar and is easily just ignored by using pin numbers |
Yep, I had separated it into separate groups just trying to narrow down the problem. That was purely an artifact of the troubleshooting |
I suggest you create a separate issue for "the referencing by pin name" you still experience, and please include a simple example YAML input that triggers the problem, and provide your versions as described in the contributing guidelines. |
I'm defining a simple harness and it fails to parse with
I've connectors on either end of a cable that are field wireable connectors (and thus screw connections) and so need ferrules. So I folled the documentation and examples to create connector, ferrules, cable ferrules, connector and got the above error.
I've reduced it to the example below and I don't think I have the syntax wrong given that I can replace the pin numbers with 1 and it works other than, of course, the connections being wrong. I also cannot use pin names without getting an error. could be getting input syntax wrong, it does seem unreasonably sensitive to whitespace, but it's not obvious to me that I am.
If the pin is replaced with 1 it parses but not any pin number larger
The text was updated successfully, but these errors were encountered: