Saturday, October 3, 2009

How to fix MonoDevelop code completion problem?

At the time of this post, there is a known issue with MonoDevelop's Code Completions feature. At some point, code completion stops working and you get "Gathering class information..." in the code completion drop down list.

Before you apply this workaround, ensure that you have the latest build of MonoDevelop.

Workaround: Manually clear the code completion cache

On a Mac:

  • Close MonoDevelop
  • Open the Terminal application
  • Run this command: rm -r ~/.config/MonoDevelop/CodeCompletionData
  • Restart MonoDevelop
Note: For some reason, it did not work on my first attempt. MonoDevelop was still "Gathering class information", I listed the content of the CodeCompletionData folder and no files would appear. I did the same procedure again and it worked. So you might have to do this more than once.

I hope this helps.

Thanks to @mikebluestein and @mikrueger on twitter for their help.

1 comment:

  1. Thanks for taking the time to post this Sylvain. And thanks to Michael Hutchinson for pointing this out to me on the monotouch mailing list.

    - Mike Bluestein

    ReplyDelete