Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6633579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:49:47+00:00 2026-05-25T22:49:47+00:00

I just bought XE2 version, installed the update 1 ISO, and made my Open

  • 0

I just bought XE2 version, installed the update 1 ISO, and made my Open Source projects compile with it.

In fact:

  • I added the source code paths of the library to the general settings IDE (for all platforms I use, i.e. Windows 32 bit and 64 bit up to now);
  • I compiled the TestSQLite3.dpr regression tests of our framework – no problem: EXE is compiled and all tests passed;
  • I’ve a strange issue with the IDE background compilers: even if the project compiled, the IDE displays some errors about unknown files (not in the bottom compiler messages, but in the top of the classes navigation tree – left to the source code editor), and in the .dpr source code, the unit names are underlined in red, and I’m not able to navigate inside the source (using Ctrl+Click on a symbol).

I’ve added the source code paths of the library to the project options (for Win32/Win64 – even if it was already set at the global IDE level). Now the errors about unknown files disappeared, but the unit names are still underlined in red in the source code, and the Ctrl+Click does not work.

The TestSQLite3.dpr source code do not specify the full path of the units:

uses
  {$I SynDprUses.inc}
  Windows,
  Messages,
  SysUtils,
  Classes,
  SynCrypto,
  SynCrtSock,
  SynCommons,
  SynDB,
  SynOleDB,
  SynDBOracle,
  (...)

In the above lines, SynCrypto, SynCrtSock, SynCommons are underlined in red.

My actual guess is that full paths are needed in the .dpr (SynCrypto in '..\SynCrypto.pas'). I did not test this because I don’t have XE2 at work.

Since there was no issue with the previous IDE with this kind of source code (it worked from Delphi 6 up to XE), I wonder if there is a possibility of regression, or a new option not available with the previous version of the IDE (probably platform-based) which I did not set properly. Or perhaps the full path is now needed in .dpr – but this sounds like a regression in the Code/Error Insight compiler to me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:49:47+00:00Added an answer on May 25, 2026 at 10:49 pm

    I asked the question to Dr Bob (by whom I bought the XE2 license – since the 1 $ = 1 € equation sounded a bit unfair, I wanted at least to have a real Delphi expert for being my reseller).

    Here is his answer:

    You did not make a mistake. The problem is that the there are three
    compilers in XE2 (like in previous versions of Delphi): the real
    compiler (which works fine), the Code Insight compiler (which is
    faster), the Error Insight compiler (which must be even more faster),
    and the syntax highlighting parser (which is the fastest).

    XE2 introduced a number of features that made the normal compiler
    slower, and gave the Code Insight and Error Insight compilers a bit of
    trouble. First of all, we have the new targets: Win32, Win64 and OSX
    which cause the search paths to be different for each target (see
    $PLATFORM directive), as well as build configuration, although there
    is only one “Library path” for each PLATFORM (and not for the build
    configurations).

    The second complexing factor is the dotted unit names (scoped unit
    names) that were introduced. Windows is no longer Windows, but
    Winapi.Windows.

    My guess is that these two additional complexing factors cause
    problems for the Code Insight and Error Insight compilers. Note that
    the real compiler still works. But the Error Insight shows incorrect
    errors, and the Code Insight doesn’t always work for these units.

    You could try to explicitly add them to the project again (in which
    case the full path will be used, like you mention in your question on
    stack overflow as well).

    So I’m afraid this is some regression…

    Edit at closing question:

    First point is that adding full paths:

      SynPdf in '..\SynPdf.pas',
    

    in the .dpr did let the files been found – but the background compiler is still lost, unable to find a class declaration in this body.

    Just another regression sample:

       var Thread: array[0..3] of integer; 
           Handle: array[0..high(Thread)] of integer;
    

    Is a perfectly safe syntax, compiles just fine, was interpreted by the previous Error Insight compiler without any problems (works since Delphi 5), but fails under XE2.

    I’m a bit disappointed about XE2 IDE. Compiler makes it work. But IDE is really disappointing. It is not usable, from my point of view. I’ll continue using Delphi 7 as my main editor, and just use XE2 as cross-platform compiler and debugger.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just bought Delphi XE2 starter and want to upgrade my projects. One of
I just bought and installed Delphi XE and was hoping to compile my old
I just bought and installed the Flash Builder 4 after having the Beta for
I just bought a brand new macbook pro, and installed MAMP on it. All
I've just bought a new computer with Lion on it. I've downloaded and installed
I just bought a MBP and trying out Xcode. I know code completion works
I have just bought a macbook air 11 with Lion 10.7. I installed xcode
Just bought a 2.4GHz Intel Core 2 Duo iMac with 2GB of memory and
I just bought Visual Studio 2008 Professional and it came with SQL Server 2005
I just bought a new, sub-US$1,000 laptop, one aimed squarely at the consumer, non-developer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.