Bug 4024 - Changing define symbols in project options not reflected in text editor
Summary: Changing define symbols in project options not reflected in text editor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.8.6
Hardware: Macintosh Mac OS
: --- minor
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-03-21 20:19 UTC by lindsey.driscoll
Modified: 2012-03-22 02:03 UTC (History)
1 user (show)

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


Attachments
Project of bug (5.44 KB, application/zip)
2012-03-21 20:20 UTC, lindsey.driscoll
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 lindsey.driscoll 2012-03-21 20:19:39 UTC
Steps to reproduce:

1. Open the attached project
- Note the "#if A" line 11
- Note also that the Console.WriteLine("Symbol defined"); statement does not appear to be in the commented-out color
2. Go to the project's options
3. Go to 'Compiler' section and change the Define Symbol A; to B;
4. Save the project and build it

Actual outcome:

The define symbol A on line 11 appears to be a valid define symbol and the Console.WriteLine("Symbol undefined"); looks as if it should be compiled code

Expected outcome:

The Console.WriteLine("Symbol undefined"); statement under the #if A should appear to show as code that will not be executed/compiled (like a commented-out line)


Notes:

1. If you run this code, it works as it should (the Console.WriteLine("Symbol undefined") is not printed)
2. If you type in a space after the #if A the code below it will appear as it should in the text editor (as code that will not be executed/compiled)


Environment:

Macosx: Lion
MD: 2.8.6.5
Mono: 2.10.8
Comment 1 lindsey.driscoll 2012-03-21 20:20:46 UTC
Created attachment 1552 [details]
Project of bug
Comment 2 Mike Krüger 2012-03-22 02:03:20 UTC
Already fixed.