Bug 16470 - Code analysis suggests move to nested scope, but would change the meaning of the code.
Summary: Code analysis suggests move to nested scope, but would change the meaning of ...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.1
Hardware: PC Windows
: --- normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2013-11-26 23:51 UTC by Jared Mulconry
Modified: 2013-11-27 14:12 UTC (History)
1 user (show)

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

The section of code affected by this issue. (1.21 KB, text/plain)
2013-11-26 23:51 UTC, Jared Mulconry

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 Jared Mulconry 2013-11-26 23:51:55 UTC
Created attachment 5550 [details]
The section of code affected by this issue.

I am attempting to cache two values into local variables before calling a method that would modify those values.
The cached values are used inside of nested conditional statements.
The editor suggests moving them into the nested conditional, closer to their point of use.
This shifts the caching of the two values past the modifying code, thus changing its effects.
Comment 1 Mike Krüger 2013-11-27 02:04:23 UTC
4.0.1 is outdated - update to a more recent version like 4.2.

(I removed that code issue btw.)
Comment 2 Jared Mulconry 2013-11-27 04:35:01 UTC
Hi Mike.

Thank you for the speedy reply.

My project is a Unity project and I need access to the debugging facilities that Unity provides with their installer. Is the plug-in available for 4.2 to perform debugging of a unity project?
Comment 3 Mike Krüger 2013-11-27 05:23:36 UTC
Good question - I don't know much about unity :( but I think it's possible.
Comment 4 Mikayla Hutchinson [MSFT] 2013-11-27 14:12:05 UTC
Yes, a user has published the Unity debugger addin into the MonoDevelop addin repositories: http://www.cliffordroche.ca/monodevelop-4-xamarin-studio-debugging-in-unity/