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 of <htmlnote> from old maps not working with QXmlStreamReader yet #64

Closed
atuctuc opened this issue Apr 3, 2023 · 8 comments
Closed
Assignees
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@atuctuc
Copy link

atuctuc commented Apr 3, 2023

i get an error, when i open some old vym files.

e.g.
Citical Parse error
Invalid XML character,
Lne 1037, column 260

the maps are not correctly displayed after loading

@insilmaril
Copy link
Owner

Which version of vym are you using?

Can you attache the old map? If not, could you unzip it and send me the

  • the beginning of the file, there is a vymVersion="x.y.z" and
  • the offending line

Thx

@insilmaril insilmaril added the bug Something isn't working label Apr 3, 2023
@insilmaril insilmaril self-assigned this Apr 3, 2023
@insilmaril insilmaril added question Further information is requested and removed bug Something isn't working labels Apr 3, 2023
@atuctuc
Copy link
Author

atuctuc commented Apr 3, 2023

all files were used/created with  : Version 2.7.510 - 2020-08-21

the problems with some files apears with: Version 2.9.510 i compiles today on linux

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE vymmap>
<vymmap  version="1.11.3" author="" comment="" date="2007-12-19" backgroundColor="#ffff7f" selectionColor="#ffff00" linkStyle="StylePolyParabel" linkColor="#0000ff" defXLinkColor="#e6e6e6" defXLinkWidth="1">

the error is: line 6, column 36
        <htmlnote  fonthint="undef">





@atuctuc
Copy link
Author

atuctuc commented Apr 3, 2023

version="1.11.3" author="" comment="" date="2007-12-19"

  <htmlnote  fonthint="undef">

@insilmaril
Copy link
Owner

Ah, I already suspected it: 2.9.510 is a rewrite in huge parts and XML parsing is not complete yet. Exactly the tag is going to be added in the next 2-3 weeks, then some testing with such old maps would be very helpful, actually I'd like to add some to the test suite.

2.9.510 is not meant for production use yet, please use 2.9.0 (from release branch) for real work. There are more things which are not completely ported yet... I hope to get it stable enough in the next 8 weeks so that I can start using it in daily work, but it will take longer before I'd call it "beta".

should be read by 2.9.0, which will again save it in a format readable by 2.9.510

@insilmaril insilmaril added bug Something isn't working and removed question Further information is requested labels Apr 4, 2023
@insilmaril insilmaril added this to the 3.0 milestone Apr 4, 2023
@insilmaril insilmaril changed the title import err for old vym files parsing of <vymnote> from old maps not working with QXmlStreamReader yet Apr 4, 2023
@insilmaril insilmaril changed the title parsing of <vymnote> from old maps not working with QXmlStreamReader yet parsing of <htmlnote> from old maps not working with QXmlStreamReader yet Apr 4, 2023
@atuctuc
Copy link
Author

atuctuc commented Apr 4, 2023

ok, i compiled now version 2.9.

it seems to worke with my old maps!

it think there is also a bug in the notes editor.
i can set the fontcolor, but the background color is always black.
the menu entries in the notes menue are not taken over

@insilmaril
Copy link
Owner

Ah thanks, I opened #65 for that.

insilmaril added a commit that referenced this issue Apr 13, 2023
- <note> failed to read (pre 1.4.6)
- <htmlnote> was read, but no notes generated: Possible loss of data!
  (pre 1.13.8 before 2010)
@insilmaril
Copy link
Owner

This has been fixed in 2.9.511.

While backporting the tests to 2.9.0 I found that even 2.9.0 seems to have problems with legacy maps: was parsed, but no notes generated!

2.9.1 should work correctly.

@atuctuc - can you test your maps with 2.9.1? (release branch) development branch should work, too now.

I also added test/maps/legacy/notes.xml test map

@insilmaril insilmaril modified the milestones: 3.0, 2.9.0 Apr 13, 2023
@insilmaril insilmaril added the question Further information is requested label Apr 13, 2023
@insilmaril
Copy link
Owner

No response, seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants