exception when refactoring renamig

Bug #398469 reported by Nicolò Chieffo
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: monodevelop

whenever I try to (refactoring) rename something in my class, monodevelop throws an exception (but the renaming happens):
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Core.Gui.ResourceService.GetIcon (System.String name, IconSize size) [0x00000]
  at MonoDevelop.Core.Gui.ResourceService.GetBitmap (System.String name, IconSize size) [0x00000]
  at MonoDevelop.Ide.Gui.BackgroundProgressMonitor+<BackgroundProgressMonitor>c__AnonStorey40.<>m__38 (System.Object , System.EventArgs ) [0x00000]
  at Gtk.Application+InvokeCB.Invoke () [0x00000]
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000]

steps to reproduce:
- create a new C# console solution
- right click on the class name "MainClass"
- choose "Class MainClass" "Rename"
- give a different name and click ok

ProblemType: Bug
Architecture: amd64
Date: Sun Jul 12 18:27:22 2009
DistroRelease: Ubuntu 9.10
Package: monodevelop 2.0+dfsg-2ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-2.17-generic
SourcePackage: monodevelop
Uname: Linux 2.6.31-2-generic x86_64

Revision history for this message
Nicolò Chieffo (yelo3) wrote :
Revision history for this message
Gašper Sedej (gsedej) wrote :

Same is happening to me.

Ubuntu 9.04 x86
Intel Core2Duo
Linux 2.6.28-15-generic

Revision history for this message
Liviu Beraru (beraru-liviu) wrote :

Same hier on Karmic. Trying to refactor class names, variable names etc will throw an exception and eventually don't rename anything (variables are not renamed).

Error Message:
System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Core.Gui.ResourceService.GetIcon (System.String name, IconSize size) [0x00000]
  at MonoDevelop.Core.Gui.ResourceService.GetBitmap (System.String name, IconSize size) [0x00000]
  at MonoDevelop.Ide.Gui.BackgroundProgressMonitor+<BackgroundProgressMonitor>c__AnonStorey16.<>m__26 (System.Object , System.EventArgs ) [0x00000]
  at Gtk.Application+InvokeCB.Invoke () [0x00000]
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000]

MonoDevelop Ide 2.0.0.0

$ mono --version
Mono JIT compiler version 2.4.2.3 (Debian 2.4.2.3+dfsg-2)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
        TLS: __thread
        GC: Included Boehm (with typed GC)
        SIGSEGV: altstack
        Notifications: epoll
        Architecture: x86
        Disabled: none

$ uname -r
2.6.31-14-generic

Revision history for this message
the_steiny (jason-steenstrapickens) wrote :

This bug is chronic. Making my life miserable. Please fix soon or at least put a workaround. Oh and I know I can manually rename them but I'm having trouble in the context of a gtk.window with an auto generated partial classes for the gui design. Any suggestions?

Revision history for this message
Gašper Sedej (gsedej) wrote :

The_steiny:
Just update to MonoDevelop 2.2.
It's much better :)

Add repository from https://launchpad.net/~directhex/+archive/monoxide
or just open terminal and:
sudo add-apt-repository ppa:directhex/monoxide

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.