SetHeaderAndFooterText throws Exception

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 12 years ago by Christel
Version: 11.2.0552
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

In my Code Fragement implementation I have following header and footer text.

The edition of variables is the fragment code, which is edited by the user.

//Header:
public class MainRW
{
    public GlobalRW global;
    private int errorLevel = 0;

//Fragement
    // User should edit variables

// Footer
    public MainRW (KvdtSet kvdtSet, GlobalRW global)
    {
      this.kvdtSet = kvdtSet;
      this.global = global;
    }
    public void Result ()
    {

    }
}

 

Whenever I try to set a '{' character in the footertext I gte follwing exception:

Is this a bug, that will be fixed or is it not allowed to use a '{' in the footer, as it should contain only namespace, class, and member declaration ends?

  bei #PZc.#SZc.set_Offset(Int32 value)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.#U1b(ITextBufferReader reader, Nullable'1 startOffset, Nullable'1 endOffset, IOutliningNodeDefinition definition)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.#wU(ITextBufferReader reader, ConstructorDeclaration astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ITextBufferReader reader, IAstNode astNode)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesFromParseData(IDotNetParseData parseData)
bei ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliner.GetOutliningSource(ITextSnapshot snapshot)
bei #b3b.#a3b.GetOutliningSource(Nullable'1& updateTrigger)
bei #b3b.#a3b.#0gc(Nullable'1 updateTrigger, TextSnapshotRange targetSnapshotRange, Boolean autoCollapse)
bei #b3b.#a3b.#dgc(Object sender, EventArgs e)
bei System.EventHandler'1.Invoke(Object sender, TEventArgs e)
bei ActiproSoftware.Text.Implementation.CodeDocument.OnParseDataChanged(ParseDataPropertyChangedEventArgs e)
bei ActiproSoftware.Text.Implementation.CodeDocument.set_ParseData(IParseData value)
bei ActiproSoftware.Text.Implementation.CodeDocument.NotifyParseComplete(IParseRequest request, IParseData result)
bei ActiproSoftware.Text.Implementation.CodeDocument.#bGc(IParseRequest request, IParseData result)
bei ActiproSoftware.Text.Parsing.Implementation.ThreadedParseRequestDispatcher.#g.#0Yc.#nXc(IParseRequest request)
bei ActiproSoftware.Text.Parsing.Implementation.ThreadedParseRequestDispatcher.#g.#0Yc.#56c()
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()

 

Thanks for help!

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Christel,

It looks like we fixed this already for the next maintenance release.  But I believe you can work around it for now if you move your member declarations to the header instead of the footer.


Actipro Software Support

The latest build of this product (v24.1.2) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.