-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToC refresh - New issue #1750
Comments
I had another page that had the same issue and got someone else to try it and it worked as expected (updating the ToC) and they were using 6.5.0 |
Remove the |
And yeah, I've been ignoring that redraw issue on the Context Menu sheet |
Main issue: yep, I was just coming back here to report it is the "&" as I have a few cases that barf at that. If it fails, why doesn't it tell you it failed? The redraw thing, did you want a bug report for the places I notice it or is it something you know where it occurs (I also saw it on the calander a while back), possibly a few others. |
It doesn't tell you it failed because "why the heck would it fail!?" ;-) OM needs better error reporting all around. Sure, create a ticket. Make me fix it. |
No pressure, but in terms of fix, are we looking next release (e.g. in a couple of months)? |
I'll release a patch next week |
you ⭐ |
Problem to Solve
ToC doesn't refresh and also it doesn't actually tell you it failed, i.e. a swallowed exception, rather than a "I tried, I failed."
I haven't started diagnosing yet, i.e. cutting page up, but it obviously worked a few days ago as the last dated item int eh ToC = 31/12/2024 and there is one entry other than the one it failed on.
Screen grab of contents to show what I was looking at.
Screen grab of ToC that won't update
URL of the refresh - looks fine to me.
onemore://InsertTocCommand/refresh/here/style0
Any clues?
In terms of reading this, it doesn't actually say what the exeption is, so I assume it is a custom one you are throwing?
Also: --- End of stack trace from previous location where exception was thrown ---
how do I read this? I get the top stack trace, but how do the other 2 relate to the top one?
TIA
Version 6.7.1 with OneNote 16.0.18227.20162
21|11:47:43.147| Invoking command InsertTocCommand
21|11:47:43.657| ..refresh toc for page OneMore 2022 -
21|11:47:43.658| ..error wrapping /03/01/2025 New release 6.7.1 - bug fix & installed on /
18|11:47:43.658| ..error refreshing table of contents
System.Xml.XmlException
Message: An error occurred while parsing EntityName. Line 1, position 48.
Source: System.Xml
StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at River.OneMoreAddIn.Extensions.ToXmlWrapper(String s, String name)
at River.OneMoreAddIn.XCDataExtensions.GetWrapper(XCData cdata)
at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.g__RemoveHyperlinks|14_0(String text)
at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.BuildHeadings(XElement container, List
1 headings, Int32& index, Int32 level, Boolean dark) at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.BuildHeadings(XElement container, List
1 headings, Int32& index, Int32 level, Boolean dark)at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at River.OneMoreAddIn.Commands.Snippets.TocGenerators.PageTocGenerator.d__17.MoveNext()
TargetSite: [System.Xml] System.Xml.XmlTextReaderImpl::Throw()
The text was updated successfully, but these errors were encountered: