Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Syntax highlighter always uses the language settings provider of the first build configuration.
  • From: "Waterlander, Erwin" <erwin.waterlander@xxxxxxxxx>
  • Date: Fri, 28 Aug 2020 17:42:38 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ruFOxX91o/kszG+O7N7ZFr3LxJ45TtQJvM5BQWgXGNo=; b=A/3/XqbN7nH9IVHhowbKT7tEOATjpfOyw9ZcWCPzO0V8JUKIufg69jlZYtWYaUd+GUtGv6tK7Z+LZs1nkVQIm/ETVBxmTgIifAtNJ9O5he+Iq7GIBK1hvvxRPYwEnfMzo7ZRnED5Oyqee3RvVU9sxEZH61FR5CE1Zx116PrhFI6dLeGj9lsAmzAyU/RT9EqSrSO7RMazZcqx4ji49izomd2kivKFJH3kK+XsUT1CZUbLvY6SzZkKjknovw5RR4Oo4WoaVueZhTyainyAkbkC/ikDAcvmAnwm9Imde9NXKXZUljElXWsVD33i8qVsA1mGJCyZOOdCQj/PyO5HNmq71A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mpPHpfE19bLtb7j380O3ztPcCmPea3zc08p0m0m9jlwsIeAQChN6XrwJs+PF0YUXPn2QSu0vjl8UrCKCqBEVUIJitBG1QYrDUqh4QtlPjney35wip24ElNSkK0FasPhQfktHCOAz6WbZHsZWoUMCCORJXBgaffUlBJAyvPAVEnomMmLbxpJ4g6OA2ebeO/WYLW2kzl3CJrkR/XGALUyj4qF63c0G0xGMh27sD8UNXInzGCgKqPAlVrS2eDes8iHPAMJY5qigS6G2K1gOg7H6ZJhHLQyX2EA2ZAcpBYDbkKVPllGMO+tTopRykiPnYp39SnSbNsegAA1n1W/ihgMVNQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.5.1.3
  • Ironport-sdr: 7AwF+AGUk84iI1asEb7rJSbUlxYSnILB9JcCQ4qMzL9kEiqdxWjh4BlGGpxT4IXBUdWUCEWIN8 4rp++w3NPBGA==
  • Ironport-sdr: cBMaxD/tywo/tbofwPeGIMx50sf7WyuP2EdM/CVzqcKPDqcqdmlZV38dMP2LLbOqd4xYAbJNGB 4hOVVSzGiecw==
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdZ9XzSG/8CHbTGNTAWIoQTrHqe1iw==
  • Thread-topic: Syntax highlighter always uses the language settings provider of the first build configuration.

Hi,

I noticed that the syntax highlighter in the editor always uses the language settings provider of the first configuration, independent of the active build configuration.

This can easily be shown by creating a standard C hello world project:

1. Add a macro to the CDT User Setting Entries provider for both the Debug and the Release build configuration for the GNU C language.
2. Make the value different for Debug and Release.
3. Use the macro in the source code.
4. Hover with the mouse pointer above the macro to see the expansion.
5. The editor will use the value of the first build configuration (Debug). Also if you switch the active build configuration to Release. You may need to run Project>Clean to see the macro expansion in the editor. Compilation may fail if gcc doesn't know the macro definition. After a failed compilation the expansion is not visible anymore. Run clean again.

This problem is there for all language settings providers. Also for the ones I created myself.

Because each build configuration runs its own instance of the language settings provider (not a global one), I would expect that the language settings provider used by the editor would switch if I switch active build configuration.

Is there a solution for this problem?

best regards,

-- 
Erwin Waterlander
---------------------------------------------------------------------
Intel Benelux B.V.
Registered in The Netherlands under number 24134020
Statutory seat: Rotterdam
Registered address: Capronilaan 37, 1119NG Schiphol-Rijk

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



Back to the top