[MonoDevelop] Code completion problems with 2.6

Robert Blackadder robblackadder at yahoo.com
Tue Sep 20 00:14:54 EDT 2011


I just created a new monotouch solution/project - single window project.  Doing nothing else to the project I just try and type something like var nav = new blah blah blah - it hangs when I type 'v' then finally guesses var, it then hangs on 'n' and guesses new.  Seriously 5-20 seconds each pause.  Most of the time the list is correct but not usable at that speed, I've had to turn off code completion to be able to work - and damn it is hard going back..

Is there some cached data that might be screwed up?  It's almost like it is searching my local network for each keystroke. 


________________________________
From: Abe Gillespie <abe.gillespie at gmail.com>
To: Matt Calder <mvcalder at gmail.com>
Cc: "Monodevelop-list at lists.ximian.com" <Monodevelop-list at lists.ximian.com>
Sent: Tuesday, 20 September 2011 4:23 AM
Subject: Re: [MonoDevelop] Code completion problems with 2.6

I doubt there's any reasonable way for me to figure out a test case so
I'll describe what I'm experiencing here.  Newer / less complicated
projects (just a guess) in a large solution seem to be OK.  But the
older / more complicated projects are only autocompleting global
types; local variables and types defined within the projects are not
included in the autocomplete popup.

-Abe

On Mon, Sep 19, 2011 at 1:51 PM, Matt Calder <mvcalder at gmail.com> wrote:
> I agree that code completion became fragile after a 2.6 upgrade. I
> came across this a few minutes ago and thought there was an outside
> change it may help isolate the problem. In a file I am editing, code
> completion works within the method I am editing prior to, but not
> after this line:
>
> while (values[i] >= ans.GroupLimits[gat][1]) {gat++;}
>
> If I comment that line out, code completion works in the whole method,
> with that line present, code completion simply does nothing anywhere
> in the method after that line. It apparently is due to the braces,
> since with a little experimentation, the following line, replacing the
> previous at the same point in the code also breaks completion:
>
> {double x = 1;}
>
> For what it is worth this line is nested within two if's and a foreach:
>
> if (...) {
>   if (...) {
>     foreach (...) {
>          ...
>          {double x = 1;}
>
> If I catch a few minutes later today I'll try to construct a small
> example and will post a bug if I can.
>
> Matt
>
>
>
> On Sun, Sep 18, 2011 at 11:32 PM, Robert Blackadder
> <robblackadder at yahoo.com> wrote:
>> I spoke too soon.  I'm having fewer problems but 2.6 is not working as well
>> as before a try of 2.8.
>> Go to Declaration rarely works or is available as an option
>> Code Completion will work okay for a while and then begins taking longer and
>> longer to return, then comes good again.
>> This is making it very hard to work.  I've tried deleting obj files, clean
>> rebuilds, deleting code completion cache, reinstalls, and nothing is
>> helping.
>> Any suggestions?  Could different policy settings impact code completion?  I
>> remember policy convert messages popping up while I was playing with 2.8.
>> Cheers
>> ________________________________
>> From: Mike Orb <mo at orb.dreamhost.com>
>> To: Robert Blackadder <robblackadder at yahoo.com>
>> Cc: Monodevelop-list at lists.ximian.com
>> Sent: Sunday, 18 September 2011 11:11 PM
>> Subject: Re: [MonoDevelop] Code completion problems with 2.8b2 and backed up
>> project files
>>
>> Code completion did not work for me either with 2.8 on Mac. I recovered my
>> projects by editing the csproj files and adjusting ProjectTypeGuids. I can't
>> recall if I still had problems after this. I did do a clean all, however. I
>> also had removed all obj folders, can't recall if that was before or after
>> the downgrade (I was trying many things to get code completion to work under
>> 2.8).
>>
>> -Mike
>>
>> On Sun, Sep 18, 2011 at 3:00 AM, Robert Blackadder <robblackadder at yahoo.com>
>> wrote:
>>
>> Hello All,
>> I updated from 2.6 to 2.8b2 (mac) to try out the MonoTouch xcode 4 stuff.
>>  The code completion was so slow - literally 15 seconds for a single key
>> stroke - that I rolled back to the previous version.  I used the auto backed
>> up versions of my project files that 2.8b2 created but now found the code
>> completion problem had followed me to 2.6 and indeed every previous version
>> of MonoDevelop I tried.
>> After a few hours of "arrrgh!!" I thought to nuke the auto backed up
>> projects and rebuild them from scratch in 2.6 (and grab some from source
>> control)- all returned to normal.
>> So, its appears the backed up project files might have a problem.  I'm not
>> seeing complaints about the code completion from others using 2.8b2 is this
>> a problem for anyone else?
>> Cheers
>> -Rob
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>>
>>
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20110919/fffef932/attachment-0001.html 


More information about the Monodevelop-list mailing list