question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request - add Save SubTree option to the node popup menu.

See original GitHub issue

Suppose I want to analyze a subtree. I sometime copy it and paste in Notepad++, because I could then leverage search in Notepad++, which is more powerful than the built-in search.

However, this does not work well for very large subtrees:

Unexpected exception. Sorry about that.

Please Ctrl+C to copy this text and file an issue at https://github.com/KirillOsenkov/MSBuildStructuredLog/issues/new

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Text.StringBuilder.ToString()
   at ICSharpCode.AvalonEdit.Highlighting.HtmlClipboard.CreateHtmlFragment(IDocument document, IHighlighter highlighter, ISegment segment, HtmlOptions options)
   at ICSharpCode.AvalonEdit.Editing.Selection.CreateHtmlFragment(HtmlOptions options)
   at ICSharpCode.AvalonEdit.Editing.Selection.CreateDataObject(TextArea textArea)
   at ICSharpCode.AvalonEdit.Editing.EditingCommandHandler.CopySelectedText(TextArea textArea)
   at ICSharpCode.AvalonEdit.Editing.EditingCommandHandler.OnCopy(Object target, ExecutedRoutedEventArgs args)
   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   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.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   at StructuredLogViewer.Controls.TextViewerControl.copyMenu_Click(Object sender, RoutedEventArgs e) in C:\MSBuildStructuredLog\src\StructuredLogViewer\Controls\TextViewerControl.xaml.cs:line 264
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Having this option solves the problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MarkKharitonovcommented, Dec 18, 2020

Seems to work fine. I copied a subtree with 77K lines without any problems.

0reactions
KirillOsenkovcommented, Dec 16, 2020

For now. I want to publish the latest batch in a few days to save people from updating needlessly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to copy part of a Treeview to a Menu
You should add sub menu items to the last menu item created. Hereby an alternative approach, making use of TTreeNode.
Read more >
Add the option in system menu block to "Expand all items ...
Problem/Motivation. Right now using the core menu block subtrees aren't show unless they are in the active trail.
Read more >
Menu buttons should be separated into menu items as nodes
I want to create a editor however I find that menu buttons are not very well thought out. first of all they require...
Read more >
NodeCanvas - (Behaviour Trees | State Machines
NodeCanvas - (Behaviour Trees | State Machines | Dialogue Trees) ... can't find the “Convert To SubTree” option when right clicking a node....
Read more >
Inspector. Close the context menu after click by item
I think the context menu should close after click :thinking: ... maybe we can add an extra option “closeAfterClick” on the entry to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found