Bug 10362 - Autocomplete/Syntax highlighting on code between compiler directives does not function properly.
Summary: Autocomplete/Syntax highlighting on code between compiler directives does not...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: PC All
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-02-18 02:06 UTC by spam
Modified: 2013-02-18 02:51 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
3 screenshots showing the issue in further detail. (33.08 KB, application/x-zip-compressed)
2013-02-18 02:06 UTC, spam
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description spam 2013-02-18 02:06:32 UTC
Created attachment 3399 [details]
3 screenshots showing the issue in further detail.

Using both Linux (Xubuntu 12.10 x64, MonoDevelop 3.0.3.2) and Windows (Win7 x64, MonoDevelop 3.0.6), I have encountered a strange issue when using compiler directives and symbol definitions.

For example, on the Project Options -> Compiler -> Define Symbols, I have a symbol defined. LOGGING.

In the code, I have something like:

    if (!SomethingImportant)
    {
#if LOGGING
        Logger.Something.Error("Some error message here");
#endif
        return false;
    }

With the symbol LOGGING defined in the compiler options for the project, it compiles as expected, the code doesn't get colored as a comment would (if the symbol wasn't defined in the compiler options), but if attempting to use autocomplete while typing the statement, the autocomplete doesn't appear to take into consideration the text I've already typed. Every time autocomplete triggers (like on a period, or parenthesis, etc), it does so as if I am starting a new line of code fresh, completely ignoring the currently in-progress statement being typed.

Also, the syntax highlighting only partially works, as shown in the screenshots
Comment 1 Mike Krüger 2013-02-18 02:22:46 UTC
The bug has been fixed.
Comment 2 spam 2013-02-18 02:51:59 UTC
Fixed in what version?