Missing code

9 posts, 0 answers
  1. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 24 Jul 2009 Link to this post

    When converting code that has no c# equivalent from vb or vice versa , the converter just gives a comment line
    along these lines

    // ERROR: Not supported in C#: WithStatement


    Is it possible to at least include the code commented underneath that has been "excluded" ?
    Especially when converting multiple files it can be quite laborious and difficult to go backwards and forwards between original files to track whats missing and do the conversion manually. At least if its included we can do the conversion ourselves directly with ease.

    Please :)
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 24 Jul 2009 Link to this post

    Kenneth-

    Thanks for the feedback! That is definitely a good idea and we'll try to explore the possibility of customizing the NRefactory engine to do that. I agree that it would be much easier to simply comment out the "unconvertable" code and add "TODO" comments so those lines are easy to find post-conversion.

    -Todd
  3. Jim K
    Jim K avatar
    3 posts
    Member since:
    Jan 2010

    Posted 03 Jan 2010 Link to this post

    I uploaded a VB file and all I got back was a report with no C# code.  The end of the report was:

    Report Details:
    ================================================
    No potential conversion problems found in uploaded files.

    End Report (0 total matches)

  4. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 04 Jan 2010 Link to this post

    Jim-

    Thanks for the feedback. That is definitely an odd behavior. Can you send me the VB file (or a similar one that replicates the problem) so that I can test locally? We obviously don't save any code after conversions, but having your code will help us diagnose.

    -Todd
  5. Jim K
    Jim K avatar
    3 posts
    Member since:
    Jan 2010

    Posted 05 Jan 2010 Link to this post

    I had to add a .gif to the file, as it only allows image files to be attached.

    Jim

    That did not work either as I received the following:
    Reply to thread cannot be created because:
    • Please upload valid files: .gif,.jpg,.jpeg,.png smaller than 2MB.
  6. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 05 Jan 2010 Link to this post

    Hello Jim,

    Indeed only image attachments are allowed in our public forums. You should either start a regular support ticket and provide the VB.NET code there or post a screenshot with short code snippet in this forum thread.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 05 Jan 2010 Link to this post

    Jim-

    Also feel free to email your file to me: anglin at telerik dot com. You should probably send it as a plan .txt file to avoid any potential spam attachment problems. Either way, when we get to take a look at your file, we'll try to provide more insight regarding the conversion error you're seeing.

    -Todd
  8. Jim K
    Jim K avatar
    3 posts
    Member since:
    Jan 2010

    Posted 05 Jan 2010 Link to this post

    Hi Todd,

    I tried to send it, but only graphics can be sent. So I guess I'll just forget it.  Thanks anyway.

    Jim

    Hello Jim,

    Indeed only image attachments are allowed in our public forums. You should either start a regular support ticket and provide the VB.NET code there or post a screenshot with short code snippet in this forum thread.

    Best regards,
    Sebastian
    the Telerik team
  9. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 06 Jan 2010 Link to this post

    Hello Jim,

    In addition to the options explained previously in this thread, you can paste your code using the 'Format code block' dialog of the forum editor.

    Regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top