Bug 11305 - Code editor view loses syntactic highlighting
Summary: Code editor view loses syntactic highlighting
Status: RESOLVED DUPLICATE of bug 10860
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2013-03-20 16:51 UTC by Dan Harris
Modified: 2013-03-22 17:16 UTC (History)
2 users (show)

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

Code editor (574.59 KB, image/png)
2013-03-21 11:20 UTC, Dan Harris

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:

Description Dan Harris 2013-03-20 16:51:20 UTC
After completing a build all with errors, the currently open code editor files lose syntactic highlighting (see attachment). If I click "Changes", the highlighting return works in both editors. Also, a file opened via the error pad will display properly except the "Source" to "Merge" menu at the bottom is missing.

This has happened three times today.
Comment 1 Mike Krüger 2013-03-21 01:55:09 UTC
Attachment is missing. In which type of file does this happen ?
Comment 2 Mike Krüger 2013-03-21 02:42:47 UTC
When that happens can you check if there are exceptions in the log files ?

( ~/Library/Logs/XamarinStudio-4.0)
Comment 3 Dan Harris 2013-03-21 11:20:39 UTC
Created attachment 3673 [details]
Code editor

Code editor highlight syntax bug
Comment 4 Dan Harris 2013-03-21 15:20:47 UTC
I downloaded and added a.vssettings from studiostyl.es and haven't had the problem. My coworker is still using default and oblivion styles has the problem. If that helps.
Comment 5 Dan Harris 2013-03-22 10:45:31 UTC
I was wrong. The syntax highlighting doesn't work with a.vssettings. I let Xamarin Studio sit open over night and now when I scroll down on a code page the syntax highlighting is gone.
Comment 6 Mike Krüger 2013-03-22 10:59:43 UTC
I doubt if it has something to do with the specific highlighting.

I still can't repro the issue - I'll try to let it run for a while, maybe that helps.

Btw. the next time it happens can you go to the options and turn off the semantic highlighting and see if it fixes the issue in the buffer ? (Don't reopen the document, let it open)
Comment 7 Dan Harris 2013-03-22 15:11:27 UTC
Turning off the preferences doesn't help.

Now all of us except Stephen experience the issue. Three using 4.0.2 or 4.0.3 and one using the alpha channel. This issue started when we upgraded to 4.0.2. The 4.0.2 version fixed the issue where an unnecessary using statement was difficult to see. All of us use Mac OS.

It seems to happen after a build with errors or crash or letting Xamarin Studio sit untouched for a long time. Use the mouse wheel to scroll up and down the file and the previously hidden text will not have syntax highlighting.
Comment 8 Mike Krüger 2013-03-22 17:16:55 UTC
Ok seems I've fixed that already.

*** This bug has been marked as a duplicate of bug 10860 ***