[MonoDevelop] Code completion stopped working

Matt Calder mvcalder at gmail.com
Tue Mar 29 18:30:25 EDT 2011


Hah! Only a few moments after sending this last email I was toying
around and discovered the problem. A colleague has become very fond of
the new default args syntax, and as he populates our code with
functions having default args, code completion breaks for me. For
example,

using System;

namespace CodeCompletionError
{
    public class AClass
    {
        string foo;
        // Code completion on foo does work here.
        // foo. ...

        public Baz(bool arg = true)
        {
            string foo;
            // Code completion on foo does not work here.
            // foo. ...
        }
    }
}


As the comments indicate, code completion does not work at the second
point because MD is upset about the syntax: "bool arg = true". Is
there some way to separate the detection of a syntax error (even
though in this case it is not) from the code completion mechanism? I
suppose those may be deeply linked, but it can be disconcerting to
have a syntax error many lines above in a file disable code completion
from that point down. Also, if I upgrade to MD 2.6 will default args
no longer be marked as errors?

Matt


On Tue, Mar 29, 2011 at 6:15 PM, Matt Calder <mvcalder at gmail.com> wrote:
> Code completion regularly stops working for me altogether. Then, as
> mysteriously as it disappeared it reappears. I previously thought it
> might be due to Gnome themes on Ubuntu, but I think that was
> coincidence. Does anyone else see this problem? I wonder if some
> diagnostic plan can be suggested so that I might discover the cause.
>
> Matt
>
> On Wed, Feb 9, 2011 at 1:43 PM, Michael Hutchinson
> <m.j.hutchinson at gmail.com> wrote:
>> On Wed, Feb 9, 2011 at 11:11 AM, Matt Calder <mvcalder at gmail.com> wrote:
>>> For some reason code completion has stopped working for me in
>>> monodevelop. This is version 2.4 running under Ubuntu 10.10. I think
>>> it may have stopped when I changed the desktop theme, but I can't be
>>> certain. I restarted MD, but no change. Any ideas?
>>
>> * Check the MD log for errors (~/.config/MonoDevelop/log)
>> * Try cleaning out the pidb (complete data cache) files from your
>> project directories
>> * Try cleaning out the pidb files from ~/.config/MonoDevelop/CodeCompletionData
>>
>> --
>> Michael Hutchinson
>> http://mjhutchinson.com
>>
>


More information about the Monodevelop-list mailing list