Error: Unexpected end of file

Jeroen.Vandezande
 
Avatar
 
Subject:

Error: Unexpected end of file

 · 
Posted: 06.11.2015 - 22:00  ·  #1
Hi,

I want to start using processes but I am running into some issues.
I am probably doing something wrong but I can't figure it out...

I have a unit with all my XbeeAPI code in, I have imported that in the main unit like this:
Code
uses
  CPU, Display, PCA9685, PAC1710, MCP9801, XBeeAPI;


And that all works fine.

now if i just add a process to the unit I get this compiler error:
Error: Unexpected end of file

And it shows that error on the Uses line of my main unit.
I tried everything even an almost empty process...
If I remove it it all compiles fine...

Best Regards,

Jeroen
Jeroen.Vandezande
 
Avatar
 
Subject:

Re: Error: Unexpected end of file

 · 
Posted: 07.11.2015 - 09:51  ·  #2
Ok I figured it out...
really weird stuff:

If I do not have 2 empty lines AFTER the
Code
end XBeeAPI.
line then I got this compiler error.
I just added the two extra carriage returns after the line and all compiled fine. seems like I hit a compiler bug. Anyways I know now how to get around it...

Best Regards,


Jeroen
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Error: Unexpected end of file

 · 
Posted: 07.11.2015 - 20:31  ·  #3
Hello Jeroen,

yes, there is a little problem with end of files in include files and units.
At least one empty or non-code producing line should be appended.

rolf
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 14 · Cache Hits: 14   64   78 · Page-Gen-Time: 0.021123s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI