Repository navigation
fix: read yEd labels without the y: prefix (breaks with lxml 6.2.0) - #720
Merged
pradeeban merged 1 commit intoNov 29, 2026
Merged
Conversation
|
🎉 Welcome aboard, @SahilKumar965! Thank you for your first pull request in concore. Please ensure that you are contributing to the dev branch. Your contribution means a lot to us. We'll review it shortly. Please ensure you have reviewed our: If you have any questions, feel free to ask. Happy coding! |
Member
|
@SahilKumar965 Pls check what is still failing in the CI. I understand we have yEd workflows left behind. But we have moved to using concore-editor exclusively. So at some point, we will stop caring about yEd workflows. Maybe not at this point. |
lxml 6.2.0 drops the y: namespace prefix in BeautifulSoup's xml parser,
so find("y:NodeLabel") / find("y:EdgeLabel") return None. mkconcore then
finds no nodes and writes empty build/run scripts, and validate/inspect
miss every label. Looking the tags up by their plain name works on both
lxml 6.1.x and 6.2.0.
SahilKumar965
force-pushed
the
fix/lxml-6.2-labels
branch
from
November 28, 2026 04:08
fdab645 to
994e0a9
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lxml 6.2.0 (released Nov 27) changed how BeautifulSoup's
xmlparser keeps namespace prefixes. They:prefix on yEd tags is lost, so everyfind("y:NodeLabel")/find("y:EdgeLabel")returnsNone.Because of that, mkconcore finds no nodes (
Languages detected in graph: set()), writes emptybuild/runscripts and still exits 0.concore validateandconcore inspectmiss every label too. CI installs the latest lxml, sodevcurrently fails 66 tests on every Python version, and fresh installs of concore are affected the same way.Quick check:
Fix: look the tags up without the prefix. That works on both lxml versions. 14 lookups in
mkconcore.py,validate.py,inspect.pyandbuild.py.graph.pyalready falls back to the plain name, andfri/serveruses ElementTree with a namespace map, so neither needed changes.Testing (full suite, lxml 6.2.0)
ruff format --check .andruff check .are clean.