T4 template files

10 posts, 0 answers
  1. Michał
    Michał avatar
    6 posts
    Member since:
    May 2009

    Posted 07 Dec 2010 Link to this post

    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
  2. Svetlozar
    Admin
    Svetlozar avatar
    270 posts

    Posted 09 Dec 2010 Link to this post

    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
  3. DevCraft banner
  4. Michał
    Michał avatar
    6 posts
    Member since:
    May 2009

    Posted 10 Dec 2010 Link to this post

    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
  5. Svetlozar
    Admin
    Svetlozar avatar
    270 posts

    Posted 16 Dec 2010 Link to this post

    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
  6. Michał
    Michał avatar
    6 posts
    Member since:
    May 2009

    Posted 16 Dec 2010 Link to this post

    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.
  7. Svetlozar
    Admin
    Svetlozar avatar
    270 posts

    Posted 21 Dec 2010 Link to this post

    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
  8. Michał
    Michał avatar
    6 posts
    Member since:
    May 2009

    Posted 21 Dec 2010 Link to this post

    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
  9. Svetlozar
    Admin
    Svetlozar avatar
    270 posts

    Posted 22 Dec 2010 Link to this post

    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
  10. Ben
    Ben avatar
    12 posts
    Member since:
    Jul 2010

    Posted 03 Mar 2011 Link to this post

    What is the status of this issues?  I am having the same problem.
  11. Svetlozar
    Admin
    Svetlozar avatar
    270 posts

    Posted 04 Mar 2011 Link to this post

    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!
Back to Top
DevCraft banner