Bug 11179 - BINDINGSGENERATOR unknown parameter type warnings need more context
Summary: BINDINGSGENERATOR unknown parameter type warnings need more context
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.2.x
Hardware: PC Windows
: Low normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2013-03-15 07:59 UTC by Steve Williams
Modified: 2013-08-16 13:15 UTC (History)
2 users (show)

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

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 Steve Williams 2013-03-15 07:59:10 UTC
Visual Studio 2010 with Xamarin.Android 4.6.00049.

For unknown parameter type warnings, we don't get any context in which to find the problem until we set MSBuild verbosity up high.

In the Build Output with default MSBuild verbosity, we see

  BINDINGSGENERATOR : warning BG8800: Unknown parameter type org.json.JSONObject

In the Error List, we see the following warning.

  Warning	3	Unknown parameter type org.json.JSONObject	D:\Git\ouya-csharp\Ouya.Console.Api\BINDINGSGENERATOR	Ouya.Console.Api

Not very helpful.  Which method in which class is this type used?

With MSBuild verbosity set to Diagnostic, we see the full warning which gives us the context of where the problem is.

  BINDINGSGENERATOR : warning BG8800: Unknown parameter type org.json.JSONObject
     found in method ReadFromJSONObject (TaskId:113)
     in type Ouya.Console.Api.Product (TaskId:113)

The warning needs the method and type on the same line as the "warning" text for it to be included in the Build Output and Error List at default MSBuild verbosity.
Comment 1 Atsushi Eno 2013-03-18 06:11:28 UTC
(While the fix could be sometimes seen easy, this needs to be verified as it *always* work for every error output related to this outout. Check this only when we don't have more important issues. -> TRIVIAL)
Comment 2 Atsushi Eno 2013-08-16 13:15:14 UTC
This is now fixed in master and will be in the next release. [3324a08]