-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HELP - BREAKS VS DEBUGGER #14
Comments
FYI. I tried Fody's PropChange and it does not exhibit this issue. I have to admit I like what you have here. I have a custom VSIX to add your dll, ref and task to selected csproj so you'r pretty integrated in my environment. Just a note. The immediate window doesn't work for anything but locals when Mist in project. Fody had the same issue and still might. So I'm guessing Mist is causing that too. Thanks |
This is actually a bug in the old version of Mono.Cecil we are using. @Mart-Bogdan Can you create a new nuget when I'm done. I don't have nuget push access on this repo. |
Actually turns out I dont have push access any more either, so Ill just send a PR I guess... |
Thanks @aquamoth . |
I've created a prerelease branch in my fork here: https://github.com/aquamoth/MIST/releases/tag/v2.5.2%2Bissue-14 I attached a compiled version of the mist builder for .net 4.7 for convenience. Next I will make a formal PR and see this gets integrated in the official master |
@Planet99 Can you please confirm if the posted fix solved your problem or not? |
Still busted. I have a simpler rerpo. BP on the 2nd write will show i=13 in the debugger hover, pinned
Here is the good IL. The bad IL is identical except for 1 place (and 2 in the comments) shown between ** and **. One little (seemingly unimportant) underscore. Hmm. Very strange. Hope it helps. Thanks
} // end of method MainWindow::MistBug |
Oops. Sorry |
Hey All, I spent a bit of time looking at this but decided to go with Fody/PropertyChanged. I understand this was not the kind of bug that one would have tested for at first. I really liked using it but Fody also opens the door to other weavers. Thanks for taking the time. |
I do plan to push another version out shortly which I hope will resolve this behavior, I'm sorry I wasn't able to get to the issue at the time. |
Been using this package for a couple years now. This has been plaguing me for the last few weeks and unfortunately it is mist. Set a breakpoint at either sb.Append below. When you get there, a hover over sb will say it is null - it is not. Duplicated variable names in different scopes is what is causing this issue - different names work. Comment out the one property - and it works. We have 10 years of code (not by me and not close to mvvm) which is being re-purposed and I have been porting mist into the new derivatives. The debugger is near useless to try to understand old code when you can't trust it.
Note: don't know why this isn't formatting correctly.
` [Notifier(NotificationMode.Implicit)]
public partial class MainWindow : Window, INotifyPropertyChanged
{
public MainWindow()
{
InitializeComponent();
int x = 3;
if (x > 12)
{
var sb = new StringBuilder();
sb.Append($"{x}");
sb.ToString();
}
else
{
var sb = new StringBuilder();
sb.Append($"{x}");
sb.ToString();
}
}
// comment out this property and debugger works
public bool Checked { get; set; }
`
This is absolutely killing me. I am the only person at this company who is not afraid of extensions or nuget. Every time I have an issue they say "well what extension do you have that is causing it because it doesn't happen to me". If I tell them I have to rip this out - they will simply stop me from using anything but vanilla everything.
I love this thing and am using it against the caution from my boss and a couple of my coworkers hate it. (Good guys, mechanical engineers who write code, but very conservative when it comes to SW)
The text was updated successfully, but these errors were encountered: