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

Incorrect error/analysis results

8 Answers 201 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.
Brian H. Madsen
Top achievements
Rank 2
Brian H. Madsen asked on 27 Nov 2009, 01:42 AM
Guys,

Got a bit of a weird behavior.

JustCode is showing (in our project here) 119 errors in 12 files. Now, the error is rather odd:

"C#: Unexpected end of declaration" Line 1, character 127
"C#: Unexpected end of declaration" Line 1, character 128
"C#: Unexpected end of declaration" Line 1, character 132
"C#: Unexpected end of declaration" Line 1, character 134
"C#: Unexpected end of declaration" Line 1, character 136
"C#: Unexpected end of declaration" Line 1, character 137
"C#: Unexpected end of declaration" Line 1, character 144
"C#: Unexpected end of declaration" Line 1, character 145
etc etc etc

The line of code is from within an ASPX file:

<%

@ Page language="C#" Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>

 


and it shows up each time there's a "=" or a "."  - perhaps..broken?

Cheers,
Brian H. Madsen
Microsoft MVP ASP.Net

8 Answers, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 27 Nov 2009, 08:35 AM
Hey Brian,

It seems an exception occurred in your instance of JustCode. In justcode-analysisresult.png in between the "119 errors in 12 files" message and the "Ready" state there is a red icon which comes to notify you of an exception in Just code. If you double click on it you are gonna see the exception details.

So, it'd be really nice if you could send me your JustCode log files (these are in your AppData/Justcode/Logs folder) and the .aspx file where the errors occur. This is the kind of problem we'd really like to remove rapidly and we are gonna provide an internal build with the fix for you as soon as we have it so that we don't block your work.

looking forward to hearing from you.
Tsviatko

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
Brian H. Madsen
Top achievements
Rank 2
answered on 29 Nov 2009, 11:47 PM
Hey Tsviatko,

Thanks for your feedback - didn't see the response in time before i made a few changes and it's now "139 errors in 13 files" instead :)

Can't attach the logs or the ascx file here...upload will only take "valid files.jpg, jpeg, gif and png smaller than 2mb"..

can't cheat it either by renaming..

So, uploaded it to our site:

 

Cheers,
Brian H. Madsen
Microsoft MVP ASP.Net
0
Tsviatko Yovtchev
Telerik team
answered on 01 Dec 2009, 10:02 AM
Hi Brian,

First thing, please, update your JustCode version. Some of the problems you encounter have been fixed already. If nothing else that should decrease the number of exceptions you're getting and reduce the clutter in your logs.

Second, we definitely do not support some of the syntax in your code at present. Having a fully qualified assembly name in the Inherits attribute of your Page directive or two Namespace attributes in the Register tag of your .ascx are somewhat puzzling. Are you using some custom tools to preprocess/compile that? We could not find similar code anywhere. What kind of project is that? Standard ASP.NET web site?Can you give us some more details about your general setup and what kind of project it is you are working on?

Best wishes,
Tsviatvko
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
Brian H. Madsen
Top achievements
Rank 2
answered on 01 Dec 2009, 02:42 PM
Hi,

If there's another version out, other than the one that was updated on the 27th then i wasn't aware of it.

Will definitely install the latest version (though am pretty sure that i am in fact working with the latest).

<%@ Control Language="C#" Debug="true" %>  
<%@ Assembly Name="Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %>  
<%@ Register TagPrefix="SharePoint" Assembly="Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" %>  
 
<SharePoint:RenderingTemplate ID="SIMSSecurityListLookupRenderingTemplate" runat="server">  
    <Template>  
        <asp:DropDownList runat="server" ID="SIMSSecurityListLookupField" />  
    </Template>  
</SharePoint:RenderingTemplate> 

Not sure what went wrong when i was copying and pasting the "relevant code" into an empty text file, but the code is meant to look like the above part...

it's nothing magical, but part of a custom sharepoint field - the project is a typical class library (not a web application) and the errors are starting from the "n=" part of "Version=12.0.0.0" - then per each "." in there as well....
0
Tsviatko Yovtchev
Telerik team
answered on 01 Dec 2009, 04:01 PM
OK, thanks. It is a syntax that we don't support, yet. It is on our backlog now (you should be able to monitor it's progress) and we'll implement it.

As for the versions, it seems that when you experienced most of the exceptions you have been using the version we released on Nov 17th. You started using the version from Nov 27th on Nov 30th and then the exceptions disappeared :).


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
Tsviatko Yovtchev
Telerik team
answered on 01 Dec 2009, 04:27 PM
I must have misread something in your previous example. I thought the strange Inherits syntax was still there and it actually is not.  So all that is supported syntax.

Apparently something weird happens on your side. We'll need a small sample solution that demonstrates this problem since it's totally not reproducible on our side with what we have now. Can you come up with something like that? If not can we get the complete original source file where that happens?

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
Brian H. Madsen
Top achievements
Rank 2
answered on 02 Dec 2009, 03:23 AM
Hi,

I'll try to make a project available that's reproducing the behavior.

i cannot send you the solution/project seeing as it's a commercial project (trying to use JustCode in a real-world scenario, not just test projects and private projects).

as soon as i have it available, and reproduced, then i'll ship it your way.

Regards,
Brian H. Madsen
Microsoft MVP ASP.Net
0
Tsviatko Yovtchev
Telerik team
answered on 02 Dec 2009, 08:43 AM
Thanks a bunch I really appreciate that. You are the only one that encountered this problem so your assistance is crucial.

I am looking forward to hearing from you.

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.
Tags
Code Analysis
Asked by
Brian H. Madsen
Top achievements
Rank 2
Answers by
Tsviatko Yovtchev
Telerik team
Brian H. Madsen
Top achievements
Rank 2
Share this question
or