Skip to content
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

Parsing large XML takes infinite time #12

Open
chand3040 opened this issue Oct 23, 2019 · 2 comments
Open

Parsing large XML takes infinite time #12

chand3040 opened this issue Oct 23, 2019 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@chand3040
Copy link

When migration is done from V10 to V11 it tires to search for color attribute inside tree view it tries to parse the xml and when it tries to parse xml in many cases it keeps parsing infinitely.

I can attach screenshots if required.
To be more exact replacing these lines "<tree(\n|.|\t)color="[^>]":
"color attribute is deprecated in tree view. Use decoration- instead.",
in file migrate_100_110.py skips the parsing.

Let me know if I need to put in more steps for replication of same.

@legalsylvain
Copy link
Collaborator

Hi @chand3040 make sense. could you make a PR ?

@legalsylvain legalsylvain added enhancement New feature or request good first issue Good for newcomers labels Nov 5, 2019
@flachica
Copy link
Contributor

I solve this in this PR

If is be found a tree view without a color attribute, regex cannot find the end of file. In future, I will refactor to use lxml lib for this work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants