This is a migrated thread and some comments may be shown as answers.

Incorrect Analysis of VB.NET Code

3 Answers 78 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Donald Norris
Top achievements
Rank 1
Donald Norris asked on 03 Dec 2009, 03:40 PM
The JustCode evaluator does not like the following code:

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


VisualBasic.Net:  Unknown Entity 'My'

Thanks,

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 04 Dec 2009, 12:32 PM
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.
0
Horizon Software
Top achievements
Rank 2
answered on 21 Jul 2010, 09:40 PM
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...
0
Dennis :: Dr. Code
Telerik team
answered on 23 Jul 2010, 03:22 PM
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
Tags
Code Analysis
Asked by
Donald Norris
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Horizon Software
Top achievements
Rank 2
Dennis :: Dr. Code
Telerik team
Share this question
or