Bug? Parsing error "Impossibile leggere oltre la fine del flusso."

Alessandro71

Well-Known Member
Licensed User
Longtime User
I'm getting this error on a previously working project.
Please note that the error is in Italian even if I have my IDE set to English.
1669307106162.png

I'm sure it's not related to the upgrade to version 12, but to some syntax error somewhere.

The IDE Logs window is empty, while normally I have at least a warning for an unused Sub
1669307243887.png


I think there is something, somewhere in the code that stops the syntax checking task with no visible errors
Another symptom of the issue is that if select and identifier and press F7 to find all references, nothing is shown
 

drgottjr

Expert
Licensed User
Longtime User
this is a typical compiler error.
eg, a missing closing "}" bracket
somewhere can often be the reason.
do you have any inline java?

if it was working, why re-build?
(unless it's to test with b4a 12).
if you made a change, look there.
also, you could have inadvertantly
touched a key, thus altering your
source (that's going to be hard to
find). do you have a back up? will
it compile with 12? can you take the
current source and compile with 11.80?
i realize resurrecting a previous version
is tough, but the compiler is definitely
telling you it has unexpectedly run out
of source code.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
this is a typical compiler error.
eg, a missing closing "}" bracket
somewhere can often be the reason.
do you have any inline java?

if it was working, why re-build?
(unless it's to test with b4a 12).
if you made a change, look there.
also, you could have inadvertantly
touched a key, thus altering your
source (that's going to be hard to
find). do you have a back up? will
it compile with 12? can you take the
current source and compile with 11.80?
i realize resurrecting a previous version
is tough, but the compiler is definitely
telling you it has unexpectedly run out
of source code.
I can revert to a previous working version, but the changes between the 2 are quite a lot.
I will surely resort to that, but here I'm pointing out a case where there's a syntax error and both the IDE and the compiler do not offer any clue about it.
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
I manually merged last working version to the broken one, without finding any syntax error, and now it compiles fine.
I suspect a non-printable char slipped somewhere, but I still find inconvenient that no useful error messages were produced.
 

drgottjr

Expert
Licensed User
Longtime User
you know what's annoying? when you forget to add a ";", and a long build stops. that's annoying. if it knows i didn't add the ";", why can't it just add it and get on with the job?
i realize you're annoyed, but the compiler told you what it could (at the time). by definition, the word "compile" tells you what's going on; the compiler never had a complete product to look at before it ran out of code. it stopped and said, "hey, where's the rest of the code?" also, it's not part of the ide, so it shouldn't be too surprising it said it to you in italian. chinese - maybe i would worry a little.
 
Top