Mark couvaras

Converter is totally broken now

Could you please fix this. It used to work so well, now it cannot even do a simple line of basic code.
Feedback by Mark couvaras Status: Not Done Comments: 3 Attachments: 1 Last update: 2018-02-21T12:10:41 by Ck Ry
Satbir Baidwan

cannot convert code from vb to c# with Date.Parse

cannot convert code from vb to c# with Date.Parse
Problem by Satbir Baidwan Status: Not Done Comments: 1 Last update: 2018-02-09T07:45:21 by Mark couvaras
Francesco Battaglia

Misplacement of <MarshalAs> attribute to return value

From C# to VB, if I declare a simple function with the "MarshalAs" attribute in the return value, the VB code will have the "MarshalAs" attribute misplaced, as before the function declaration instead of just before the return value type.

For example:
C# code

[return: MarshalAs(UnmanagedType.U4)]
int MyFunction(int myInt);

translate to this VB code

Private Function MyFunction(ByVal myInt As Integer) As Integer

but the correct translation is:

Private Function MyFunction(ByVal myInt As Integer) As <MarshalAs(UnmanagedType.U4)> Integer
Problem by Francesco Battaglia Status: Not Done Comments: 0 Last update: 2018-02-06T09:25:12 by Francesco Battaglia
Steven Cinquegrana

error on any vb to c# conversion

Error is:

CONVERSION ERROR: Code could not be converted. Details:

----- Exception 1 of 1 -----
System.NotImplementedException: Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax not implemented!
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.DefaultVisit(SyntaxNode node)
at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor`1.VisitIncompleteMember(IncompleteMemberSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.IncompleteMemberSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.<VisitCompilationUnit>b__14_1(MemberDeclarationSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.CodeAnalysis.VisualBasic.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.VB.Converter.CSharpConverter.NodesVisitor.VisitCompilationUnit(CompilationUnitSyntax node)
at Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)
at RefactoringEssentials.VB.Converter.CSharpConverter.Convert(CSharpSyntaxNode input, SemanticModel semanticModel, Document targetDocument)
at RefactoringEssentials.VB.Converter.CSharpConverter.ConvertText(String text, MetadataReference[] references)

Please check for any errors in the original code and try again.

A conversion of the most basic code, eg:

Private Class Test
Property Test1 As String = Nothing
End Class

is sufficient to blow it up.
Problem by Steven Cinquegrana Status: Not Done Comments: 2 Last update: 2018-01-24T14:28:17 by Veselina Raykova
Ian Elsinga

code converter completely broken

Code converter does not work at all. We are a Telerik customer and have been using it for years without issue - a number of other people are experiencing the same thing. Would you be able to fix it or in the interim revert it back to the way it was?

Thanks for your immediate attention.

CONVERSION ERROR: Code could not be converted. Details:

----- Exception 1 of 1 -----
System.NotImplementedException: Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax not implemented!
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.DefaultVisit(SyntaxNode node)
at Microsoft.CodeAnalysis.VisualBasic.VisualBasicSyntaxVisitor`1.VisitMethodStatement(MethodStatementSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.MethodStatementSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<ConvertMembers>b__11_0(StatementSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<ConvertMembers>d__11.MoveNext()
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.VisitInterfaceBlock(InterfaceBlockSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.InterfaceBlockSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.<VisitCompilationUnit>b__8_1(StatementSyntax m)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Microsoft.CodeAnalysis.CSharp.SyntaxFactory.List[TNode](IEnumerable`1 nodes)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.NodesVisitor.VisitCompilationUnit(CompilationUnitSyntax node)
at Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax.Accept[TResult](VisualBasicSyntaxVisitor`1 visitor)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.Convert(VisualBasicSyntaxNode input, SemanticModel semanticModel, Document targetDocument)
at RefactoringEssentials.CSharp.Converter.VisualBasicConverter.ConvertText(String text, MetadataReference[] references)

Please check for any errors in the original code and try again.

Problem by Ian Elsinga Status: Not Done Comments: 0 Last update: 2018-01-08T20:02:01 by Ian Elsinga
Mike Albert

from NRefactory to Refactoring Essentials - Bad Move

I have been using the Telerik online code converter for years. You recently switched from NRefactory to Refactoring Essentials, rendering this beloved tool practically useless. Just about anything I throw at it throws an error in the results window.

Please bring back the old engine.
Feedback by Mike Albert Status: Not Done Comments: 2 Last update: 2017-12-28T19:52:07 by Riaan Pretorius
Umer Tariq

telerik converter is not working

I am using Telerik(VB/C#) Converter since 5 months, It works Perfectly fine. But from yesterday It is not working fine. When I convert vb code to C#. It gives unknown exceptions even I want to convert simple line of code or (Hello World). You can see . Please fix it.

Feedback by Umer Tariq Status: Not Done Comments: 10 Last update: 2017-12-04T10:49:04 by Adrian Lewis
David Aschliman


ObjectMemberInitializerSyntax is not implemented when converting VB.NET to C#. This makes it difficult to use this tool, since my source uses this technique.

For example...
New ItemAttribute() With {
.ItemID = 51,
.AttributeName = "Attr1",
.AttributeValue = 4,
.SortOrder = 1}
Feedback by David Aschliman Status: Not Done Comments: 1 Last update: 2017-11-30T06:44:51 by Muhammad Tariq
Cok King

vb to c# : backcolor is not converted to Background

Problem by Cok King Status: Not Done Comments: 0 Last update: 2017-11-23T12:24:19 by Cok King
Steven Cinquegrana

Server Error in '/' Application

Your site is now throwing the follwoing error on submitting a very basicVB function that would have worked fine previously:

"Server Error in '/' Application.
Runtime Error
Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated."

Conversion code is:

Private Sub CopyText(
ByVal s As Object,
ByVal e As EventArgs) Handles cmsMain.ItemClicked

Clipboard.SetDataObject(TryCast(s, ContextMenuStrip).SourceControl.Text, False)
Catch x As Exception
MessageBox.Show(x.Message, "Error")

End Try
End Sub
Problem by Steven Cinquegrana Status: Not Done Comments: 0 Last update: 2017-11-22T06:48:40 by Steven Cinquegrana
Displaying items 1 - 10 of 92