Skip to content

Comments

Fix bugs in mate processing#358

Merged
17o2 merged 2 commits intorelease/v0.4.1-rcfrom
fix355
Jun 17, 2024
Merged

Fix bugs in mate processing#358
17o2 merged 2 commits intorelease/v0.4.1-rcfrom
fix355

Conversation

@kvid
Copy link
Collaborator

@kvid kvid commented May 22, 2024

The code processing mates used a mix of repeated connector look-ups and local connector variables, and one variable was used before it was assigned the correct value.

This error was detected when investigating the #355 bug report.

@kvid kvid mentioned this pull request May 25, 2024
25 tasks
@kvid kvid changed the base branch from master to release/v0.4.1-rc May 25, 2024 16:39
@kvid kvid requested a review from 17o2 June 1, 2024 01:35
@kvid kvid changed the title Look-up mated connectors before mate processing Fix bugs in mate processing Jun 2, 2024
@amotl
Copy link
Member

amotl commented Jun 4, 2024

Reviewing this patch may need your attention, @formatc1702. Do you have a few spare cycles?

@kvid
Copy link
Collaborator Author

kvid commented Jun 7, 2024

@formatc1702 - Please review, but not merge yet this PR.

@kvid kvid force-pushed the release/v0.4.1-rc branch 2 times, most recently from db1e77f to ddb2cba Compare June 7, 2024 23:49
kvid added a commit that referenced this pull request Jun 11, 2024
Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

This fixes the #355 bug.

The local connector variables are now both assigned initially when
processing each mate, and used instead of repeated connector look-ups.
kvid added a commit that referenced this pull request Jun 11, 2024
Bug: Not all generated dot output could be changed by tweak entries. Observed
in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
@kvid kvid force-pushed the release/v0.4.1-rc branch from 661f3cf to 2d38267 Compare June 12, 2024 01:08
@17o2 17o2 marked this pull request as draft June 14, 2024 13:27
@17o2
Copy link
Collaborator

17o2 commented Jun 14, 2024

Set to draft to prevent premature merge as requested :)

kvid added 2 commits June 14, 2024 16:38
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
Bug: Not all generated dot output could be changed by tweak entries.
Seen in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
@kvid kvid marked this pull request as ready for review June 14, 2024 14:47
Copy link
Collaborator

@17o2 17o2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix, thanks!

@17o2 17o2 merged commit ba84c54 into release/v0.4.1-rc Jun 17, 2024
@17o2 17o2 deleted the fix355 branch June 17, 2024 19:28
17o2 pushed a commit that referenced this pull request Jun 17, 2024
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
kvid added a commit that referenced this pull request Jul 5, 2024
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
kvid added a commit that referenced this pull request Jul 5, 2024
Bug: Not all generated dot output could be changed by tweak entries.
Seen in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
lxander42 pushed a commit to lxander42/PipeViz that referenced this pull request Sep 20, 2025
Symptom reported in wireviz#355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
lxander42 pushed a commit to lxander42/PipeViz that referenced this pull request Sep 20, 2025
Bug: Not all generated dot output could be changed by tweak entries.
Seen in wireviz#325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simple Harness fails to parse when referencing past Pin 1 [bug] ValueError: X is not in list

3 participants