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

Suddenly JustCode stopped working (properly) on my vs web solution

13 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reini
Top achievements
Rank 2
Reini asked on 15 Jul 2011, 03:20 PM
hi,

i'm using vs2010 and c# for web development.
i have a solution with 8 projects and use subversion with the ankhSVN extension and of course justcode :-)

which did a brilliant job just until 2 weeks ago or so...

now it is there, the menu is showing, it is telling me that i have no errors in the solution, and some warnings in my code...

....but: as soon as a hover over the green bar it disappears. the code formatting does not work and the block highlighting is also not showing. when i make errors in my code they are not shown anymore........... (until i compile - but then it's vs that is telling me...)

what have i done wrong?
is there a setting to make it running again?

i have just installed the new version: no changes.
i have restarted vs several times: no changes
i have disabled and enabled justcode: no changes

any ideas?

thank you :-)

13 Answers, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 19 Jul 2011, 09:11 AM
Hello Reini,

Could you please send us the JC logs. You can find them in %localappdata%\JustCode\Logs. They will give us more information about what is going wrong on your side.

Thank you in advance for the assistance.

Best wishes,
Svetlozar
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Aurelio Gómez
Top achievements
Rank 1
answered on 22 Nov 2011, 10:43 AM
Hello,

I just moved from Just Code 2011 Q1 to Q3 and I am suffering the same issues.

Please find attached the latest log. 

Thanks.

PD: why is it I cannot upload a .txt file? I took some pictures of the first parts of the log instead.
0
Aurelio Gómez
Top achievements
Rank 1
answered on 22 Nov 2011, 10:51 AM
-- removed; reason=noise.
0
Reini
Top achievements
Rank 2
answered on 22 Nov 2011, 10:59 AM
For me the issue is still existing - but only on web-application projects, not on assembly projects (.cs files) there it works fine.

I have also tried to solve this with support, but we didn't find a solution.
Even after a new installation of VisualStudio 2010 - and even after I got a complete new machine and installing VisualStudio 2010 from scratch.

So it seems obvious that it has to do with some setting within the project itself - but I and also support couldn't figure out what it is...

I'm very sorry for you that it happened to you - but (sorry :-) I'm glad that I'm not the only one on this planet facing this issue...
Hopefully we will find a solution.

Reini
0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 10:12 AM
Hello Reini,

I´m rolling back to Q1 SP1 and see if it starts working again. I´ll also try it in a project done from scratch to check if it works there.

Thanks for the answer! I hope we get this working too.

Regards,
0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 10:50 AM
Hello back,

Some tests (with Q1 SP1 again)

* Create a console project from scratch. It doesn´t work. In fact the just code revision isn´t doing anything (see "notstarted.png"). Then tick off most options in JustCode options window. Restart VS. It works. I can see now the error report (see "works when vs just starts.png").

* Open VS, open my working solution. It doesn´t work. JustCode gets stuck at some point (see "hangs at 11%.png"). If I change the solution to the console one, JustCode keeps failing, reporting warnings from the previous solution (see "hangs even on solution change.png").

More in a few minutes.
0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 11:29 AM
Ok, nailed it down.

My solution uses WCF RIA. When the project xxx.Client is loaded, which has the option WCF RIA Services Link set to xxx.Web, JustCode crashes. It looks like while inspecting the autogenerated code something makes it fail.

Now, if I deselect the WCF RIA Services Link in xxx.Client, and restart VS, JustCode works again. So it is an issue related to the way the project behaves when it uses WCF RIA Services.

I´ll try to isolate the autogenerated code into an external assembly and add an assembly reference from xxx.Client to it. If I can get it working then I will have JustCode in a solution which uses WCF RIA. Let´s see.

Regards,
0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 11:51 AM
Got it working.

The trick of the external assembly did not work. However, what did work is this:

* Create a project (xxx.Client.RiaObjects) and set it to use WCF RIA.
* Compile to get the latest Domain objects.
* In your xxx.Client equivalent project (the one where you had it using WCF RIA before) add an existing item, and link the generated code in project xxx.Client.RiaObjects.
* If project xxx.Client.RiaObjects is part of the same solution as xxx.Client, unload it.
* Because xxx.Client still has all the needed assemblies for WCF RIA, it will keep on working.
* Restart VS. Next time you open the solution JustCode will not examine any project using WCF RIA, and it will work.

Basically, instead of trusting the project to generate the RIA objects, you are adding the generated code as a class. For some reason this does not break JustCode.

Regards,
0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 12:28 PM
I´m afraid the trick doesn´t work! :(

A few seconds after opening the solution JustCode becomes unresponsive.

More find outs:
* If your domain has got 1 class, JustCode "works" as it only takes a few moments to execute the command you request (for example: "Clean Code...").
* If your domain has 4 classes, JustCode "seems to have some issues" as it takes 20 seconds to show the "Clean Code..." popup.
* If your domain many classes, JustCode "crashes" as it takes forever to show the "Clean Code..." popup.

So I do not think it is crashing any longer (aka unhandled exception). I think it is too busy trying to analyse something it is not able to (the WCF RIA autogenerated code). That´s why it is not responding to user interactions.

Just my 2 cents :)

Regards,
0
Blagoev
Telerik team
answered on 23 Nov 2011, 02:15 PM
Hello Aurelio Gómez,

 We are not able to reproduce this problem. JustCode is working correctly with WCF RIA services. Can you create an empty Silverlight Business Application to confirm its working correctly at your environment.  If not, can you enable verbose logging and send us the logs as described in before in this thread. Sorry for the caused troubles.

All the best,

Blagoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Aurelio Gómez
Top achievements
Rank 1
answered on 23 Nov 2011, 03:05 PM
Hello Blagoev,

How can I upload the log? I can only upload photos .jpg, .jpeg, .gif, .png

Thanks,
0
Aurelio Gómez
Top achievements
Rank 1
answered on 24 Nov 2011, 08:23 AM
Good morning,

This is a bit strange. I have created a RIA project from scratch and, to my surprise, everything is working ok. Then I have reactivated WCF RIA on the solution I am working with, the one were JustCode wasn´t working, and now it works with WCF RIA.

I must say I am happy it's all working fine for now (I really missed some functionalities provided by JustCode)  but I´m a bit confused about why it works now and not yesterday.

Anyway, in case it stops working again I´ll post it here if that is ok with you.

Regards,
0
Blagoev
Telerik team
answered on 24 Nov 2011, 09:44 AM
Hi Aurelio Gómez,

 Glad its working good. Write us back if anything comes up.

Greetings,
Blagoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Reini
Top achievements
Rank 2
Answers by
Svetlozar
Telerik team
Aurelio Gómez
Top achievements
Rank 1
Reini
Top achievements
Rank 2
Blagoev
Telerik team
Share this question
or