SD 4.3.0.
Tools, Options, Coding, Edit Standard Headers, C#
Remove headers. Ok. Create a new class -> No headers (as expected).
Close SD. Open SD and open a solution.
Create a new class -> Headers are created again.
SD 4.3.0.
Tools, Options, Coding, Edit Standard Headers, C#
Remove headers. Ok. Create a new class -> No headers (as expected).
Close SD. Open SD and open a solution.
Create a new class -> Headers are created again.
I have the latest SD 4.3.0. installed. There seems to be support for only MVC 3.
Any plans to support MVC 4?
First off, I just wanted to say that I've had a great experience using sharpzip in my c# app.
For the most part, all is working well except once in a while I will get a failure when extracting a tar.gz with the error that "Access to the path <PATH.....> denied". I finally figured out that the tar.gz files it was failing on are ones that have symbolic links in them.
Unfortunately, I don't have control over the generation of the tar.gz files to exclude these, so I am trying to find a way around this on my end doing the extraction.
I don't need these symlinks on extraction so I essentially just want to skip even trying to extract any symlinks in a tar.gz file.
Is there a way to do this or an option in sharpzip to handle symlinks in tar.gz files? I have not had much luck working around this so any advice or suggestions would be welcomed.
I use something similiar to the extract from a Tar with full control example at https://github.com/icsharpcode/SharpZipLib/wiki/GZip-and-Tar-Samples#wiki-anchorTar, but I have also tried just the "Simple Full extract from a TGZ) as well to be sure I was not doing something wrong in my code. Both ways fail when symlinks are present in the tar.gz file.
Running c# app (.net 4.0) on a Windows 7 system.
Example contents of a tar.gz file that causes issue below. If I remove the 4 symlinks manually from the file, extraction works perfectly.
[system1] → tar ztfv network-scripts.tar.gz
drwxr-xr-x root/root 0 2013-03-17 10:55:19 network-scripts/
-rwxr-xr-x root/root 3325 2009-07-04 03:10:48 network-scripts/ifup-wireless
lrwxrwxrwx root/root 0 2012-01-23 18:25:48 network-scripts/ifdown-isdn -> ifdown-ippp
-rw-r--r-- root/root 119 2012-01-23 18:20:33 network-scripts/ifcfg-eth2
-rwxr-xr-x root/root 5433 2009-07-04 03:10:48 network-scripts/init.ipv6-global
-rwxr-xr-x root/root 1707 2009-07-04 03:10:48 network-scripts/ifup-routes
-rwxr-xr-x root/root 859 2009-07-04 03:10:48 network-scripts/ifup-bnep
-rwxr-xr-x root/root 827 2009-07-04 03:10:48 network-scripts/ifdown-ippp
-rw-r--r-- root/root 39833 2009-07-04 03:10:48 network-scripts/network-functions-ipv6
-rw-r--r-- root/root 184 2012-01-23 18:59:16 network-scripts/ifcfg-eth5
-rwxr-xr-x root/root 1154 2009-07-04 03:10:48 network-scripts/net.hotplug
-rwxr-xr-x root/root 2369 2009-07-04 03:10:48 network-scripts/ifup-post
-rwxr-xr-x root/root 4473 2009-07-04 03:10:48 network-scripts/ifdown-ipv6
-rwxr-xr-x root/root 625 2009-07-04 03:10:48 network-scripts/ifdown-bnep
-rw-r--r-- root/root 178 2012-01-23 18:59:21 network-scripts/ifcfg-bond1
-rwxr-xr-x root/root 637 2009-07-04 03:10:48 network-scripts/ifdown-routes
lrwxrwxrwx root/root 0 2012-01-23 18:25:48 network-scripts/ifup-isdn -> ifup-ippp
-rwxr-xr-x root/root 4573 2009-07-04 03:10:48 network-scripts/ifdown-eth
-rwxr-xr-x root/root 954 2009-07-04 03:10:48 network-scripts/ifup-plusb
-rwxr-xr-x root/root 2078 2009-07-04 03:10:48 network-scripts/ifup-tunnel
-rwxr-xr-x root/root 823 2009-07-04 03:10:48 network-scripts/ifup-ipx
lrwxrwxrwx root/root 0 2012-01-23 18:25:48 network-scripts/ifup -> ../../../sbin/ifup
-rwxr-xr-x root/root 727 2009-07-04 03:10:48 network-scripts/ifup-plip
-rwxr-xr-x root/root 1074 2009-07-04 03:10:48 network-scripts/ifdown-tunnel
-rwxr-xr-x root/root 10798 2009-07-04 03:10:48 network-scripts/ifup-eth
-rwxr-xr-x root/root 1481 2009-07-04 03:10:48 network-scripts/ifdown-post
-rwxr-xr-x root/root 8088 2009-07-04 03:10:48 network-scripts/ifup-ipsec
-rwxr-xr-x root/root 1675 2009-07-04 03:10:48 network-scripts/ifup-sl
-rw-r--r-- root/root 254 2009-07-04 03:10:48 network-scripts/ifcfg-lo
-rwxr-xr-x root/root 10853 2009-07-04 03:10:48 network-scripts/ifup-ipv6
-rwxr-xr-x root/root 913 2009-07-04 03:10:48 network-scripts/ifdown-sl
-rw-r--r-- root/root 119 2012-01-23 18:20:33 network-scripts/ifcfg-eth0
-rw-r--r-- root/root 10474 2009-07-04 03:10:48 network-scripts/network-functions
-rwxr-xr-x root/root 1593 2009-07-04 03:10:48 network-scripts/ifdown-sit
-rwxr-xr-x root/root 3662 2009-07-04 03:10:48 network-scripts/ifup-sit
-rwxr-xr-x root/root 13427 2009-07-04 03:10:48 network-scripts/ifup-aliases
-rwxr-xr-x root/root 12033 2009-07-04 03:10:48 network-scripts/ifup-ippp
-rw-r--r-- root/root 184 2012-01-23 18:59:16 network-scripts/ifcfg-eth4
-rwxr-xr-x root/root 4298 2009-07-04 03:10:48 network-scripts/ifup-ppp
-rw-r--r-- root/root 119 2012-01-23 18:20:33 network-scripts/ifcfg-eth1
-rwxr-xr-x root/root 1084 2009-07-04 03:10:48 network-scripts/ifdown-ppp
-rwxr-xr-x root/root 2159 2009-07-04 03:10:48 network-scripts/ifdown-ipsec
-rw-r--r-- root/root 119 2012-01-23 18:20:33 network-scripts/ifcfg-eth3
lrwxrwxrwx root/root 0 2012-01-23 18:25:48 network-scripts/ifdown -> ../../../sbin/ifdown
2. Describe what you wanted to do and how you did it
I was trying to add a new parameter to the attribute on the below code. So I copied the line with "FetchProcedure" and pasted it on the next line.
[DataClass(
ListProcedure = ""
, InsertProcedure = ""
, FetchProcedure = ""
)]
public class Demo
3. Describe the expected result
I expected to be able to edit the copied line to change "Fetch" to "Delete"
4. Describe the actual result
Immidiately after pasting the line the exception gets raised. The same will happen if you type out a paramater with the same name as one that already is in the parameters list
5. Attach the exception text and the stack trace
SharpDevelop Version : 4.3.0.9390-e0365b10
.NET Version : 4.0.30319.18034
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : English (South Africa) (en-ZA)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 160420kb
GC Heap Memory : 41430kb
Unhandled WPF exception
Exception thrown:
System.ApplicationException: Error parsing C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitAttributes(IList`1 attributes, ClassFinder context)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.ConvertAttributes(AttributedNode from, AbstractEntity to)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitTypeDeclaration(TypeDeclaration typeDeclaration, Object data)
at ICSharpCode.NRefactory.Ast.TypeDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration, Object data)
at ICSharpCode.NRefactory.Ast.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitCompilationUnit(CompilationUnit compilationUnit, Object data)
at CSharpBinding.Parser.TParser.Parse(IParser p, String fileName, IProjectContent projectContent)
at CSharpBinding.Parser.TParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer fileContent)
at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
--- End of inner exception stack trace ---
at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
at ICSharpCode.SharpDevelop.ParserService.ParseFile(String fileName, ITextBuffer fileContent)
at ICSharpCode.SharpDevelop.ParserService.ParseViewContent(IViewContent viewContent)
at ICSharpCode.SharpDevelop.ParserService.ParseCurrentViewContent()
at ICSharpCode.SharpDevelop.Refactoring.EditorActionsProvider..ctor(ITextEditor editor, IList`1 providers)
at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.BuildPopupViewModel(ITextEditor editor)
at ICSharpCode.AvalonEdit.AddIn.ContextActionsRenderer.TimerMoveTick(Object sender, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
23:02:38.610 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:40.301 [1] INFO - Loading addin Hornung.ResourceToolkit
23:02:40.774 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:41.589 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:41.716 [1] DEBUG - CC: Beginning to type a word, result=<>
23:02:41.834 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:42.803 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:44.848 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:45.798 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:46.361 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:47.046 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:47.874 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:49.227 [1] DEBUG - CC: Beginning to type a word, result=<>
23:02:49.386 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:57.483 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:58.076 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:02:59.979 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:03:00.780 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:03:01.383 [1] DEBUG - ParseInformationUpdated C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs new!=null:True
23:03:06.995 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Commands.SaveFile', activation=Shortcut
23:03:06.996 [1] DEBUG - Save C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs
23:03:07.008 [6] DEBUG - Git: OverlayIconManager Thread started
23:03:07.108 [6] DEBUG - Git: OverlayIconManager Thread finished
23:03:09.059 [6] ERROR - Error during async parse
--> Exception:
System.ApplicationException: Error parsing C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs ---> System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitAttributes(IList`1 attributes, ClassFinder context)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.ConvertAttributes(AttributedNode from, AbstractEntity to)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitTypeDeclaration(TypeDeclaration typeDeclaration, Object data)
at ICSharpCode.NRefactory.Ast.TypeDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration, Object data)
at ICSharpCode.NRefactory.Ast.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitCompilationUnit(CompilationUnit compilationUnit, Object data)
at CSharpBinding.Parser.TParser.Parse(IParser p, String fileName, IProjectContent projectContent)
at CSharpBinding.Parser.TParser.Parse(IProjectContent projectContent, String fileName, ITextBuffer fileContent)
at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
--- End of inner exception stack trace ---
at ICSharpCode.SharpDevelop.ParserService.FileEntry.ParseFile(IProjectContent parentProjectContent, ITextBuffer fileContent)
at ICSharpCode.SharpDevelop.ParserService.FileEntry.<>c__DisplayClass31.<BeginParse>b__30()
23:03:09.066 [6] WARN - Stack trace of last exception log:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)
at ICSharpCode.SharpDevelop.ParserService.FileEntry.<>c__DisplayClass31.<BeginParse>b__30()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent C:\Development\FeihtWorx\Tests.FeihtWorxData.ManualTests\Demo.cs]
ProjectService.OpenSolution: [Solution: FileName=C:\Development\FeihtWorx\FeihtWorx.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: Tests.FeihtWorxData.ManualTests]
Hi ,
i am getting above error when i am trying to unzip files.Please help
Hello
I am using the AnchorSegment, to track a specific segment in my source code. The "Deleted" event is
only called if the anchor segment is inside of the text selection. If i remove the text with the Backspace-Key
the TextAnchors inside of the AnchorSegment will adapt theire position due to the text segment. if the segment
has length=0, I would like to remove the AnchorSegment.
How do I do that?
At the moment, I check the length of all AnchorSegments inside a timer thread. If the segment has length 0 i will remove that
specific segment... Is there a better solution?
Best regards
I can't seem to find any way to make AvalonEdit overstrike (in normal text editors you press insert to toggle it). Almost all text editors have this (except Notepad), including the Command Prompt window. The old TextEditor that was in SD 3.2 has it.
The issue occurs when the iNTELLISENSE search into FluentNHibernate Library... Maybe it is due to the lake or error in XML documentation ?
Here is the report of the crash issue
SharpDevelop Version : 4.2.2.8818-3d0b926b
.NET Version : 4.0.30319.296
OS Version : Microsoft Windows NT 6.0.6002 Service Pack 2
Current culture : French (France) (fr-FR)
Current UI language : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 296176kb
GC Heap Memory : 124896kb
Unhandled WPF exception
Exception thrown:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'XmlDoc'.
at ICSharpCode.SharpDevelop.Dom.XmlDoc.GetDocumentation(String key)
at ICSharpCode.SharpDevelop.Dom.DefaultProjectContent.GetXmlDocumentation(String memberTag)
at ICSharpCode.SharpDevelop.Dom.AbstractEntity.get_Documentation()
at ICSharpCode.SharpDevelop.Editor.CodeCompletion.CodeCompletionItem.get_Description()
at ICSharpCode.SharpDevelop.Editor.CodeCompletion.CodeCompletionItem.ICSharpCode.SharpDevelop.Editor.CodeCompletion.IFancyCompletionItem.get_Description()
at ICSharpCode.AvalonEdit.AddIn.CodeCompletionDataAdapter.get_Description()
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionWindow.completionList_SelectionChanged(Object sender, SelectionChangedEventArgs e)
at System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionListBox.SelectIndex(Int32 index)
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionList.SelectIndexCentered(Int32 bestIndex)
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionList.SelectItemFiltering(String query)
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionList.SelectItem(String text)
at ICSharpCode.AvalonEdit.CodeCompletion.CompletionWindow.CaretPositionChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at ICSharpCode.AvalonEdit.Editing.Caret.OnDocumentUpdateFinished()
at ICSharpCode.AvalonEdit.Editing.TextArea.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
at ICSharpCode.AvalonEdit.Editing.TextArea.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
at ICSharpCode.AvalonEdit.Document.TextDocument.EndUpdate()
at ICSharpCode.AvalonEdit.Document.TextDocument.Replace(Int32 offset, Int32 length, String text, OffsetChangeMap offsetChangeMap)
at ICSharpCode.AvalonEdit.Editing.EmptySelection.ReplaceSelectionWithText(String newText)
at ICSharpCode.AvalonEdit.Editing.TextArea.ReplaceSelectionWithText(String newText)
at ICSharpCode.AvalonEdit.Editing.TextArea.PerformTextInput(TextCompositionEventArgs e)
at ICSharpCode.AvalonEdit.Editing.TextArea.OnTextInput(TextCompositionEventArgs e)
at System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
at System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
13:33:19.224 [resolveVersionsThread] DEBUG - Got information about System.Web.Extensions; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll
13:33:19.224 [resolveVersionsThread] DEBUG - Got information about System.Web.Mobile; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Web.RegularExpressions; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Web.Routing; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Web.Services; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Windows.Forms; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Windows.Presentation; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Presentation\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Presentation.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Workflow.Activities; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Workflow.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Workflow.Activities.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Workflow.ComponentModel; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Workflow.ComponentModel\v4.0_4.0.0.0__31bf3856ad364e35\System.Workflow.ComponentModel.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.Workflow.Runtime; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Workflow.Runtime\v4.0_4.0.0.0__31bf3856ad364e35\System.Workflow.Runtime.dll
13:33:19.225 [resolveVersionsThread] DEBUG - Got information about System.WorkflowServices; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about System.Xml; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about System.Xml.Linq; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about UIAutomationClient; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationClient\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationClient.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about UIAutomationClientsideProviders; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationClientsideProviders\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationClientsideProviders.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about UIAutomationProvider; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about UIAutomationTypes; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about WindowsBase; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll
13:33:19.226 [resolveVersionsThread] DEBUG - Got information about WindowsFormsIntegration; fullpath=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsFormsIntegration\v4.0_4.0.0.0__31bf3856ad364e35\WindowsFormsIntegration.dll
13:35:48.759 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent d:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.BLL\DaoFactory.cs]
13:35:51.504 [1] DEBUG - CC: Beginning to type a word, result=<> ([DefaultExpressionContext: MethodBody])
13:35:51.852 [1] DEBUG - ParseInformationUpdated D:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.BLL\DaoFactory.cs new!=null:True
13:35:52.373 [1] DEBUG - ParseInformationUpdated D:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.BLL\DaoFactory.cs new!=null:True
13:35:53.323 [1] DEBUG - ParseInformationUpdated D:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.BLL\DaoFactory.cs new!=null:True
13:35:53.423 [1] DEBUG - GenerateCompletionData for >>FluentNHibernate<<, context=[DefaultExpressionContext: IdentifierExpected]
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent d:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.BLL\DaoFactory.cs]
ProjectService.OpenSolution: [Solution: FileName=D:\JGO\PROJETS\STATS_DEFAUT\ImportExcel\ImportExcel.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: ImportExcel.BLL]
Are there any plans to implement Read support for GzipOutputStream/BZip2OutputStream (other XxxOutputStream)?
In current implementation the user reads source(uncompressed) data and PUSHES it to GzipOutputStream, which the writes compressed data to the baseOutputStream passed in constructor.
For stream pipelining purposes it would be very nice to have GzipOutputStream family to work in the opposite way: user would read compressed data from GzipOutputStream which would PULL data from source when needed (until EOF).
For GzipOutputStream this sould be just reading the required amount of data from uncompressed stream. For ZipOutputStream this might require some events like NeedNextEnry or so.
With this ability the application can do any other kind of processing of compressed data on-the-fly (in current write-only implementation the one has to check if XxxOutputStream has produced some output).
The example of such work is .Net's CryptoStream class which constructor has a parameter CryptoStreamMode that allows to work encrypting stream in both ways (pushing and pulling data from the source stream)
Thank you
PS: I don't see now any useful application of write support in XxxInputStream though it'd be possible too.
Some tar programs populate the 'prefix' field and it is necessary to prepend it to the 'name' field with a '/' separator to obtain the correct file path. Unfortunately SharpZipLib ignores this field.
I suspect that was the problem that was noted in this forum post: http://community.sharpdevelop.net/forums/p/11847/32428.aspx#32428
From the man page for Solaris tar:
The full pathname length cannot exceed 255 characters.
The file name (or leaf) length cannot exceed 100 characters.
The prefix of the pathname cannot exceed 155 characters.
A project I am working on had several archives where only the leaf name was in the 'name' field and the remainer of the path was in the 'prefix' field. As an example, see http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-0.107.tar.gz
I created a "fix" for this and the patch is added below.
Behaviour changes:
Read: If 'prefix' is not null then its value will be prepended to the 'name' field with a '/' separator when the "Name" property of the TarHeader is accessed.
Write: If the "Magic" field ends with a ' ' (space) or if (Name.Length <= 100 or Name.Length > 256) then no change otherwise an attempt will be made to use the 'prefix' and 'name' field to hold the complete path. If the path cannot be split then no change.
Patch created by TortoiseSVN 1.7.3:
Index: TarHeader.cs
===================================================================
--- TarHeader.cs (.../trunk/SrcSamples/src/Tar/TarHeader.cs) (revision 2)
+++ TarHeader.cs (.../branches/prefix/SrcSamples/src/Tar/TarHeader.cs) (revision 9)
@@ -68,6 +68,7 @@
using System;
using System.Text;
+using System.IO;
namespace ICSharpCode.SharpZipLib.Tar
{
@@ -145,6 +146,11 @@
/// </summary>
public const int DEVLEN = 8;
+ /// <summary>
+ /// The length of the prefix field in a header buffer.
+ /// </summary>
+ public const int PREFIXLEN = 155;
+
//
// LF_ constants represent the "type" of an entry
//
@@ -301,12 +307,66 @@
/// <exception cref="ArgumentNullException">Thrown when attempting to set the property to null.</exception>
public string Name
{
- get { return name; }
- set {
- if ( value == null ) {
+ get
+ { return string.IsNullOrEmpty(fileNamePrefix) ? name : fileNamePrefix + "/" + name; }
+ set
+ {
+ if (value == null)
+ {
throw new ArgumentNullException("value");
}
- name = value;
+ name = value.Replace(Path.DirectorySeparatorChar, '/');
+ fileNamePrefix = "";
+
+ if (Path.IsPathRooted(name))
+ {
+ name = name.Substring(Path.GetPathRoot(name).Length);
+ }
+ if (name.EndsWith("/"))
+ {
+ name = name.Substring(0, name.Length - 1);
+ typeFlag = LF_DIR;
+ }
+
+ //If magic endwith a space then this is probably a GNU tar and we'll just use the "default"
+ //for long names which is to create a LF_GNU_LONGNAME header record on write.
+ //We'll also do that if there is no possiblity of spliting the name into prefix and name fields.
+ //We won't split the name if it will fit in the name field. If we do split it then
+ //we put as much as possible in the prefix field.
+ if (!magic.EndsWith(" ") && name.Length > 100 && name.Length <= 256 && name.Contains("/"))
+ {
+ //lets *try* to use the 'prefix' field to accomodate the long name
+ string[ parts = name.Split('/');
+ int nameIdx = parts.Length - 1;
+ int prefixIdx = nameIdx - 1;
+
+ do
+ {
+ int nameSize = 0;
+ int prefixSize = 0;
+
+ for (int i = 0; i <= prefixIdx; ++i)
+ {
+ prefixSize += parts[i].Length;
+ }
+ prefixSize += prefixIdx;
+
+ for (int i = nameIdx; i < parts.Length; ++i)
+ {
+ nameSize += parts[i].Length;
+ }
+ nameSize += parts.Length - nameIdx - 1;
+
+ if (prefixSize <= PREFIXLEN && nameSize <= NAMELEN)
+ {
+ fileNamePrefix = string.Join("/", parts, 0, prefixIdx + 1);
+ name = string.Join("/", parts, nameIdx, parts.Length - nameIdx);
+ break;
+ }
+ --nameIdx;
+ prefixIdx = nameIdx - 1;
+ } while (prefixIdx >= 0);
+ }
}
}
@@ -317,7 +377,7 @@
[Obsolete("Use the Name property instead", true)]
public string GetName()
{
- return name;
+ return Name;
}
/// <summary>
@@ -545,6 +605,14 @@
set { devMinor = value; }
}
+ /// <summary>
+ /// Get the entry's file name prefix.
+ /// </summary>
+ public string FileNamePrefix
+ {
+ get { return fileNamePrefix; }
+ }
+
#endregion
#region ICloneable Members
@@ -615,7 +683,10 @@
offset += TarHeader.DEVLEN;
DevMinor = (int)TarHeader.ParseOctal(header, offset, TarHeader.DEVLEN);
+ offset += TarHeader.DEVLEN;
+ fileNamePrefix = TarHeader.ParseName(header, offset, TarHeader.PREFIXLEN).ToString();
+
// Fields past this point not currently parsed or used...
isChecksumValid = Checksum == TarHeader.MakeCheckSum(header);
@@ -634,7 +705,7 @@
int offset = 0;
- offset = GetNameBytes(Name, outBuffer, offset, NAMELEN);
+ offset = GetNameBytes(name, outBuffer, offset, NAMELEN);
offset = GetOctalBytes(mode, outBuffer, offset, MODELEN);
offset = GetOctalBytes(UserId, outBuffer, offset, UIDLEN);
offset = GetOctalBytes(GroupId, outBuffer, offset, GIDLEN);
@@ -656,12 +727,18 @@
offset = GetNameBytes(UserName, outBuffer, offset, UNAMELEN);
offset = GetNameBytes(GroupName, outBuffer, offset, GNAMELEN);
- if ((TypeFlag == LF_CHR) || (TypeFlag == LF_BLK))
+ if ((TypeFlag == LF_CHR) || (TypeFlag == LF_BLK))
{
offset = GetOctalBytes(DevMajor, outBuffer, offset, DEVLEN);
offset = GetOctalBytes(DevMinor, outBuffer, offset, DEVLEN);
}
+ else
+ {
+ offset += (2 * DEVLEN);
+ }
+ offset = GetNameBytes(fileNamePrefix, outBuffer, offset, PREFIXLEN);
+
for ( ; offset < outBuffer.Length; )
{
outBuffer[offset++] = 0;
@@ -1122,6 +1199,7 @@
string groupName;
int devMajor;
int devMinor;
+ string fileNamePrefix;
#endregion
#region Class Fields
IL spy is almost useful to me but how the heck am I supposed to know simple stuff like what assembly System.Windows.MessageBox lives in?
SmartDevelop is now the built in macro editor for Autodesk's Revit software. This is supposed to be for fairly casual use. This is the program we're supposed to tell beginners to use because it's supposed to be simple(r). Now, imagine that you are a beginner for a second. You find some apparently simple code on the internet that you paste into the SharpDevelop editor:
System.Windows.MessageBox.Show("message");
You build the code and you get the ubiquitous error, "MessageBox does not exist in the current context".
Let's say this beginner digs and finds out that he has to add a reference. He goes to the Add Reference command. He looks at all the tabs; COM...nope, Project...nope, .Net Assembly Browser...nope (don't know where to look yet!), GAC...whatever that means...it looks promising but there is no assembly listed that says "System.Windows"! He gives up in shame.
The answer to the test is System.Windows.MessageBox lives in PresentationFramework.dll--but even I don't know that until I do a Google search. That information is simply not available in the SharpDevelop environment..
Lets say I dig around and find out I can download IL Spy to browse assemblies (just like good ol' VS Object Browser). I do a search for MessageBox and I get two hits. One in System.Windows and another in System.Windows.Forms. I inspect the information given for each and still no answer.
Hey-- I paste code all the time from the net and I get all kinds of "does not exist in the current context" messages and I have to do my due diligence and track down all those references. This is a tool we all use. Not just beginners. But it's super harder on them! This stuff needs to work and it needs to be front and center.
James LeVieux
P.S. I couldn't even write this post using IE10. The Message pane on the Compose tab was unresponsive. I had to use Chrome.
Hi all,
We have developped for several years an addin for SharpDevelop named WComp (since #Develop1.1). It's allows to build .NET applications by graphically composing software components. It's composed of several addins in fact (one for creating applications, another one for generating assembly for services (standards Web Services and UPnP), etc.
http://www.wcomp.fr/
We have adapted the source code of our addin for each #Develop evolutions (from 1.1 to 2.2 and 2.2 to 3.2) and now we would like to do the porting from 3.2 to 4.3 (we need .NET 4 enhancement). The main part of WComp globally works (we done the porting of the source code), but we have still to solve some problems.
We have an addin which is a wizard to generate assembly to communicate with a UPnP device (from the description interface of this device).
For that we defined the following addin file:
<AddIn name = "UPnP Proxy Wizard"
author = ""
url = "http://www.wcomp.fr/"
description = "Creates a UPnP Device WebService bean proxy for WComp using a wizard">
<Manifest>
<Identity name="UPnPProxyWizard" version="4.0.1.1354"/>
<Dependency addin="SharpDevelop" version="4.3.0.9390"/>
<Dependency addin="WCompAddin" version="4.0.1.1354"/>
</Manifest>
<Runtime>
<Import assembly="UPnPProxyWizard.dll"/>
</Runtime>
<Path name="/SharpDevelop/Templates/File/UPnPProxyWizard">
<ReportDialogPanel id = "UPnPDevice"
label = "UPnP Device Selection"
class = "UPnPProxyWizard.UPnPDevicePanel"/>
<ReportDialogPanel id = "GenerationConfig"
label = "Generation Configuration"
class = "UPnPProxyWizard.DeviceGenerationPanel"/>
-->
</Path>
</AddIn>
and an xft file:
<?xml version="1.0"?>
<Template author="Rainbow, I3S Laboratory (UNS / CNRS)" version="0.0.1">
<Config
name = "UPnP Proxy Wizard"
icon = "C#.File.Form"
category = "WComp.NET"
defaultname = "UPnPProxy${Number}.cs"
language = "Default">
<Wizard path = "/SharpDevelop/Templates/File/UPnPProxyWizard"/>
</Config>
<Description>Creates a UPnP Device WebService proxy using a wizard.</Description>
<Files/>
<AdditionalOptions/>
</Template>
We have adapted the code for our addin because the only place where we found the AbstractWizardPanel interface is in the addin SharpDevelopReports (and not in SharpDevelop Core anymore).
But it's not functionnal anymore: we found the icon in the right category but noting appends when we select it.
We were not able to find an example of such addin in the SharpDev source code except in SharpDevelop.Reports addin. But we can't find any xft file corresponding to this template and we can't find the solution to call the call. The <Wizard> xml tag name doesn't look like to do anything now.
Thanks in advance for any help.
Stéphane
Hi
I was looking around in both web forms and mvc
and I couldn't find the form designer.
I am doing something wrong?
Thanks
H.F.
Hi
I have tried the following with both the 4.2 and 4.3 releases of Sharp Develop.
When I try to set up a database connection the only driver it picks up is my
SQL Server driver. I read somewhere on the web that Sharp Develop
uses either oledb or odbc drivers. It doesn't pick up my Access 2010
oledb or odbc drivers and it also doesn't pick up my Firebird odbc
driver. Am I doing something wrong?
Thanks
H.F.
Design mode, set the background color is correct. But F5 to refresh later, background color is empty
Hi
Which versions of the dot net framework does
Sharp Develop Reports support?
Thanks
H.F.
Hi
Is it possible with Sharp Develop Reports to export the report ouput
to other formats like pdf, Word, Excel etc?
Which formats do you support?
Thanks
H.F.
Hi
Is it possible to use Sharp Develop Reports with web forms
and mvc?
Thanks
H.F.
Hi
I want to learn web development with asp.net and vb.net.
I saw there are web forms and mvc.
Can you perhaps tell me the difference between web forms
and mvc?
What should I learn?
Are there any free online resources for learning either or both?
Thanks
H.F.
Hi
Can you deploy to 64 bit windows servers? Is there a 64 bit ide
for Sharp Develop?
Thanks
H.F.