Project Level Imports

11 posts, 0 answers
  1. Richardsonke
    Richardsonke avatar
    93 posts
    Member since:
    Jul 2007

    Posted 18 Nov 2009 Link to this post

    JustCode seems to be ignoring my project-level imports.  After installing JustCode and opening a project (an ASP.NET Web Application in vb.net), i have 770 errors, most of them being "Unknown Entity" or "Unknown Type."  The project builds and runs fine, so I'm not really missing any imports.  An example this code:

    Private _dsLinks As DataSet 


    has an error (red underline on DataSet) that says:

    VisualBasic.Net: Unknown entity 'DataSet' RSS.ascx.vb WebApp 36 25

    DataSet is part of System.Data, which is not imported in the individual page, but IS imported at the project level.

    -Keith
  2. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 18 Nov 2009 Link to this post

    Hello Richardsonke,

    Thanks for reporting this issue. Can you try refreshing the code analysis (From the "Just Code" menu select "Refresh Code Analysis") after you solution loads. If this doesn't solve the problem please write back and we'll try to investigate further.

    Kind regards,
    Deyan
    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. Richardsonke
    Richardsonke avatar
    93 posts
    Member since:
    Jul 2007

    Posted 18 Nov 2009 Link to this post

    Yep, tried that.  They all disappear and then start coming back 10 seconds later as it runs the analysis.

    -Keith
  5. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 18 Nov 2009 Link to this post

    Hi!

    We have found an issue in our code related to handling project-level imports in VB Web Applications. Just to confirm: You set the project-level imports in "My Project" but not in web.config?

    Kind regards,
    Hans
    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.
  6. Richardsonke
    Richardsonke avatar
    93 posts
    Member since:
    Jul 2007

    Posted 18 Nov 2009 Link to this post

    That's correct.  Any chance this'll be fixed for a nightly build?  Thanks.

    -Keith
  7. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 18 Nov 2009 Link to this post

    We have scheduled this issue to be fixed to the next build (to be released on the 27th of November).

    Once this issue is fixed in an internal build before then I will let you know.

    Thanks again for your feedback!

    Kind regards,
    Hans
    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.
  8. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 18 Nov 2009 Link to this post

    Same problem here.  Just wanted to throw in my vote for fixing the project level imports issue.  Am I still looking at a Nov 27 fix date?  Can't really use the tool until that is fixed :(
  9. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 19 Nov 2009 Link to this post

    Hi Adam!

    Just making sure that you are experiencing the very same problem and not a different one. Do you also have a web application with a web.config file where the imports defined in "My Project" are not picked up in the code-behind VB files?


    Regards,
    Hans
    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.
  10. Adam L. Ooten
    Adam L. Ooten avatar
    86 posts
    Member since:
    Sep 2005

    Posted 19 Nov 2009 Link to this post

    Yes that is exactly the case for me.

    Also, will this fix come down in the update function that is hooked into Visual Studio with JustCode>Check for Updates?  Or will I have to check the site and download the patch?
  11. Hans Kratz
    Admin
    Hans Kratz avatar
    102 posts

    Posted 20 Nov 2009 Link to this post

    Hi Richard! Hi Adam!

    I just wanted to let you know that a new internal build is available which fixes this issue. You should be able to get it from the latest JustCode internal builds section.

    This internal build is not an "official" beta build so you will not be able to get it via JustCode > Check For Updates.

    Thanks for your feedback and let us know if you encounter further problems.

    Regards,
    Hans
    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.
  12. Richardsonke
    Richardsonke avatar
    93 posts
    Member since:
    Jul 2007

    Posted 20 Nov 2009 Link to this post

    Thanks for the quick fix!  Response times like this is one of the reasons why I love Telerik so much.  Thanks!

    -Keith
Back to Top
DevCraft banner