Incorrect Analysis of VB.NET Code

4 posts, 0 answers
  1. Donald Norris
    Donald Norris avatar
    66 posts
    Member since:
    Mar 2006

    Posted 03 Dec 2009 Link to this post

    The JustCode evaluator does not like the following code:

    Response.Write("Mobile=" & My.Request("Mobile"))


    VisualBasic.Net:  Unknown Entity 'My'

    Thanks,
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 04 Dec 2009 Link to this post

    Hello Donald,

    Thanks for the involvement. We were able to reproduce the issue you reported. We've added it to our product backlog and will be fixed for the next official release.

    Regards,
    Kaloyan
    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.
  3. DevCraft banner
  4. Horizon Software
    Horizon Software avatar
    1 posts
    Member since:
    Dec 2009

    Posted 21 Jul 2010 Link to this post

    I'm seeing the same thing with the latest version of JustCode in the 2010 Q2 release. I have several errors flagged in the project - bascially any time I use the "My" namespace [which gets used fairly often in this project]. For some reason it's evaluating "My" as belonging under the project's default namespace (e.g. "MYAPP") and so sees it as "MYAPP.My", and the result is that it fails to find any member under "My" when using that "full path" for evaluation.

    Would love to either have this fixed or have a way to turn off the evaluation of the My namespace; the false errors are distracting and it's now been 8 months since you added it to the project backlog...
  5. Dennis :: Dr. Code
    Admin
    Dennis :: Dr. Code avatar
    22 posts

    Posted 23 Jul 2010 Link to this post

    Hi Ken,

    your initial report was about "My.Request("Mobile")" not beeing recognized, which was fixed for Q2.

    Of course we would like to fix your remaining issues as well. However I couldn't reproduce it that easily. As far as I know, the "My" namespace does sit under the project's root namespace. At least that's what the VB compiler does if you look at the compiled code with Reflector. So JustCode's analysis does the same. It seems there is something special in your case. Could you eventually send us a test project showing the issue? Your help is much appreciated.


    Sincerely yours,
    Dennis :: Dr. Code
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top