MD crashes on code completition if the file is not saved. Reproducible: Always Steps to Reproduce: 1. Open MonoDevelop 2. File -> New file -> C# Empty File 3. Write this : class Test { public s } 4. Go to s 5. Press <CTRL>+<SPACE> Actual Results: MonoDevelop crashes Expected Results: Shows some options that starts with 's' **************************************** ***** MonoDevelop Console Output ***** **************************************** xoen@aras mono $ monodevelop Entering VB.NET parser Reading /home/xoen/.config/MonoDevelop/CodeCompletionData/mscorlib_1.0.5000.0_b77a5c561934e089.pidb Creating DefaultWorkbench Socket already in use (MonoDevelop:957): libgnomevfs-CRITICAL **: gnome_vfs_uri_new_private: assertion `text_uri != NULL' failed Templates: can't load user defaults, reading system defaults (MonoDevelop:957): Gtk-CRITICAL **: gtk_text_iter_set_line_offset: assertion `char_on_line <= chars_in_line' failed Expr: |06 class| (MonoDevelop:957): Gtk-CRITICAL **: gtk_text_iter_set_line_offset: assertion `char_on_line <= chars_in_line' failed Expr: |06 class Test| Expr: |public| Expr: |public| Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object in <0x00034> MonoDevelop.SourceEditor.CodeCompletion.ListWindow:UpdateWordSelection () in <0x00064> MonoDevelop.SourceEditor.CodeCompletion.ListWindow:set_PartialWord (System.String value) in <0x000eb> MonoDevelop.SourceEditor.CodeCompletion.CompletionListWindow:ShowWindow (Char firstChar, TextIter trigIter, ICompletionDataProvider provider, MonoDevelop.SourceEditor.Gui.SourceEditorView ctrl) in <0x002a6> MonoDevelop.SourceEditor.Gui.SourceEditorView:TriggerCodeComplete () in <0x001f3> MonoDevelop.SourceEditor.Gui.SourceEditorView:ProcessPressEvent (Gdk.EventKey evnt) in <0x0002e> MonoDevelop.SourceEditor.Gui.SourceEditorView:OnKeyPressEvent (Gdk.EventKey evnt) in <0x0005d> Gtk.Widget:keypressevent_cb (IntPtr widget, IntPtr evnt) in (wrapper native-to-managed) Gtk.Widget:keypressevent_cb (intptr,intptr) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x0040e> MonoDevelop.Commands.StartWorkbenchCommand:Run () in <0x00a8e> MonoDevelop.SharpDevelopMain:Main (System.String[] args) ************************* ***** emerge info ***** ************************* Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 12:45:50)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X a52 aac aalib acpi alsa apm audiofile avi bash-completion berkdb bitmap-fonts bonobo cddb cdparanoia cdr cjk crypt cups curl directfb divx4linux doc dts dvd dvdr dvdread emboss encode examples exif fam fbcon ffmpeg flac flash foomaticdb fortran gcj gdbm gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imlib ipv6 jabber java javascript jpeg libcaca libg++ libwww lm_sensors mad matroska mikmod mime ming mmx mmx2 mng mono motif mozilla mp3 mpeg ncurses network nls nvidia ogg oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline real rtc sdl spell sqlite sse sse2 ssl svg svga tcltk tcpd tetex tga tiff truetype truetype-fonts type1-fonts unicode usb vcd videos vorbis wmf xml xml2 xmms xpm xprint xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
I know MD has problems with completing 1/2 completed items as of 0.6, as opposed to "string foo; foo.<CTRL + SPACE>". Does that work? Also is this *only* on files not saved? Also, what versions of gtk-sharp and gtk+ are you using? Thanks.
> Also is this *only* on files not saved? Yes > Also, what versions of gtk-sharp and gtk+ are you using? dev-dotnet/gtk-sharp-1.9.2 x11-libs/gtk+-2.6.4-r1 > Thanks. Of what ;)?
Sorry for the silence on my end. Still an issue with 0.7? If so, I'll be adding 0.8 to portage soon-ish, and we'll try testing on that too. Thanks.
Also this other problem is solved from the 0.8 release of MonoDevelop ;)