Bug 11887 - When solution is changed on disk, reloading reopens files twice
Summary: When solution is changed on disk, reloading reopens files twice
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 3.0.x
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-04-22 12:42 UTC by rryk.ua
Modified: 2013-09-02 05:11 UTC (History)
2 users (show)

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


Attachments
Screenshot with multiple files opened (96.65 KB, image/png)
2013-04-22 12:42 UTC, rryk.ua
Details
Screenshot with a message that file was changed on disk (120.33 KB, image/png)
2013-04-22 12:42 UTC, rryk.ua
Details


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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description rryk.ua 2013-04-22 12:42:04 UTC
Created attachment 3841 [details]
Screenshot with multiple files opened

When solution changes on the disk (e.g. being regenerated from some other project description format), MonoDevelop reloads the solution in the IDE. This happens as soon as IDE gets in focus by the user. However, all files that were open before solution is loaded are reopened twice, that is, each file is represented with two tabs in the code editors.

This is especially annoying when editing the file in one of these tabs - immediately after saving it, another tab gets in focus and complains that the file was changed on disk.

To reproduce:
  - Create some solution with some code and files
  - Open solution in the MonoDevelop
  - Open a few files in the code editor
  - Change the solition manually on disk (e.g. just add a space)
  - Focus on MonoDevelop

What should happen:
  - Solution should reload and all previosly opened files should reopen

What happens instead:
  - Solution is reloaded, all previosly opened files are reopened twice

Attached is screenshot having multiple files opened twice and another screen demonstrating error when editing and saving one of the opened files.

P.S. Also would be nice if startup project was preserved as well as it happens in Visual Studio.
Comment 1 rryk.ua 2013-04-22 12:42:33 UTC
Created attachment 3842 [details]
Screenshot with a message that file was changed on disk
Comment 2 Mikayla Hutchinson [MSFT] 2013-04-22 14:43:42 UTC
Can you reproduce this in 4.x? I think we fixed it already.

Re. the startup project, VS saves that in the user preferences, not the solution file, so that's one setting we can't easily preserve between VS and MD.
Comment 3 Mike Krüger 2013-09-02 04:46:10 UTC
Works in 4.x
Comment 4 rryk.ua 2013-09-02 05:11:14 UTC
Oh... i forgot about this bug already. Yes, it works for me in 4.x. Thank you.