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

T4 template files

9 Answers 130 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.
Michał
Top achievements
Rank 2
Michał asked on 07 Dec 2010, 12:07 PM
Hi,

How can I disable code analysis in T4 template files (with .tt extension) ?
When I open file with T4 template, JustCode blow up with few hundreds of errors and file editing is veeery slow, but if load solution and don't display their errors.

T4 template files, which I editing work correct.

Regards,
Michał Zalewski

9 Answers, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 09 Dec 2010, 05:00 PM
Hello Michał,

If these tt files have build action set to Compile, JustCode will analyze them as source files. You can turn off showing of errors for some files from JustCode Options - Code Analysis - General - Exclude file filters. You can add .tt to the file filters. It is strange that you get these errors when you open the file, this is an issue that has never been reported. Could you please send us a small sample solution demonstrating the problem. We prefer fixing your issues than making you exclude the errors for tt files.  

All the best,
Svetlozar Angelov
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Michał
Top achievements
Rank 2
answered on 10 Dec 2010, 12:54 PM
Hello Svetlozar,

I set build action to none, but JustCode analyze them after I open them. I create project with T4 template file (it generate classes from XML file). I post project at: http://www.is-soft.pl/TemplatesProject.zip because I can't attach file to post (allowed extensions: .jpg, .jpeg, .gif, .png).

Regards,
Michał Zalewski
0
Svetlozar
Telerik team
answered on 16 Dec 2010, 10:06 AM
Hello Michał,

Thank you for the solution. I can't reproduce it. Here is what I do - open the solution, open the ClassGenerator.tt file (no issues), refresh the code analysis, close the file, open it again - no issues. I guess that there is something I am missing. Could you please create some sort of video that we can use to pin down this problem.

Regards,
Svetlozar Angelov
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Michał
Top achievements
Rank 2
answered on 16 Dec 2010, 03:25 PM
Hello,

I have posted a video at: http://www.is-soft.pl/TemplatesVideo.zip. Issue appear when I try to edit file like on the video. I attached list of extensions which I have installed on Visual Studio.
0
Svetlozar
Telerik team
answered on 21 Dec 2010, 03:15 PM
Hi Michał,

Thank you for the assistance. I can't reproduce this issue locally following the steps from the video. Could you please try to disable the other VS extensions and add-ins, this might be another compatibility issue. Did you try with disabling the analysis for .tt files?

Best wishes,
Svetlozar Angelov
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Michał
Top achievements
Rank 2
answered on 21 Dec 2010, 10:20 PM
Hi Svetlovar,

I disabled all extensions and JustCode work fine but code coloring, analysis and intellisense don't work in .tt files. Problem appears when I enable Visual T4 extension (http://www.visualt4.com/). I disabled code analysis for .tt files and it work now.

Regards,
Michal Zalewski
0
Svetlozar
Telerik team
answered on 22 Dec 2010, 09:29 AM
Hello Michal,

Thank you for the assistance. I installed the Visual T4 extension and the issue is now reproducible. I logged it for investigation. I also added some Telerik points to your account for the great assistance.  

Kind regards,
Svetlozar Angelov
the Telerik team
Browse the videos here>> to help you get started with JustCode
0
Ben
Top achievements
Rank 1
answered on 04 Mar 2011, 04:55 AM
What is the status of this issues?  I am having the same problem.
0
Svetlozar
Telerik team
answered on 04 Mar 2011, 11:11 AM
Hello Ben,

We didn't have the time to fix this issue for the official release. You can use the same workaround - disable the showing of errors for .tt files from JustCode Options - Code Analysis - General - Exclude file filters

Kind regards,
Svetlozar Angelov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Code Analysis
Asked by
Michał
Top achievements
Rank 2
Answers by
Svetlozar
Telerik team
Michał
Top achievements
Rank 2
Ben
Top achievements
Rank 1
Share this question
or