Generate Code Errors

6 posts, 0 answers
  1. MiddleTommy
    MiddleTommy avatar
    163 posts
    Member since:
    Nov 2009

    Posted 20 Aug 2010 Link to this post

    The error window of JustCode wont navigate to hidden generated files from wcf ria services shared.cs files when double clicking on the error.

    Feature Request: It would be really awesome if it went to the original asp.net *.WEB project and highlighted it as a silverlight error their.
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 27 Aug 2010 Link to this post

    Hi Tommy,

     Can you elaborate a bit more on that scenario? As far as my knowledge goes on the RIA services technology, a shared.cs file is generated in the SL project only on successful compilation, i.e. no errors in JustCode error window at that point. Furthermore, the generated files are not included in the solution by default, so there's no way for JustCode to know about them. So that's why I'm asking for your thoughts on that.
    Another thing, you might try using linking of files in your SL project, instead of the shared.cs approach. This way you won't get duplicated files and in general should not have to worry about error window not navigating to errors correctly. Just a thought there...

    Thanks for the support, and keep it coming.

    All the best,
    Kaloyan
    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
  3. DevCraft banner
  4. MiddleTommy
    MiddleTommy avatar
    163 posts
    Member since:
    Nov 2009

    Posted 27 Aug 2010 Link to this post

    Yeah I know there are a bunch of work arounds. But, this is how ria services works. The odd thing is when you do a Goto Defenition (VS or justcode) it opens the hidden .shared.cs file just fine. Also JustCode compiles the the hidden files in the background just fine. Why cant it navigate to the error when you double click on it in the JustCode error window? The navigating to the original file is just a suggestion (if you want to make justcode a super awesome product that has cool features no other has, j/k).
  5. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 01 Sep 2010 Link to this post

    Hi Tommy,

     Now that you've made things clear, the questions you ask make more sense to me. The thing is that we analyze the generated file, because any types declared within it might be used throughout your silverlight application. Still we do not navigate to the file on double-click in the error window, because the file itself is not a part of the solution. If you include it, though, you'll be able to navigate correctly.
    Out of curiosity, how do you get an error in the generated file anyway? AFAIK, the file is generated only when the original is successfully compiled, so that no errors will be introduced in the generated file. You could've introduced these manually, but the generated file will be overwritten, once you compile your solution again. So, what's the trick there?
    Anyway, we should definitely give some more thought on the behavior of JustCode, concerning these generated files. Thanks for the involvement.

    All the best,
    Kaloyan
    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
  6. MiddleTommy
    MiddleTommy avatar
    163 posts
    Member since:
    Nov 2009

    Posted 01 Sep 2010 Link to this post

    I get errors when something the .shared.cs file references is not available in the Silverlight code. Like an attribute or using statement. Or there is an incompatibility in the .Net 4.0 framework vs the Silverlight framework. Like Math.Round().
    Also when you do a JustCode FindReferences it wont navigate to the generated file. Sometimes you just want to look at the code (not change it) and the lack of ability to navigate to generated files is a pain. For now I will just include them in my project to get around this because the Ria services main generated file cant be added as a link.
  7. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 06 Sep 2010 Link to this post

    Hi Tommy,

     We'll definitely consider the options in that scenario, so your feedback is much appreciated. I've added an item in the issue tracking system so that you can monitor its progress. Thanks for the involvement.

    Greetings,
    Kaloyan
    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
Back to Top
DevCraft banner