Parser anomaly - bug or encoding glitch?
Moderators: winston, another_commander, Getafix
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Parser anomaly - bug or encoding glitch?
I'm really not sure if this is a bug; it's certainly a strange glitch in my v1.90 and Windows XP SP3 setup. Other Windows/notepad++ users I've mentioned it to don't seem to experience it.
The dictionary parser accepts no comments or line-spacing. If I try to comment with // or /* */ or space out the entities for better legibility (per normal coding practice in C/Pascal/PHP etc), latest.log just throws up
23:17:29.578 [shipData.load.begin]: Loading ship data.
23:17:30.000 [plist.parse.failed]: Failed to parse ../AddOns/FE_Ships.oxp/Config/shipdata-overrides.plist as a property list.
Parse failed at line 1 (char 2836) - unexpected end of string when parsing dictionary
I save everything as ANSI and no other scripting or programming languages I use ever complain about my source files. So this anomaly is specific to Oolite's parser on my system. I realize XP is 'deprecated' and 'dropped', but I have no intention of ditching this OS, which IMHO is the best MS ever produced and is still - despite naysayers - going strong. In every respect apart from this Oolite 1.90 runs perfectly for me.
Could it be a codepage/encoding problem?
I'm using a Spanish/Latin American install of XP. But as I said, strange errors like this have never bothered me in my other projects.
The dictionary parser accepts no comments or line-spacing. If I try to comment with // or /* */ or space out the entities for better legibility (per normal coding practice in C/Pascal/PHP etc), latest.log just throws up
23:17:29.578 [shipData.load.begin]: Loading ship data.
23:17:30.000 [plist.parse.failed]: Failed to parse ../AddOns/FE_Ships.oxp/Config/shipdata-overrides.plist as a property list.
Parse failed at line 1 (char 2836) - unexpected end of string when parsing dictionary
I save everything as ANSI and no other scripting or programming languages I use ever complain about my source files. So this anomaly is specific to Oolite's parser on my system. I realize XP is 'deprecated' and 'dropped', but I have no intention of ditching this OS, which IMHO is the best MS ever produced and is still - despite naysayers - going strong. In every respect apart from this Oolite 1.90 runs perfectly for me.
Could it be a codepage/encoding problem?
I'm using a Spanish/Latin American install of XP. But as I said, strange errors like this have never bothered me in my other projects.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
Can you please upload the file that causes problems somewhere so that we can have a look?
- montana05
- ---- E L I T E ----
- Posts: 1166
- Joined: Mon May 30, 2016 3:54 am
- Location: lurking in The Devils Triangle (G1)
Re: Parser anomaly - bug or encoding glitch?
The first file you sent me in a pm I copied to my editor and (including) comments it worked fine. I would suggest copying it from box and use it for your future updates.
Scars remind us where we've been. They don't have to dictate where we're going.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
As a template - yes, I thought of that. Guess it might be the only option
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
I'd upload as you suggest, another_commander, but I also had trouble opening a Box.com account. Made several attempts to have them send my authentication email, but received no emails (not in spam folder either). Could it be the ad-blocker in my browser?
Do you know of other file-sharing services that do not insist on downloading software onto your machine?
Do you know of other file-sharing services that do not insist on downloading software onto your machine?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
Try uploading the file on wetransfer.com and post the link it will give you.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
I might also mention that I have Win 7 installed on a laptop, and the parser throws up the same error.
Again, Latin American install...
Again, Latin American install...
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
Please try this attempted fix. Does it work? https://we.tl/t-rFh8clOgpP
If yes, I'll tell you what you need to do to apply it to any other file that may produce a similar problem.
If yes, I'll tell you what you need to do to apply it to any other file that may produce a similar problem.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
Thanks. You mean that I should introduce some comments and see what happens?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: Parser anomaly - bug or encoding glitch?
If all else fails try THIS SITE which has downloads of older versions of Notepad++ that are supposed to be compatible with older versions of Windows. Could be a version thing - newer version of Notepad++ paired with an older version of Windows? Worth a look in any case.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
Good suggestioni, Nite Owl, but I installed notepad++ back in 2014 or something. Guess I could try an even older version (I love old versions of things ).
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
It just says DOS/Windows ANSI (and I can't read the rest because I fiddled with status bar font size (going blind, see?)
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: Parser anomaly - bug or encoding glitch?
Yep, that solved it <sighs with relief> :
../AddOns/FE_Ships_Player.oxp
08:21:56.234 [shipData.load.begin]: Loading ship data.
and nothing more about FE Ships
../AddOns/FE_Ships_Player.oxp
08:21:56.234 [shipData.load.begin]: Loading ship data.
and nothing more about FE Ships
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.