Bug 226 - Renaming a folder causes exceptions
Summary: Renaming a folder causes exceptions
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: High major
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2011-08-08 07:41 UTC by Alan McGovern
Modified: 2013-06-12 11:04 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alan McGovern 2011-08-08 07:41:46 UTC
If I have a few files open in a folder and I then rename that folder from within MonoDevelop two things happen:

1) All my open files are suddenly marked as being changed on disk and I'm prompted to reload them.

2) If I click reload I get an exception because MD attempts to open a file path which never existed in the first place:

System.IO.FileNotFoundException: Could not find file "/Users/alanmcgovern/Projects/mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitor/mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitorasda/MacCrashMonitor.cs".
File name: '/Users/alanmcgovern/Projects/mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitor/mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitorasda/MacCrashMonitor.cs'

The old path was "mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitorasda" and the new one was "mdcrashlog/MonoDevelop.CrashLog/MonoDevelop.CrashMonitor"
Comment 1 Miguel de Icaza [MSFT] 2011-08-09 10:05:35 UTC
What version of MonoDevelop is this?
Comment 2 Alan McGovern 2011-08-09 10:07:23 UTC
git master from the day I filed the bug.
Comment 3 Mikayla Hutchinson [MSFT] 2012-05-02 17:26:13 UTC
Can this be reproduced?

If this happens again, please include the actual stack trace from the exception.
Comment 4 Lluis Sanchez 2013-06-12 11:04:15 UTC
This seems to be fixed.