#1 2017-11-24 04:42:06

robmax
Member
Registered: 2017-11-24
Posts: 2

Cannot compile TestSQL3 using Delphi 10.2 Starter

Hi, I get this error:  [dcc32 Error] SynCommons.pas(22040): E2029 Expression expected but 'END' found

when trying to complile TestSQL3.

However, I can compile using Delphi XE.

Can you explain what I should do?

Thanks,

Rob

Offline

#2 2017-11-24 08:28:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

I guess there are several versions of the framework source code installed on your computer.
There is no "end" on line 22040 of SynCommons.pas.

I just tried with Delphi 10.1 Starter with the latest trunk with no problem.

Offline

#3 2017-11-25 07:36:53

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

Another possible reason - I usually checking out github repository with TortoiseSVN, and from time to time several lines of the .dpk file would become mangled, for example, "requires" would become "rrequire", "end" would become "nd".

I don't know why, just fix them manually.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2017-11-25 08:56:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

Just avoid using SVN at all. This is "so" last century!

Either use Git or Fossil - the later being much easier to install (only a single executable).

Offline

#5 2017-11-25 15:53:40

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

hi ab,

TortoiseSVN does the job so good except the above mentioned small glitch that I cannot avoid.

And feeling "so last century" is not the correct reason to avoid a handy tool, you know, Delphi/Pascal is much older than SVN, all after all, TortoiseSVN did not exist until 2002 smile


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#6 2017-11-25 16:05:03

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,539
Website

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

Some of my colleagues use a TortoiseGIT to work with git repost.  I prefer command line.  'git pull' always  work good

Offline

#7 2017-11-26 05:02:22

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Cannot compile TestSQL3 using Delphi 10.2 Starter

@mpv, if I'd create pull request, I'll use gitkraken, otherwise use tortoiseSVN.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB