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

Re-introduce debugger in ILSpy

$
0
0

Hi all,

Are there any plans to re-introduce debugger into ILSpy (originally introduced by Eusebiu 4 yrs ago, then later removed)?  Either built-in or as a plugin would be neat.

I realize that SharpDevelop has the ability to debug decompiled dlls, but there are two big problems with it: 1. it is abysmally slow, and 2. it won't allow to set breakpoints.  I have to step with F10, one line at a time, and it takes like 10 seconds between each step.  When you combine this slowness with the inability to set breakpoints on decompiled code, it makes it excruciatingly painful to use.

So I would really like this functionailty back in ILSpy if possible.


Winforms designer on Windows 10

$
0
0

Anybody experiencing problems using Winforms designer on Windows 10? (5.1.0.5134 RC)

In particular, when a sub-menu item is selected, like this:

[Tried to add picture here, of toolStripMenuItem selected in designer]

The properties window fails to update and freezes.

I seem to be able to unfreeze the properties window if I can scroll the designer so that the item is out of view?

 

 

 

WPF Designer

$
0
0

DearCSharp Team,

I understand that a ribbon tab can contain a Ribbon Group. When I try this with the designer the following code is produced, but the group does not appear on the screen when I run the program(althought the tab does).

Also How doesone access theApplication menu on ribbon- one appears and functions but there is no code to add menu items, nor can it be deleted.

Regards,

David Hyde

.........(preceding code)

<RibbonTab
                Width="120"
                Height="23"
                Grid.Column="0"
                Grid.Row="0"
                HorizontalAlignment="Left"
                VerticalAlignment="Bottom"
                Margin="142,0,0,203"
                Background="#FF7FFFD4"
                Header="MyTab"
                RenderTransformOrigin="0.275,3.5">
                <RibbonGroup
                    Width="186"
                    Grid.Column="0"
                    Grid.Row="0"
                    Margin="38,0,0,111"
                    Background="#FF7FFFD4"
                    Header="ClipBoard"
                    Height="71"
                    BorderBrush="#FF7FFFD4"
                    VerticalAlignment="Bottom"
                    VerticalContentAlignment="Bottom"
                    HorizontalAlignment="Left"
                    HorizontalContentAlignment="Left" />
            </RibbonTab>

WPF Panel problems- SharpDevelop 5.01(RC)

$
0
0

I understand that a ribbon tab can contain a Ribbon Group. When I try this with the designer the following code is produced, but the group does not appear on the screen when I run the program(althought the tab does).

Also How does one access theApplication menu on ribbon- one appears and functions but there is no code to add menu items, nor can it be deleted.

This has also been reported as a bug.

....(preceding code)..

<RibbonTab
                Width="120"
                Height="23"
                Grid.Column="0"
                Grid.Row="0"
                HorizontalAlignment="Left"
                VerticalAlignment="Bottom"
                Margin="142,0,0,203"
                Background="#FF7FFFD4"
                Header="MyTab"
                RenderTransformOrigin="0.275,3.5">
                <RibbonGroup
                    Width="186"
                    Grid.Column="0"
                    Grid.Row="0"
                    Margin="38,0,0,111"
                    Background="#FF7FFFD4"
                    Header="ClipBoard"
                    Height="71"
                    BorderBrush="#FF7FFFD4"
                    VerticalAlignment="Bottom"
                    VerticalContentAlignment="Bottom"
                    HorizontalAlignment="Left"
                    HorizontalContentAlignment="Left" />
            </RibbonTab>

 

More colored visual effects in the Analyzer window please

$
0
0

Hi, the analyzer feature is so powerful & usefull, have to use it almost all the time. But each time do an analyzing, the analyzer window easily gets cluttered with the info which is hard for eyes to spot. We need this kind of info, but if we can add more visual effect in it, like make the class/interface names, the pairs of paretheses, and parameter lists in the long paths bold or colored, etc., it'd be much easier to read then :)

ILSpy search funtion

$
0
0

I've just known ILSpy (I used to use .net reflector, but it's not free now), and tried, look very good, although its features still not as rich as .net reflector. Particularly, I found that the search functionality provided by ILSpay can only search types and memebers, but if it can search in all the code, including method bodies, just like what the .net reflector's code search plug in does, it'd be really fantastic :)

Exception after single step in 5.1 RC

$
0
0

It's my first post and I can't find a way to attach a file so here is the error Sharp develop reported when I single stepped in a VS 2013 project I was playing with in Sharp Develop.

 

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.5.51209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 244596kb
GC Heap Memory       : 94419kb

Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Debugger.ManagedCallback.StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)
   at Debugger.ManagedCallbackProxy.<>c__DisplayClass6_0.<StepComplete>b__0()
   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
   at Debugger.MTA2STA.PerformCall()
   at Debugger.MTA2STA.PerformAllCalls()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

---- Recent log messages:
12:11:23.301 [1] INFO - Debugger Command: StepOver
12:11:23.332 [1] INFO - Open file c:\Temp\Basic4ppcDesktop\Dbasic\Form1.cs
12:11:23.458 [13] DEBUG - Telling worker process to exit
12:11:23.458 [13] DEBUG - Waiting for thread-join
12:11:23.459 [27] DEBUG - Cannot read from WorkerProcess 3248: end of stream
12:11:23.459 [27] DEBUG - Stopped reading from WorkerProcess 3248.
12:11:23.460 [27] DEBUG - Telling worker process to exit
12:11:23.460 [27] DEBUG - End of reader thread on WorkerProcess 3248.
12:11:23.460 [13] DEBUG - Joined!
12:11:23.847 [22] DEBUG - Resolved (Line 4699, Col 13) to
12:11:24.554 [1] INFO - Debugger Command: StepOver
12:11:31.309 [1] INFO - Open file c:\Temp\Basic4ppcDesktop\Dbasic\Form1.cs
12:11:31.717 [1] DEBUG - Resolved (Line 4711, Col 73) to [TypeResolveResult System.EventArgs]
12:11:31.717 [1] DEBUG - Resolved (Line 4711, Col 73) to [TypeResolveResult System.EventArgs]
12:11:31.811 [16] DEBUG - Resolved (Line 4700, Col 17) to
12:11:33.505 [1] DEBUG - Resolved (Line 4685, Col 18) to
12:11:33.505 [1] DEBUG - Resolved (Line 4685, Col 18) to
12:11:34.083 [1] DEBUG - Resolved (Line 4680, Col 24) to [ResolveResult System.Void]
12:11:34.083 [1] DEBUG - Resolved (Line 4680, Col 24) to [ResolveResult System.Void]
12:11:36.688 [1] INFO - Debugger Command: StepOver
12:11:36.688 [1] INFO - Open file c:\Temp\Basic4ppcDesktop\Dbasic\Form1.cs
12:11:37.192 [22] DEBUG - Resolved (Line 4703, Col 9) to
12:11:40.947 [1] INFO - Debugger Command: StepOver
12:11:43.895 [1] INFO - Debugger Command: StepOver
12:11:47.577 [1] ERROR - ThreadException caught
--> Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Debugger.ManagedCallback.StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)
   at Debugger.ManagedCallbackProxy.<>c__DisplayClass6_0.<StepComplete>b__0()
   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
   at Debugger.MTA2STA.PerformCall()
   at Debugger.MTA2STA.PerformAllCalls()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

---- Post-error application state information:
Installed 3rd party AddIns: [ThemeTool 0.0.0.0]
ProjectService.CurrentSolution: [Solution C:\Temp\Basic4ppcDesktop\Basic4ppcDesktop.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: Basic4ppcDesktop]
Workbench.ActiveContent: [AvalonEditViewContent C:\Temp\Basic4ppcDesktop\Dbasic\Form1.cs]

Tab order

$
0
0

Hello,

you should be able to let new editor tabs be inserted on the far right, or left or right to the active tab.


Let help text of constants be more helpful

$
0
0

Hello,

if you have a constant:

const int constant = 5;

The help text on mouse-over just says:

local variable int constant;

You can't distinguish that from a non-constant identifier. It should be more distinctive.

Blockwise undo/redo

$
0
0

Hello,

when undoing/redoing single characters are changed one by one. Please summarize changes that are made on a single cursor position like Notepad does.

Clickable URLs in code

$
0
0

Hello,

URLs are already highlighted in code. Please enable clickability of URLs. I suggest opening a URL with double click. Text selection should be disabled for a URL because it would interfere with opening the URL.

Duplicating tabs

$
0
0

Hello,

it would be great to be able to duplicate an editor tab by means of its context menu. This allows you to preserve the scrolling of the first tab and still being able to edit another location in the file.

Question about MSZIP

$
0
0

Hello.

I am trying to extract files from a Microsoft .CAB file. I read the file format specifications (https://msdn.microsoft.com/en-us/library/bb417343.aspx#cabinet_format) and now I have a byte array for each file in the CAB.

The data, however, is compressed with MSZIP (and indeed adheres to the specifications at http://download.microsoft.com/download/5/D/D/5DD33FDF-91F5-496D-9884-0A0B0EE698BB/%5BMS-MCI%5D.pdf).

I already use SharpZipLib in my project for dealing with ZIP files. My question is can I use it to decompress the data I got from the CAB file.

Thanks!

During major upgrade prompt user for version upgrade

$
0
0

Hi,

With WIX installer during major upgrade, How to prompt user with version upgrade message like "The setup has been upgrading from v1.0.0.0 to v2.0.0.0. Do you want to continue". 
I explored few links & blogs related to major upgrade but I didn't got solution related to this. Please share your valuable comments & what is the best way / practice for this. 
Thanks & Regards,
Ankur Jain

During Minor upgrade execute one custom action after all files replaced in install directory

$
0
0

Hi,

With WIX installer During minor upgrade I want to execute one custom action after all file are replaced in install directory. So, How can I execute the custom action?

Thanks & Regards,

Ankur

 


Code generation bug in IronRuby on SD 4.4 using Windows Forms

$
0
0

1. Create an IronRuby Windows Forms app.

2. Place a NumericUpDown control on it.

3. Set the Minimum and Initial values for the nud to 1.

4. The app will crash.  The same thing happens on the end-of-life SD 3.2 as well. 

Now, since the Console won't pause to give me the error message, I tried to run ir.exe manually from a console (i.e., <path to RubyBackendBindings>\ir.exe Program.rb) and got the error message:

"unknown: no such file to load -- gem_prelude.rb (LoadError)"

I did manage to get an unhandled exception stack trace in an app I had started and the same thing happened with the final trace line being:

"System.InvalidOperationException: can't convert System::Int32[ into Float"

 

Here's the IronRuby Windows Form generated code:

        #
        # numericUpDown1
        #
        @numericUpDown1.Location = System::Drawing::Point.new(63, 53)
        @numericUpDown1.Minimum = System::Decimal.new(System::Array[System::Int32].new(
            [1,
            0,
            0,
            0]))
        @numericUpDown1.Name = "numericUpDown1"
        @numericUpDown1.Size = System::Drawing::Size.new(60, 20)
        @numericUpDown1.TabIndex = 0
        @numericUpDown1.Value = System::Decimal.new(System::Array[System::Int32].new(
            [1,
            0,
            0,
            0]))

 

Just to see, I did the same test on an IronPython Windows Forms app and it worked fine.  The generated IronPython code for the nud was:

        # 
        # numericUpDown1
        
        self._numericUpDown1.Location = System.Drawing.Point(8559)
        self._numericUpDown1.Minimum = System.Decimal(System.Array[System.Int32](
            [1,
            0,
            0,
            0]))
        self._numericUpDown1.Name = "numericUpDown1"
        self._numericUpDown1.Size = System.Drawing.Size(4820)
        self._numericUpDown1.TabIndex = 0
        self._numericUpDown1.Value = System.Decimal(System.Array[System.Int32](
            [1,
            0,
            0,
            0]))

WPF Designer Ribbon installs a Application menu

$
0
0


2. Describe what you wanted to do and how you did it

Onto this XAML Design window :-

<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="Latest.Window1"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Latest"
    Height="300"
    Width="300" xmlns:Controls0="clr-namespace:System.Windows.Controls.Ribbon;assembly=System.Windows.Controls.Ribbon" xmlns:sd="http://icsharpcode.net/sharpdevelop/core">
    <Canvas
        HorizontalAlignment="Left"
        VerticalAlignment="Top"
        Width="299"
        Height="264"></Canvas>
</Window>

UseE WPF Designer to put a Ribbon on a canvas

 

from the WPF System.Windows.Controls.Ribbon toolbox dargged a ribbon onto the Canvas.


3. Describe the expected result

To place a ribbon on the canvas.
4. Describe the actual result

An Application Menu was placed on the canvas - declared in the Properties window to be a Ribbon.
5. Attach the exception text and the stack trace

There is no exception text

Wrong central directory signature

$
0
0

I'm getting an exception unzipping a file ("Wrong Central Directory signature") from the ZipFile class. The exception occurs in the function ReadEntries. I'm constructing the class using a stream...

FileStream fs = File.OpenRead(Program.CMSZip);
ZipFile zf = new ZipFile(fs);

The code in ReadEntries where it bombs follows:

for (ulong i = 0; i < entriesForThisDisk; i++) {
                if (ReadLEUint() != ZipConstants.CentralHeaderSignature) {
                    throw new ZipException("Wrong Central Directory signature");
                }

ReadLEUnit is returning 5033012. The value of ZipConstants.CentralHeaderSignature is 3363928. They don't match and hence the exception is thrown.

I've been using this code to unzip a file we download monthly for quite some time (2 years?) without a problem. And 7Zip unzips the file without a problem, so I have no idea what is causing the issue. The file is large (547,683KB), but these files are always large and the zip library hasn't had problems with them in the past.

Anyone have any clues as to what might be happening?

Thanks in advance,

Bob

 

 

 

 

 

 

 

 

5.1 debugging very different from 4.4

$
0
0

I liked 5.1 so far after switching from 4.4 until I noticed that debugging go a lot more annoying.

In 4.4 it would simply evaluate properties in my programs and show me their current value when I hovered them and over the console I was also able to change their value if needed.

Neither of this is possible anymore for me in 5.1 and I especially tested it again just now with the same program and the same line and same situation.

 

https://dl.dropboxusercontent.com/u/59546146/sharpdev.png

This is what 5.1 throws at me when I start my program right up an it makes the break there, and yes I removed the name of it from the screen to not also spark a discussion about the program itself, it's only about the difference that 5.1 throws me that to me useless declaration information about the variable in my face where 4.4 simply said "that's currently 0".

Also when I tried to change the value 5.1 simply says "Assignment not supported!" where as 4.4 just altered the value.

 

I didn't copy my 4.4 settings or whatever over when I installed 5.1, only a few templates, and then changed it to "portable" mode like I did so far with all versions I've used. I just prefer my settings to sit near the program they belong to instead of hellwhereeverelse.

So that shouldn't have broken it since I went ahead and grabbed a fresh 5.1 and tested the same situation straight away only to get the exact same result.

 

Is there maybe a special setting I need to switch to enable these debugging features?

WPF Ribbon Designer problems

$
0
0

When I use WPF Ribbon designer if I create a ribbon tab and try to place a RibbonButton on it the RibbonButton remains stuck to the bottom of the tab.

The code that I use is this: –

<RibbonTab
                Header="First"
                Foreground="#FFF9E33B"
                VerticalAlignment="Top"
                HorizontalAlignment="Left"
                Width="511"
                Background="#FFD2B48C"
                Height="90">
                <RibbonButton
                    Content="RibbonButton"
                    Width="75"
                    Background="#FF40E0D0"
                    HorizontalContentAlignment="Left"
                    VerticalContentAlignment="Top"
                    VerticalAlignment="Top"
                    Height="19" />
                <RibbonCheckBox
                    RenderTransformOrigin="0.7105,-1.8125"
                    Height="15" />
            </RibbonTab>

 

Viewing all 1764 articles
Browse latest View live