[MonoDevelop] Code completion problems with 2.6

Abe Gillespie abe.gillespie at gmail.com
Mon Sep 19 14:23:16 EDT 2011


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
>


More information about the Monodevelop-list mailing list