Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
GitHub or Developer Community 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.
Created attachment 2869 [details]
Incorrect highlighted line number
Syntax error line highlighting is confused by comments, both // and /**/
To replicate, using the Mac Mono sample AnimatingViews, inducing a syntax error below the comment block results in wrong reported number:
See attached screenshot.
Installation UUID: 6a2a8221-3b03-4767-baac-18d2cce46447
Mono 2.10.9 (tarball)
Package version: 210090011
Apple Developer Tools:
Xcode 4.5.2 (1847)
Mono for Android: Not Installed
Monotouch: 6.0.6 (Evaluation)
Release ID: 30005000
Git revision: e159cf083bd327933166819d94245298898d6e3d
Build date: 2012-10-24 16:43:06+0000
Xamarin addins: eea2ed91ae8dd242b281d5ec8f6c2fbc63b4cd3d
Mac OS X 10.8.2
Darwin troys-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0
Sat Aug 25 00:48:52 PDT 2012
(deleting the comment block results in correct highlighting behavior)
Can't reproduce it - but it sounds more like a compiler error.
Can you give us the build output ?
(Click on build output in the error list)
There is the compiler message - I get:
/Users/mkrueger/monomac/samples/AnimatingViews/Main.cs(18,39): error CS0117: `MonoMac.AppKit.NSApplication' does not contain a definition for `InitXXXX'
I bet that you get (15,39) there instead
/Users/troy/Downloads/monomac-master/samples/AnimatingViews/Main.cs(15,39): error CS0117: `MonoMac.AppKit.NSApplication' does not contain a definition for `InitXXXXX'
when modifying the original source file with the comment block.
Oddly, changing the comment block to /**/
results in correct line determination (line 15), but changing /**/ to // results in the line being off by one again:
/Users/troy/Downloads/monomac-master/samples/AnimatingViews/Main.cs(14,39): error CS0117: `MonoMac.AppKit.NSApplication' does not contain a definition for `InitXXXXX'
Mareks: Do you've an idea about that ? It odes work on my machine. But I'm using a newer mono version.
This issue is indeed not showing up in 3.0.0 mcs output -- 3.0.0 + MonoDevelop is functioning correctly.
Ok then I mark it as fixed - I think the next release will work