Skip to content
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

Error when using Colorize popup window #1660

Open
tridian-tn opened this issue Nov 6, 2024 · 0 comments · Fixed by #1661
Open

Error when using Colorize popup window #1660

tridian-tn opened this issue Nov 6, 2024 · 0 comments · Fixed by #1661
Assignees
Labels
bug Something isn't working next-release Addressed but not yet released

Comments

@tridian-tn
Copy link

Problem to Solve

Exception when using Alt-C to bring up Colorise window and then selecting a language and confirming.

To Reproduce

Steps to reproduce the behavior:

  1. Select text
  2. Press Alt-C
  3. Use the Select Language popup window to select any language
  4. Press return or click OK
  5. Error pops up

The same error doesn't popup if I use the ribbon (e.g. More->Colorize->C#)

Expected Behavior

The selected text has the syntax highlighting applied without an error

Screenshots

image

Environment (if applicable)

Microsoft® OneNote® for Microsoft 365 MSO (Version 2410 Build 16.0.18129.20100) 32-bit

Additional Context

Add any other context about the problem here. Attach page XML file or the app log file as appropriate. You can find the log file here: %localappdata%\temp\OneMore.log

01|07:59:07.570| Starting dllhost 22240, 1700 Mhz, 31 MB, en-US/en-US, v6.6.1, OneNote 15.0, Office 16.0, 2024-11-06 07:59
01|07:59:07.578| ..Windows 11 Professional, Version 24H2, Build 26100, 64 bit
01|07:59:07.591| ..C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE (16.0.18129.20116)
01|07:59:07.644| ..OnConnection(ConnectionMode:ext_cm_Startup,custom[1:Int32])
01|07:59:07.645| ..OneAddInsUpdate(custom[])
03|07:59:09.016| ..building ribbon
03|07:59:09.034| ..building ribbon colorizer commands
03|07:59:09.588| ..building ribbon groups
03|07:59:09.593| ..building context menu
01|07:59:09.779| ..OnStartupComplete(custom[])
01|07:59:09.782| ..starting command service
01|07:59:09.785| ..starting reminder service
01|07:59:09.788| ..starting navigation service
01|07:59:09.792| ..hashtag service is disabled
01|07:59:09.792| ..ready
10|07:59:09.807| Running command UpdateCommand
04|07:59:10.741| ..defined 51 hotkeys for input locale 2057
05|11:04:22.426| Running command CommandPaletteCommand
05|11:04:22.635| ..discovered 185 commands, 4 mru
06|11:04:27.568| ..Running command InsertTextBoxCommand
10|11:04:32.224| Running command ChooseColorizerCommand
10|11:04:35.700| Error running command ChooseColorizerCommand
10|11:04:35.700| System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: River.OneMoreAddIn
StackTrace:    at River.OneMoreAddIn.Commands.ChooseColorizerCommand.<Execute>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at River.OneMoreAddIn.CommandFactory.<Run>d__6.MoveNext()
TargetSite: [River.OneMoreAddIn] River.OneMoreAddIn.Commands.ChooseColorizerCommand+<Execute>d__2::MoveNext()

THE FINE PRINT This is a hobby project that I started for myself. I'm happy to take requests and will promise to
consider each one carefully but offer no guarantees that I will ultimately agree to their
usefulness or have time to implement any of them. If OneNote offers a "close enough" work-around
then I will probably reject the request - you've been warned!

@tridian-tn tridian-tn added bug Something isn't working unread I have seen it or had time to refine it yet labels Nov 6, 2024
@stevencohn stevencohn removed the unread I have seen it or had time to refine it yet label Nov 6, 2024
stevencohn added a commit that referenced this issue Nov 6, 2024
@stevencohn stevencohn linked a pull request Nov 6, 2024 that will close this issue
@stevencohn stevencohn self-assigned this Nov 6, 2024
@stevencohn stevencohn added the next-release Addressed but not yet released label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next-release Addressed but not yet released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants