Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

SD5 Beta2 & Beta3: Annoying Bug destroying my code

$
0
0

Hello,

I switched to SharpDevelop a couple of months ago and thanks to the source code being open I have been able to sort out all the bugs and differences with VS2010. Many thanks for that!

There is though a very annoying bug which is destroying my code each time I do a change in the windows-forms designer. To reproduce it:

  • Create an empty form (I tested only WinForms, WPF may be also affected)
  • In the code write at any place in the class :

publicstaticboolsomething = false;

  • Now switch to the designer of the form and add a button or just do any change to an existing element.
  • Switch back to the code
  • The declaration of the public static variable is now :

privateboolsomething;

  • The variable is now private non-static and the initializer has disappeared.

This is specially annoying if you have many public static members in a class with many initializers. Changes can't be undone, so once this happens you have to resort to previous stored versions. I hope this can be addressed, since apart from this I found the overall experience with SharpDevelop very pleasant.

Thanks!

 

 

 

 


Viewing all articles
Browse latest Browse all 1764

Trending Articles