Bug 3373 - Error while converting :StringLiteral ("") - unknown type name
Summary: Error while converting :StringLiteral ("") - unknown type name
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-02-10 09:51 UTC by Marek Safar
Modified: 2012-02-10 10:23 UTC (History)
1 user (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 Marek Safar 2012-02-10 09:51:36 UTC
Error while converting :StringLiteral ("") - unknown type name
   at System.Environment.get_StackTrace() in /home/marek/git/mono/mcs/class/corlib/System/Environment.cs:line 252
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.ConvertToType(Mono.CSharp.Expression typeName) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 251
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.ConvertToType(Mono.CSharp.Expression typeName) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 199
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.BlockVariableDeclaration blockVariableDeclaration) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 1317
   at Mono.CSharp.BlockVariableDeclaration.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/statement.cs:line 1621
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.AddBlockChildren(ICSharpCode.NRefactory.CSharp.BlockStatement result, Mono.CSharp.Block blockStatement, Int32 ByRef curLocal) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 1717
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.Block blockStatement) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 1732
   at Mono.CSharp.Block.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/statement.cs:line 2359
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.Method m) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 998
   at Mono.CSharp.Method.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/method.cs:line 872
   at Mono.CSharp.StructuralVisitor.VisitTypeDefinition(Mono.CSharp.TypeDefinition tc) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/visit.cs:line 35
   at Mono.CSharp.StructuralVisitor.Visit(Mono.CSharp.Class c) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/visit.cs:line 57
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.Class c) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 511
   at Mono.CSharp.Class.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/class.cs:line 2448
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.NamespaceContainer nspace) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 367
   at Mono.CSharp.NamespaceContainer.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/namespace.cs:line 1282
   at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit(Mono.CSharp.ModuleContainer mc) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 105
   at Mono.CSharp.ModuleContainer.Accept(Mono.CSharp.StructuralVisitor visitor) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/mcs/module.cs:line 282
   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(Mono.CSharp.CompilerCompilationUnit top, System.String fileName, Int32 lineModifier) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 3583
   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(System.IO.Stream stream, System.String fileName, Int32 lineModifier) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 3635
   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(System.IO.TextReader reader, System.String fileName, Int32 lineModifier) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs:line 3564
   at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.GetExpressionAt(Int32 offset) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:line 2127
   at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.MagicKeyCompletion(Char completionChar, Boolean controlSpace) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:line 256
   at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.GetCompletionData(Int32 offset, Boolean controlSpace) in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:line 78
   at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.InternalHandleCodeCompletion(MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, Boolean ctrlSpace, Int32 ByRef triggerWordLength) in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:line 234
   at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.HandleCodeCompletion(MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, Int32 ByRef triggerWordLength) in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:line 196
   at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:line 124
   at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:line 172
   at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:line 107
   at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:line 107
   at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:line 107
   at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:line 107
   at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress(Key key, Char keyChar, ModifierType modifier) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:line 107
   at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress(Key key, UInt32 ch, ModifierType state) in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:line 240
   at MonoDevelop.SourceEditor.ExtensibleTextEditor.OnIMProcessedKeyPressEvent(Key key, UInt32 ch, ModifierType state) in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:line 413
   at Mono.TextEditor.TextEditor.IMCommit(System.Object sender, Gtk.CommitArgs ca) in /home/marek/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:line 550
   at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /home/marek/git/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:line 227
   at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters) in /home/marek/git/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:line 101
   at System.Delegate.DynamicInvokeImpl(System.Object[] args) in /home/marek/git/mono/mcs/class/corlib/System/Delegate.cs:line 424
   at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args) in /home/marek/git/mono/mcs/class/corlib/System/MulticastDelegate.cs:line 72
   at System.Delegate.DynamicInvoke(System.Object[] args) in /home/marek/git/mono/mcs/class/corlib/System/Delegate.cs:line 398
   at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args) in /home/marek/git/gtk-sharp/glib/Signal.cs:line 195
   at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args) in /home/marek/git/gtk-sharp/glib/SignalClosure.cs:line 118
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) in /home/marek/git/gtk-sharp/glib/SignalClosure.cs:line 159
   at Gtk.IMContext.gtk_im_context_filter_keypress(IntPtr , IntPtr )
   at Gtk.IMContext.FilterKeypress(Gdk.EventKey evnt) in /home/marek/git/gtk-sharp/gtk/generated/IMContext.cs:line 369
   at Mono.TextEditor.TextEditor.IMFilterKeyPress(Gdk.EventKey evt, Key mappedKey, UInt32 mappedChar, ModifierType mappedModifiers) in /home/marek/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:line 909
   at Mono.TextEditor.TextEditor.OnKeyPressEvent(Gdk.EventKey evt) in /home/marek/git/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:line 964
   at MonoDevelop.SourceEditor.ExtensibleTextEditor.OnKeyPressEvent(Gdk.EventKey evnt) in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:line 231
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt) in /home/marek/git/gtk-sharp/gtk/generated/Widget.cs:line 2555
   at Gtk.Widget.gtksharp_widget_base_key_press_event(IntPtr , IntPtr )
   at Gtk.Widget.OnKeyPressEvent(Gdk.EventKey evnt) in /home/marek/git/gtk-sharp/gtk/generated/Widget.cs:line 2576
   at MonoDevelop.Ide.Gui.DefaultWorkbench.OnKeyPressEvent(Gdk.EventKey evnt) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs:line 1074
   at Gtk.Widget.keypressevent_cb(IntPtr widget, IntPtr evnt) in /home/marek/git/gtk-sharp/gtk/generated/Widget.cs:line 2555
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run() in /home/marek/git/gtk-sharp/gtk/Application.cs:line 135
   at MonoDevelop.Ide.IdeApp.Run() in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:line 383
   at MonoDevelop.Ide.IdeStartup.Run(MonoDevelop.Ide.MonoDevelopOptions options) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 272
   at MonoDevelop.Ide.IdeStartup.Main(System.String[] args) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 503
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 16
Comment 1 Mike Krüger 2012-02-10 10:23:42 UTC
Nothing really important I suppose you tried to declare:

...
"".Something localVar;
...

And that's a semantical error - I just took out the error message.

/closing