diff options
author | Lluis Sanchez <lluis@novell.com> | 2008-09-29 20:52:23 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2008-09-29 20:52:23 +0400 |
commit | cc3541df41c57292ff2c46247e52fa5603c3c951 (patch) | |
tree | baf406380e28d20458344925b3364a768bb2ca19 /main/src/addins/MonoDeveloperExtensions | |
parent | a8d057f04c242a54f2b4f17e4a4a39689ff9469a (diff) |
* MonoSolutionItemHandler.cs: Ignore compiler messages which are not
errors or warnings. Fixes bug #393621.
svn path=/trunk/monodevelop/; revision=114422
Diffstat (limited to 'main/src/addins/MonoDeveloperExtensions')
-rw-r--r-- | main/src/addins/MonoDeveloperExtensions/ChangeLog | 5 | ||||
-rw-r--r-- | main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/main/src/addins/MonoDeveloperExtensions/ChangeLog b/main/src/addins/MonoDeveloperExtensions/ChangeLog index ac149f1584..6a9584a0da 100644 --- a/main/src/addins/MonoDeveloperExtensions/ChangeLog +++ b/main/src/addins/MonoDeveloperExtensions/ChangeLog @@ -1,3 +1,8 @@ +2008-09-29 Lluis Sanchez Gual <lluis@novell.com> + + * MonoSolutionItemHandler.cs: Ignore compiler messages which are not + errors or warnings. Fixes bug #393621. + 2008-09-12 Lluis Sanchez Gual <lluis@novell.com> * NUnit/NUnit.mdp, MonoDeveloperExtensions.mdp: Updated generated code. diff --git a/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs b/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs index e2c7f8e9f9..5446a4026f 100644 --- a/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs +++ b/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs @@ -211,15 +211,21 @@ namespace MonoDeveloper CompilerError error = new CompilerError(); Match match=regexError.Match(error_string); - if (!match.Success) return null; + if (!match.Success) + return null; + + string level = match.Result("${level}"); + if (level == "warning") + error.IsWarning = true; + else if (level != "error") + return null; + if (String.Empty != match.Result("${file}")) error.FileName = Path.Combine (project.BaseDirectory, match.Result("${file}")); if (String.Empty != match.Result("${line}")) error.Line=Int32.Parse(match.Result("${line}")); if (String.Empty != match.Result("${column}")) error.Column = Int32.Parse(match.Result("${column}")); - if (match.Result("${level}") == "warning") - error.IsWarning = true; error.ErrorNumber = match.Result ("${number}"); error.ErrorText = match.Result ("${message}"); return error; |